Add this line to your application's Gemfile:
gem "fastruby-styleguide", github: "fastruby/styleguide", branch: "gh-pages"And then execute:
$ bundleIn application.css, add:
*= require fastruby/styleguideor, if you are using SCSS, in application.scss add:
@import "fastruby/styleguide";In application.js add:
//= require fastruby/styleguideInstall the package directly from this repo
$ yarn add "fastruby/styleguide#gh-pages"In `app/assets/stylesheets/application.scss, add:
@import "fastruby-io-styleguide";In app/javascripts/packs/application.js add:
import "fastruby-io-styleguide"In config/webpack/environment.js add this plugin config to expose jQuery as a global object:
const { environment } = require('@rails/webpacker')
const webpack = require('webpack')
environment.plugins.prepend(
'Provide',
new webpack.ProvidePlugin({
$: 'jquery/src/jquery',
jQuery: 'jquery/src/jquery'
})
)
module.exports = environmentFrom the gem folder
$ bundle
Build static
$ rake precompile_assets
Styles and Javascript files are in static folder.
Components can be checked if index.html file is opened in a browser.
Run bundle update fastruby-styleguide --source
Run yarn upgrade fastruby-io-styleguide
Bug reports and pull requests are welcome on GitHub at https://github.com/fastruby/styleguide. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
When Submitting a Pull Request:
-
If your PR closes any open GitHub issues, please include
Closes #XXXXin your comment -
Please include a summary of the change and which issue is fixed or which feature is introduced.