npm-pipeline-rails 1.5.0 → 1.6.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: eb96738c4e2c453cdf4135d1c3a26c3b09580103
4
- data.tar.gz: 4e88f6fac09276cdf1de3c5a24c5b25563ca11da
3
+ metadata.gz: e2573cdb7f26889ae4b828227ead1c731f1dc24b
4
+ data.tar.gz: ef49a417009c8cfd5ac0ccdbfb589b35ad71d5ca
5
5
  SHA512:
6
- metadata.gz: 4db7512df7bf8d65407738e419d44572c120f9f50c350a623c1f7a235109dc5149b25396e81f365373a724249dd2ecc198d5aef5981d05acc75d69ad1b594cb1
7
- data.tar.gz: 4f3af06963eba4a6ffcef12b051c891ae2085ec348f7669bae91ad7f3e31f52c72dd033331e6d785459c6191dde31eecddfc48418470225609139d7d3f5e9e45
6
+ metadata.gz: 53e795b6b8fb5c4c4e20ef7b7564465653fa89f43ecd736d39c021a79203366313bca67b4b282302daf280fecfa52021a826260333f9d92be5b46e1424fb2c42
7
+ data.tar.gz: bcf308cffbc00ea7f02f811cfa2606059037a77bf31e6ec62afea9a76f5e9fa820e2030d117872142e9b654aabe3eec49108e923cd64351313c61ec0216792a7
data/HISTORY.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [v1.6.0]
2
+ > May 27, 2016
3
+
4
+ - [#9] - Add a `config.npm.install_on_asset_precompile` option to optimize deploy times.
5
+
6
+ [v1.6.0]: https://github.com/rstacruz/npm-pipeline-rails/compare/v1.5.0...v1.6.0
7
+
1
8
  ## [v1.5.0]
2
9
  > May 24, 2016
3
10
 
@@ -65,5 +72,6 @@
65
72
  [#3]: https://github.com/rstacruz/npm-pipeline-rails/issues/3
66
73
  [#4]: https://github.com/rstacruz/npm-pipeline-rails/issues/4
67
74
  [#7]: https://github.com/rstacruz/npm-pipeline-rails/issues/7
75
+ [#9]: https://github.com/rstacruz/npm-pipeline-rails/issues/9
68
76
  [@jasontorres]: https://github.com/jasontorres
69
77
  [@victorsolis]: https://github.com/victorsolis
data/README.md CHANGED
@@ -80,7 +80,7 @@ npm-pipeline-rails provides these configuration options:
80
80
  # These are defaults; in most cases, you don't need to configure anything.
81
81
 
82
82
  Rails.application.configure do
83
- # Enables npm_pipeline_rails's invocation of `watch` commands.
83
+ # Enables npm_pipeline_rails's invocation of `watch` commands. (v1.5.0+)
84
84
  # If `true`, watch commands will be ran alongside Rails's server.
85
85
  # Defaults to true in development.
86
86
  config.npm.enable_watch = Rails.env.development?
@@ -99,6 +99,11 @@ Rails.application.configure do
99
99
  'npm run webpack:start',
100
100
  'npm run brunch:start'
101
101
  ]
102
+
103
+ # If 'true', runs 'npm install' on 'rake assets:precompile'. (v1.6.0+)
104
+ # This is generally desired, but you may set this to false when
105
+ # deploying to Heroku to speed things up.
106
+ config.npm.install_on_asset_precompile = true
102
107
  end
103
108
  ```
104
109
 
@@ -37,12 +37,15 @@ module NpmPipelineRails
37
37
  config.npm.build = ['npm run build']
38
38
  config.npm.watch = ['npm run start']
39
39
  config.npm.install = ['npm install']
40
+ config.npm.install_on_asset_precompile = true
40
41
 
41
42
  rake_tasks do |app|
42
43
  namespace :assets do
43
44
  desc 'Build asset prerequisites using npm'
44
45
  task :npm_build do
45
- Utils.do_system app.config.npm.install
46
+ if app.config.npm.install_on_asset_precompile
47
+ Utils.do_system app.config.npm.install
48
+ end
46
49
  Utils.do_system app.config.npm.build
47
50
  end
48
51
 
@@ -1,3 +1,3 @@
1
1
  module NpmPipelineRails
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.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.5.0
4
+ version: 1.6.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-05-24 00:00:00.000000000 Z
11
+ date: 2016-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties