make_it_so 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/make_it_so/rails/app_builder.rb +5 -2
- data/lib/make_it_so/version.rb +1 -1
- data/snippets/rails/react_dependencies.json +1 -4
- 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: 4f4d7ee9af1b9999e285145d6b46472c5960065d
|
4
|
+
data.tar.gz: 326e87eeba816bf6ff56e6a69510665ae18d1d8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 052fd4f209532f6bb4edbaf048c9099a70197764fc6bee543f74ac89fb37168e6aa9a07bd930a35b0988444ae2b3b119838acec56db1e94492b37d714d8d1dfa
|
7
|
+
data.tar.gz: a18eb74e846e717da8164bbf4c808017d17954586133a89edbb3a6fef17fd722552f8d16e07200d9394f5ab37869583fd9423b12a74a13ee4b30f0eccae0d8ed
|
@@ -38,7 +38,7 @@ module MakeItSo
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def react
|
41
|
-
self.gem 'webpacker', '~> 3.
|
41
|
+
self.gem 'webpacker', '~> 3.2'
|
42
42
|
|
43
43
|
after_bundle do
|
44
44
|
rake 'webpacker:install'
|
@@ -48,10 +48,13 @@ module MakeItSo
|
|
48
48
|
parsed_json = JSON.parse(unparsed_json)
|
49
49
|
|
50
50
|
modify_json(package_json_file) do |json|
|
51
|
-
["dependencies"
|
51
|
+
["dependencies"].each do |key|
|
52
52
|
json[key] ||= {}
|
53
53
|
json[key].merge!(parsed_json[key])
|
54
54
|
end
|
55
|
+
|
56
|
+
json["scripts"] ||= {}
|
57
|
+
json["scripts"]["start"] = "./bin/webpack-dev-server"
|
55
58
|
end
|
56
59
|
|
57
60
|
rake 'yarn:install'
|
data/lib/make_it_so/version.rb
CHANGED
@@ -1,12 +1,9 @@
|
|
1
1
|
{
|
2
2
|
"dependencies": {
|
3
|
-
"@rails/webpacker": "~3.0
|
3
|
+
"@rails/webpacker": "~3.2.0",
|
4
4
|
"babel-preset-react": "~6.24.1",
|
5
5
|
"prop-types": "~15.6.0",
|
6
6
|
"react": "~15.4.2",
|
7
7
|
"react-dom": "~15.4.2"
|
8
|
-
},
|
9
|
-
"devDependencies": {
|
10
|
-
"webpack-dev-server": "~2.4.2"
|
11
8
|
}
|
12
9
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: make_it_so
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Pickett
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|