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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4cf04399ae70cea783c65554533be5c0bfa8567
4
- data.tar.gz: ac7799a8a5379bc99868f0b90882f5508e00a77d
3
+ metadata.gz: f96251273b37786bd49553b430ac3edc6b80c3be
4
+ data.tar.gz: 6578229c4fddb49e68e0711285cefa67c17b4e88
5
5
  SHA512:
6
- metadata.gz: b7c069c95bd71d98c1e3cd89be45d4084bfcce8f3362ad508c09031757613b62f3c8a68b308ba0f337dff36754c268b377851c0e3ba67733f463d3849db9f79e
7
- data.tar.gz: e29a21e9d22c2886f7ac04ce7c21d1e8fc7444529ddf5949f84107e06d8a1b7089f5d245df52020dd900e0e0c32144bfde3511d92d1d975cadf8c9efcfc48e02
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 `bundle exec rake assets:npm_build` before your tests.
60
+ If you're using continuous integration for your tests, configure it to run this before your tests:
61
61
 
62
- 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 `rake assets:npm_build` manually.
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
- In Heroku, this requires the [Node.js](https://github.com/heroku/heroku-buildpack-nodejs) and [Ruby](https://github.com/heroku/heroku-buildpack-ruby) buildpacks. See: [Using Multiple Buildpacks for an App](https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app) *(devcenter.heroku.com)*
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
- Also see [Configuration](#configuration) on how to turn off `config.npm.install_on_asset_precompile`.
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.
@@ -1,3 +1,3 @@
1
1
  module NpmPipelineRails
2
- VERSION = '1.6.1'
2
+ VERSION = '1.6.2'
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.1
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-09-25 00:00:00.000000000 Z
11
+ date: 2016-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties