A Rails 5 application that integrates a gulp-based asset pipeline by including the final assets in Rails' own asset pipeline.
Run
bundle installto set everything up on the Rails side of things.
Similarly, run
npm installto set everything up for the asset pipeline. gulp
is used to manage SCSS and JavaScript resources.
To develop the app, you will need two shells running, the first with
bin/rails sto run the actual Rails app, while the other runs
gulpor, alternatively
npm run devto support a BrowserSync session that live reloads whenever a SCSS, JS or Slim template is changed.
Run
npm run distto compile assets and place them in the public folder.
Now run
RAILS_ENV=production bin/rake assets:precompileto integrate the assets with Rails' own asset pipeline.