npm-pipeline-rails 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +9 -0
- data/README.md +30 -8
- 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: f96251273b37786bd49553b430ac3edc6b80c3be
|
4
|
+
data.tar.gz: 6578229c4fddb49e68e0711285cefa67c17b4e88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d92db5d305c11a4bc3a9dd316564389038658a878310c991025cd8ce3856aebbbf96bf228288414d77924ca40d67400b99997eb33efdd5063c12e4c8de351e95
|
7
|
+
data.tar.gz: 8661f19a49117d1f3bf6f14b5e500bb4af3618624d3395ca02308d8c1808f5810d53e5717d9b90e1cafaedeeecbf6e2cda682274e0badaf241a56bedd382e062
|
data/HISTORY.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [v1.6.2]
|
2
|
+
> Oct 14, 2016
|
3
|
+
|
4
|
+
- [#11] - Fix `rails generate npm_pipeline:gulp` not giving a working setup. ([@aka-cronos])
|
5
|
+
|
6
|
+
[v1.6.2]: https://github.com/rstacruz/npm-pipeline-rails/compare/v1.6.1...v1.6.2
|
7
|
+
|
1
8
|
## [v1.6.1]
|
2
9
|
> May 27, 2016
|
3
10
|
|
@@ -85,3 +92,5 @@
|
|
85
92
|
[@jasontorres]: https://github.com/jasontorres
|
86
93
|
[@victorsolis]: https://github.com/victorsolis
|
87
94
|
[@mikker]: https://github.com/mikker
|
95
|
+
[#11]: https://github.com/rstacruz/npm-pipeline-rails/issues/11
|
96
|
+
[@aka-cronos]: https://github.com/aka-cronos
|
data/README.md
CHANGED
@@ -57,9 +57,13 @@ Use the generators for your preferred build tool:
|
|
57
57
|
|
58
58
|
#### Set up support for tests
|
59
59
|
|
60
|
-
If you're using continuous integration for your tests, configure it to run
|
60
|
+
If you're using continuous integration for your tests, configure it to run this before your tests:
|
61
61
|
|
62
|
-
|
62
|
+
```sh
|
63
|
+
npm run build
|
64
|
+
```
|
65
|
+
|
66
|
+
For tests running in your development machine, ensure that asset files are available when running your tests. This means starting your dev server at least once before running tests, or invoking `npm run build` manually.
|
63
67
|
|
64
68
|
#### Disable some gems
|
65
69
|
|
@@ -74,20 +78,24 @@ You may also want to disable some gems, depending on your set up:
|
|
74
78
|
|
75
79
|
## Heroku
|
76
80
|
|
77
|
-
|
81
|
+
When deploying to [Heroku](https://heroku.com), use [Node.js](https://github.com/heroku/heroku-buildpack-nodejs) and [Ruby](https://github.com/heroku/heroku-buildpack-ruby) buildpacks together. See: [Using Multiple Buildpacks for an App](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app) *(devcenter.heroku.com)*
|
78
82
|
|
79
|
-
```
|
80
|
-
heroku buildpacks:set heroku/ruby
|
81
|
-
heroku buildpacks:add --index 1 heroku/nodejs
|
83
|
+
```sh
|
84
|
+
$ heroku buildpacks:set heroku/ruby
|
85
|
+
$ heroku buildpacks:add --index 1 heroku/nodejs
|
86
|
+
|
87
|
+
Buildpack added. Next release on my-app-name will use:
|
88
|
+
1. heroku/nodejs
|
89
|
+
2. heroku/ruby
|
82
90
|
```
|
83
91
|
|
84
|
-
|
92
|
+
It's recommended to turn off `config.npm.install_on_asset_precompile` to make deployments faster; see [§ Configuration](#configuration).
|
85
93
|
|
86
94
|
<br>
|
87
95
|
|
88
96
|
## Configuration
|
89
97
|
|
90
|
-
npm-pipeline-rails provides these configuration options
|
98
|
+
npm-pipeline-rails provides these configuration options below. Put them inside `config/application.rb` (not in an initializer!).
|
91
99
|
|
92
100
|
```rb
|
93
101
|
# These are defaults; in most cases, you don't need to configure anything.
|
@@ -142,6 +150,20 @@ Consult [railtie.rb](https://github.com/rstacruz/npm-pipeline-rails/blob/master/
|
|
142
150
|
|
143
151
|
<br>
|
144
152
|
|
153
|
+
## Yarn
|
154
|
+
|
155
|
+
To use [Yarn](https://yarnpkg.com/) instead of npm, change `config.npm.install` as seen below in `config/application.rb`. See [§ Configuration](#configuration) for more details.
|
156
|
+
|
157
|
+
```rb
|
158
|
+
Rails.application.configure do
|
159
|
+
# ...
|
160
|
+
|
161
|
+
config.npm.install = ['yarn']
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
<br>
|
166
|
+
|
145
167
|
## Skipping Rails asset pipeline
|
146
168
|
|
147
169
|
The recommended setup renders files to `vendor/assets/stylesheets/brunch/` and `vendor/assets/javascripts/brunch/`. (Replace `brunch` with whatever build tool you use.) You may opt to output to `public/assets/stylesheets/` and `public/assets/javascripts/` instead.
|
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.
|
4
|
+
version: 1.6.2
|
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-
|
11
|
+
date: 2016-10-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|