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 +4 -4
- data/HISTORY.md +8 -0
- data/README.md +6 -1
- data/lib/npm-pipeline-rails/railtie.rb +4 -1
- data/lib/npm-pipeline-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2573cdb7f26889ae4b828227ead1c731f1dc24b
|
4
|
+
data.tar.gz: ef49a417009c8cfd5ac0ccdbfb589b35ad71d5ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
|
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.
|
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-
|
11
|
+
date: 2016-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|