sprockets-es6 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -0
- data/lib/sprockets/es6.rb +6 -1
- data/lib/sprockets/es6/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: 0d8ece19a8b0a1a2b751c845411eb830f2483942
|
4
|
+
data.tar.gz: a6c9908ed81924203e3e55c4f6df3a7c1c9627f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4399a02b0519f2796f6e66a73082a048676f97756dbc9fa04bf981fdd33f0c6bdf588327f2805a2a0b0acd52d63e7e5b7e1f9f0240bc0ea703f2b1f0d237fd9e
|
7
|
+
data.tar.gz: c5203c421bcd6d5810804c1bde0295ce00c71941f0ad996acb85f1ce240913bd300a327a3a0b495127b597975200cfdbfcd7c4ca9ff219c383ed42e8cb7451e2
|
data/README.md
CHANGED
@@ -27,6 +27,16 @@ class Animal {
|
|
27
27
|
}
|
28
28
|
```
|
29
29
|
|
30
|
+
## Releases
|
31
|
+
|
32
|
+
This plugin is primarily experimental and will never reach a stable 1.0. The
|
33
|
+
purpose is to test out 6to5 features on Sprockets 3.x and include it by default
|
34
|
+
in Sprockets 4.x.
|
35
|
+
|
30
36
|
## Caveats
|
31
37
|
|
32
38
|
Requires Sprockets 3 betas.
|
39
|
+
|
40
|
+
``` ruby
|
41
|
+
gem 'sprockets', '~>3.0.0.beta'
|
42
|
+
```
|
data/lib/sprockets/es6.rb
CHANGED
@@ -26,7 +26,12 @@ module Sprockets
|
|
26
26
|
def call(input)
|
27
27
|
data = input[:data]
|
28
28
|
result = input[:cache].fetch(@cache_key + [data]) do
|
29
|
-
ES6to5.transform(data, @options
|
29
|
+
ES6to5.transform(data, @options.merge(
|
30
|
+
'sourceRoot' => input[:load_path],
|
31
|
+
'moduleRoot' => '',
|
32
|
+
'filename' => input[:filename],
|
33
|
+
'filenameRelative' => input[:environment].split_subpath(input[:load_path], input[:filename])
|
34
|
+
))
|
30
35
|
end
|
31
36
|
result['code']
|
32
37
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-es6
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joshua Peek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: 6to5
|