linner 0.10.0 → 0.11.0

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: da0b05dc72a9e2993d4c6c1f12c27311e622ba20
4
- data.tar.gz: 75ac9e76a25aa4d7fdbf27c82ece3bbc3f29028a
3
+ metadata.gz: 2f17a7a6157f0d76db83d38757bf20e380790bca
4
+ data.tar.gz: 16cded7ce2aed581c237fe360920efc0b56312cd
5
5
  SHA512:
6
- metadata.gz: 8c2421a77a255f1d4b5e15e8ed263ea6bf2ed7d478808697c4ec858aabdb435f9bbe203c8a9b1bad6df6b67dedcf81305cddff625f5ab3d722d346a25db3a5dd
7
- data.tar.gz: 60a194ab95ce596151b82646f429628b8b80fe0176d0e8a6da02524694683427900d63826b2cf5cd68d8f0190973bdab2b0e96d85720df41bbaf253c61fb2a78
6
+ metadata.gz: 51f539fa07fffad681f9245aaba35c5a837bfe317f605ef9fa42da3fc2077bd14028032b281c8786820a6425fe01c360b3cb80fd16c9ab482796c92d255bed2b
7
+ data.tar.gz: 085e3248ef82b1b0cd84c8b04bfeb367ea44702fb85f64e658ceefbc99d988cebcf9d9867bd05b1c08e0ebf397afe5c8ad86b1af5a01a245559a19ab79bc36bd
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v0.11.0
2
+ - supports `es6` and react `jsx` by babel
3
+
1
4
  v0.10.0
2
5
  - introducing new directive `compile` and `context` to compile files
3
6
 
data/README.md CHANGED
@@ -11,7 +11,7 @@ Linner is a full-featured HTML5 application assembler.
11
11
  [![Screencast](http://cl.ly/image/000k0R400F30/Image%202014-04-29%20at%2010.20.12%20AM.png)](https://vimeo.com/71944672)
12
12
 
13
13
  * Fast!
14
- * Supports `Sass`, `Compass` and `Coffee`.
14
+ * Supports `Sass`, `Compass`, `Coffee`, `ECMAScript 6` and `React`.
15
15
  * Supports OS X Lion and Mountaion Lion Notifications.
16
16
  * Supports Modular Javascript, All your code will be wrapped by `cmd`.
17
17
  * Supports `concat` code by `config file` not `directive processor`.
@@ -3,6 +3,7 @@ require "sass"
3
3
  require "compass/core"
4
4
  require "handlebars.rb"
5
5
  require "coffee_script"
6
+ require "babel/transpiler"
6
7
 
7
8
  module Tilt
8
9
  class YAMLTemplate < PlainTemplate
@@ -13,6 +14,16 @@ module Tilt
13
14
  self.default_mime_type = "application/javascript"
14
15
  end
15
16
 
17
+ class BabelTemplate < PlainTemplate
18
+ self.default_mime_type = "application/javascript"
19
+
20
+ def prepare; end
21
+
22
+ def evaluate(scope, locals, &block)
23
+ @output ||= Babel::Transpiler.transform(data, compact: false)["code"]
24
+ end
25
+ end
26
+
16
27
  class CSSTemplate < PlainTemplate
17
28
  self.default_mime_type = "text/css"
18
29
  end
@@ -55,6 +66,7 @@ module Tilt
55
66
  register CSSTemplate, "css"
56
67
  register JavascriptTemplate, "js"
57
68
  register YAMLTemplate, "yml", "yaml"
69
+ register BabelTemplate, "es6", "es", "jsx"
58
70
  register HandlebarsTemplate, "hbs", "handlebars"
59
71
 
60
72
  register CompassSassTemplate, "sass"
@@ -1,3 +1,3 @@
1
1
  module Linner
2
- VERSION = "0.10.0"
2
+ VERSION = "0.11.0"
3
3
  end
data/linner.gemspec CHANGED
@@ -21,6 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency "thor", "~> 0.18"
22
22
  spec.add_dependency "tilt", "~> 2.0"
23
23
  spec.add_dependency "reel", "~> 0.5.0"
24
+ spec.add_dependency "http", "~> 0.7.2"
24
25
  spec.add_dependency "listen", "~> 1.3"
25
26
  spec.add_dependency "uglifier", "~> 2.5.0"
26
27
  spec.add_dependency "cssminify", "~> 1.0.2"
@@ -28,5 +29,6 @@ Gem::Specification.new do |spec|
28
29
  spec.add_dependency "compass-core", "~> 1.0.1"
29
30
  spec.add_dependency "coffee-script", "~> 2.3.0"
30
31
  spec.add_dependency "handlebars.rb", "~> 0.1.2"
32
+ spec.add_dependency "babel-transpiler", "~> 0.6.0"
31
33
  spec.add_dependency "terminal-notifier", "~> 1.5"
32
34
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: linner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-02 00:00:00.000000000 Z
11
+ date: 2015-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: 0.5.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: http
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.7.2
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.7.2
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: listen
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -150,6 +164,20 @@ dependencies:
150
164
  - - "~>"
151
165
  - !ruby/object:Gem::Version
152
166
  version: 0.1.2
167
+ - !ruby/object:Gem::Dependency
168
+ name: babel-transpiler
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: 0.6.0
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: 0.6.0
153
181
  - !ruby/object:Gem::Dependency
154
182
  name: terminal-notifier
155
183
  requirement: !ruby/object:Gem::Requirement