browserify-rails 2.2.1 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +12 -1
- data/browserify-rails.gemspec +1 -1
- data/lib/browserify-rails/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca17fb672cfb8ca820317accf1f92ffc7e67dd23
|
4
|
+
data.tar.gz: 8d0d51db9280899a89712731c6c7a80d87273ed5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd064eea27a383a0edd94ae6782d043db9181f6b5960c5a6abb77cb1a36444ac6f26293a4632e1aed7cf09681c243ab3eb37ad802155b27e9b42603e87308663
|
7
|
+
data.tar.gz: 2e1c8e5ab2912e054aaa3e643cc9063578520a0c207f0e9c0fea5ff6bb1ac78bba68ed64647fc97ceb26091a53b1f5ea782b22654713b436496029eb7378ba62
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,9 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file going forward.
|
3
3
|
|
4
|
+
## [3.0.0] - 2016-02-17
|
5
|
+
- upgrade dependency on sprockets to >= 3.5.2
|
6
|
+
|
4
7
|
## [2.2.0] - 2016-01-01
|
5
8
|
- fix another dependency issue impacting cache invalidation (see PR #131)
|
6
9
|
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# browserify-rails
|
2
2
|
|
3
|
-
**If you are using react-rails or experience any issues with
|
3
|
+
**If you are using react-rails or experience any issues with browserify-rails 2.x, please use the 1.5.x versions until 2.x is stabilized. Please see the issues for discussions and feel free to post your experience. The use of react-rails with browserify-rails is a bit of an anti-pattern in terms of going to CommonJS so it may never be supported. Consider using a browserify transform for React support.
|
4
4
|
|
5
5
|
[![Join the chat at https://gitter.im/browserify-rails/browserify-rails](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/browserify-rails/browserify-rails?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
6
6
|
[![Gem Version](https://badge.fury.io/rb/browserify-rails.svg)](http://badge.fury.io/rb/browserify-rails)
|
@@ -223,6 +223,17 @@ buildpacks that run `bundle` and `npm install` on the target machine.
|
|
223
223
|
|
224
224
|
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs.git
|
225
225
|
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-ruby.git
|
226
|
+
|
227
|
+
## Using Browserify Transforms
|
228
|
+
|
229
|
+
You can easily use a browserify transform by adding it to your `package.json`, then adding the transform flag to your `application.rb`, using `config.browserify_rails.commandline_options`. For example, here is how you can add ES6 support in your app:
|
230
|
+
|
231
|
+
1. Add babelify to your `package.json` in your app's root directory, then run `npm install`
|
232
|
+
2. Add this line to your config/application.rb:
|
233
|
+
`config.browserify_rails.commandline_options = "-t babelify --extension-\".es6\""`
|
234
|
+
3. Create some `.es6` files and require them with `var m = require('./m.es6')` or `import m from './m.es6`
|
235
|
+
4. Restart your server, and you now have ES6 support!
|
236
|
+
|
226
237
|
|
227
238
|
## Troubleshooting
|
228
239
|
|
data/browserify-rails.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
|
22
22
|
spec.add_runtime_dependency "railties", ">= 4.0.0", "< 5.0"
|
23
|
-
spec.add_runtime_dependency "sprockets", "
|
23
|
+
spec.add_runtime_dependency "sprockets", ">= 3.5.2"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", ">= 1.3"
|
26
26
|
spec.add_development_dependency "rake"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browserify-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henry Hsu, Cymen Vig
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -34,16 +34,16 @@ dependencies:
|
|
34
34
|
name: sprockets
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - "
|
37
|
+
- - ">="
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 3.
|
39
|
+
version: 3.5.2
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
|
-
- - "
|
44
|
+
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 3.
|
46
|
+
version: 3.5.2
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: bundler
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -252,7 +252,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
252
252
|
version: '0'
|
253
253
|
requirements: []
|
254
254
|
rubyforge_project:
|
255
|
-
rubygems_version: 2.
|
255
|
+
rubygems_version: 2.5.1
|
256
256
|
signing_key:
|
257
257
|
specification_version: 4
|
258
258
|
summary: 'Get the best of both worlds: Browserify + Rails = CommonJS Heaven'
|