npm-pipeline-rails 1.6.2 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f96251273b37786bd49553b430ac3edc6b80c3be
4
- data.tar.gz: 6578229c4fddb49e68e0711285cefa67c17b4e88
3
+ metadata.gz: 0a4f937c9d23b2c1756036ec85d670f58ec12e8a
4
+ data.tar.gz: 43502ae1e035274a88e02205ea07f8238134547e
5
5
  SHA512:
6
- metadata.gz: d92db5d305c11a4bc3a9dd316564389038658a878310c991025cd8ce3856aebbbf96bf228288414d77924ca40d67400b99997eb33efdd5063c12e4c8de351e95
7
- data.tar.gz: 8661f19a49117d1f3bf6f14b5e500bb4af3618624d3395ca02308d8c1808f5810d53e5717d9b90e1cafaedeeecbf6e2cda682274e0badaf241a56bedd382e062
6
+ metadata.gz: 22bcff1246dc21694160e8e66113aa0acdeb04234df49bac9a3b507a87ea932b28062664acb0b9546e29f342fdcf10d35fcd71416965c6b100989eb6115879a8
7
+ data.tar.gz: 9de7f2e998141d1f1a4aad64fa3f3391fe0b437c48a9ede54594720dab4f5c526f0a31ab98d34a04ca8767e81352b8efb1285eadd083c37ead73800d7edab3a4
data/HISTORY.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [v1.7.0]
2
+ > Dec 20, 2016
3
+
4
+ - [#12] - Implement `config.npm.install_on_rails_server` to suppress `npm install` on Rails server startup. ([@mikker])
5
+
6
+ [v1.7.0]: https://github.com/rstacruz/npm-pipeline-rails/compare/v1.6.2...v1.7.0
7
+
1
8
  ## [v1.6.2]
2
9
  > Oct 14, 2016
3
10
 
@@ -93,4 +100,5 @@
93
100
  [@victorsolis]: https://github.com/victorsolis
94
101
  [@mikker]: https://github.com/mikker
95
102
  [#11]: https://github.com/rstacruz/npm-pipeline-rails/issues/11
103
+ [#12]: https://github.com/rstacruz/npm-pipeline-rails/issues/12
96
104
  [@aka-cronos]: https://github.com/aka-cronos
data/README.md CHANGED
@@ -9,6 +9,7 @@ npm-pipeline-rails allows you to use any toolchain to bulid your asset files in
9
9
  - Use [Grunt][] with Rails
10
10
  - Use [Browserify][] with Rails
11
11
  - Use [Broccoli][] with Rails
12
+ - Use [Webpack][] with Rails
12
13
  - Use any other asset tool with Rails
13
14
 
14
15
  [Rails]: http://rubyonrails.org/
@@ -17,6 +18,7 @@ npm-pipeline-rails allows you to use any toolchain to bulid your asset files in
17
18
  [Browserify]: http://browserify.org/
18
19
  [Gulp]: http://gulpjs.com/
19
20
  [Grunt]: http://gruntjs.com/
21
+ [Webpack]: https://webpack.github.io/
20
22
 
21
23
  <br>
22
24
 
@@ -47,8 +49,8 @@ Use the generators for your preferred build tool:
47
49
 
48
50
  * Put together a setup with [Brunch], [Broccoli], [Gulp], or any other tool. It should:
49
51
  * Take source files from `app/brunch/`
50
- * Render JS to `vendor/assets/stylesheets/brunch/`
51
- * Render CSS to `vendor/assets/javascripts/brunch/`
52
+ * Render CSS to `vendor/assets/stylesheets/brunch/`
53
+ * Render JS to `vendor/assets/javascripts/brunch/`
52
54
  * _(Replace `brunch` with whatever build tool you use.)_
53
55
  * Create a `package.json` with `start` and `build` scripts to point to this setup. ([See example](lib/generators/npm_pipeline/brunch/package.json))
54
56
  * `start` - Configure this script to run a development file watcher.
@@ -42,6 +42,7 @@ module NpmPipelineRails
42
42
  config.npm.watch = ['npm run start']
43
43
  config.npm.install = ['npm install']
44
44
  config.npm.install_on_asset_precompile = true
45
+ config.npm.install_on_rails_server = true
45
46
 
46
47
  rake_tasks do |app|
47
48
  namespace :assets do
@@ -59,7 +60,9 @@ module NpmPipelineRails
59
60
 
60
61
  initializer 'npm_pipeline.watch' do |app|
61
62
  if app.config.npm.enable_watch && ::Rails.const_defined?(:Server)
62
- Utils.do_system app.config.npm.install
63
+ if app.config.npm.install_on_rails_server
64
+ Utils.do_system app.config.npm.install
65
+ end
63
66
  [*app.config.npm.watch].each do |cmd|
64
67
  Utils.background(cmd) { Utils.do_system [cmd] }
65
68
  end
@@ -1,3 +1,3 @@
1
1
  module NpmPipelineRails
2
- VERSION = '1.6.2'
2
+ VERSION = '1.7.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: npm-pipeline-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rico Sta. Cruz
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-10-14 00:00:00.000000000 Z
11
+ date: 2016-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties