File tree Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Expand file tree Collapse file tree 5 files changed +29
-6
lines changed Original file line number Diff line number Diff line change 1
1
PATH
2
2
remote: .
3
3
specs:
4
- middleman-react (0.10.0 )
4
+ middleman-react (0.11.1 )
5
5
execjs
6
6
middleman-core (>= 3.0 )
7
- react-source (= 0.10.0 )
7
+ react-source (~> 0.11.1 )
8
8
9
9
GEM
10
10
remote: https://rubygems.org/
103
103
ffi (>= 0.5.0 )
104
104
rdoc (3.12.2 )
105
105
json (~> 1.4 )
106
- react-source (0.10.0 )
106
+ react-source (0.11.1 )
107
107
rspec (2.14.1 )
108
108
rspec-core (~> 2.14.0 )
109
109
rspec-expectations (~> 2.14.0 )
Original file line number Diff line number Diff line change @@ -9,6 +9,29 @@ Inspired (and pretty much a clone of really) the [react-rails] gem for Middleman
9
9
1 . ` gem install middleman-react `
10
10
2 . ` activate :react ` in ` config.rb `
11
11
12
+
13
+ #### Sprockets loading react-source
14
+
15
+ In your Middleman ` config.rb ` add the following:
16
+
17
+ ``` ruby
18
+ after_configuration do
19
+ sprockets.append_path File .dirname(::React ::Source .bundled_path_for(' react.js' ))
20
+ end
21
+ ```
22
+
23
+ Now you can Sprockets include React:
24
+
25
+ ```
26
+ //= require react
27
+ ```
28
+
29
+ Or with addons:
30
+
31
+ ```
32
+ //= require react-with-addons
33
+ ```
34
+
12
35
#### Developing / Contributing
13
36
1 . Fork it!
14
37
2 . Get set up: ` ./script/bootstrap `
Original file line number Diff line number Diff line change @@ -4,6 +4,6 @@ module Middleman
4
4
# Gem packaging constants
5
5
module React
6
6
PACKAGE = 'middleman-react'
7
- VERSION = '0.10.0 '
7
+ VERSION = '0.11.1 '
8
8
end
9
9
end
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
19
19
gem . add_dependency "middleman-core" , [ ">= 3.0" ]
20
20
gem . add_dependency "execjs"
21
- gem . add_dependency "react-source" , "0.10.0 "
21
+ gem . add_dependency "react-source" , "~> 0.11.1 "
22
22
23
23
gem . add_development_dependency "aruba"
24
24
gem . add_development_dependency "cane"
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ Feature: Transforming JSX into Javascript when it is written in Coffeescript
17
17
this.app.components.test = React.createClass({displayName: 'test',
18
18
render: function() {
19
19
return React.DOM.div(null,
20
- TestComponent( {data:this.props.someData} )
20
+ TestComponent({data: this.props.someData})
21
21
);
22
22
}
23
23
});
You can’t perform that action at this time.
0 commit comments