react-webpack-rails 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a30515e8c4f6720e0e95035932a39c407a3ac139
|
4
|
+
data.tar.gz: 00869570fcd808f4ca23d0f2b4ea11c9699e3742
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32792874eda6196d97fc73a473605cbe2b29538fc217717ebcb1107d01415b7b0d448483d5c188d1291e38fa5b5516aa72e9925265d3aba4bcb74a8bd3f1125e
|
7
|
+
data.tar.gz: 3375ec57ec380b43502c90fef865baae1ebccfaf0fff73760e6c8437b6e8bb429027ac10e67f33bd667bb1540e03ead930055d06878e4b619da5a9caa8632653
|
@@ -9,7 +9,7 @@ module React
|
|
9
9
|
desc "Installs necessary framework for react-webpack integration"
|
10
10
|
|
11
11
|
def create_base_directories
|
12
|
-
empty_directory("
|
12
|
+
empty_directory("client/components")
|
13
13
|
empty_directory("app/assets/webpack")
|
14
14
|
end
|
15
15
|
|
@@ -64,7 +64,7 @@ module React
|
|
64
64
|
append_npm_run_tasks
|
65
65
|
else
|
66
66
|
puts "Cool. We'll add a standard `package.json` with the appropriate dependencies for you now. Just remember to run 'npm install' later."
|
67
|
-
inject_into_file "package.json", node_dependencies, { after: '
|
67
|
+
inject_into_file "package.json", node_dependencies, { after: '"dependencies": {' }
|
68
68
|
append_npm_run_tasks
|
69
69
|
end
|
70
70
|
end
|
@@ -75,22 +75,11 @@ module React
|
|
75
75
|
end
|
76
76
|
|
77
77
|
def webpack_watch_task
|
78
|
-
|
79
|
-
"watch": "webpack --watch --colors --progress"'
|
78
|
+
%Q(,\n "watch": "webpack --watch --colors --progress")
|
80
79
|
end
|
81
80
|
|
82
81
|
def node_dependencies
|
83
|
-
|
84
|
-
"dependencies": {
|
85
|
-
"babel-core": "^6.7.7",
|
86
|
-
"babel-loader": "^6.2.4",
|
87
|
-
"babel-preset-es2015": "^6.6.0",
|
88
|
-
"babel-preset-react": "^6.5.0",
|
89
|
-
"classnames": "^2.2.5",
|
90
|
-
"react": "^15.0.1",
|
91
|
-
"react-dom": "^15.0.1",
|
92
|
-
"webpack": "^1.13.0"
|
93
|
-
}'
|
82
|
+
%Q(\n "babel-core": "^6.7.7",\n "babel-loader": "^6.2.4",\n "babel-preset-es2015": "^6.6.0",\n "babel-preset-react": "^6.5.0",\n "classnames": "^2.2.5",\n "react": "^15.0.1",\n "react-dom": "^15.0.1",\n "webpack": "^1.13.0"\n )
|
94
83
|
end
|
95
84
|
end
|
96
85
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: react-webpack-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alan Smith
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|