breezy 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/breezy/version.rb +1 -1
- data/lib/install/mobile.rb +1 -1
- data/lib/install/templates/mobile/babelrc +23 -0
- data/lib/install/templates/web/babelrc +33 -0
- data/lib/install/web.rb +1 -1
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 47547802b67d5b6d017f364c69337c93dce127d1
|
4
|
+
data.tar.gz: 72c1c9a8fa797d65bef6e17c951054bd1d3377e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0788e5e1a3c008f5a344e02eed5f71b44b725051d0670ffb11859dc6d3256d39b36f0cd5b71d426bb0d20a2e4f78ca3c40c92866c32c90053622446548d2c902
|
7
|
+
data.tar.gz: 2831188f9cfcd1a8178107ff95361fbbc948de8a98f567329a75d82a213f85e878a6f6b82ee690b610df7cd741c7237952aae05faeb3370d4e3e716e75c16a51
|
data/lib/breezy/version.rb
CHANGED
data/lib/install/mobile.rb
CHANGED
@@ -33,7 +33,7 @@ if File.exist?(babelrc)
|
|
33
33
|
|
34
34
|
else
|
35
35
|
say "Copying .babelrc to app root"
|
36
|
-
copy_file "#{__dir__}/templates/mobile
|
36
|
+
copy_file "#{__dir__}/templates/mobile/babelrc", Rails.root.join(".babelrc")
|
37
37
|
end
|
38
38
|
|
39
39
|
say "Copying application.js file to app root"
|
@@ -0,0 +1,23 @@
|
|
1
|
+
{
|
2
|
+
"presets": ["babel-preset-expo"],
|
3
|
+
"env": {
|
4
|
+
"development": {
|
5
|
+
"plugins": ["transform-react-jsx-source"]
|
6
|
+
}
|
7
|
+
},
|
8
|
+
"plugins": [
|
9
|
+
[
|
10
|
+
"module-resolver",
|
11
|
+
{
|
12
|
+
"root": [
|
13
|
+
"./app"
|
14
|
+
],
|
15
|
+
"alias": {
|
16
|
+
"views": "./app/views",
|
17
|
+
"components": "./app/components",
|
18
|
+
"javascripts": "./app/javascripts"
|
19
|
+
}
|
20
|
+
}
|
21
|
+
]
|
22
|
+
]
|
23
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"presets": [
|
3
|
+
[
|
4
|
+
"env",
|
5
|
+
{
|
6
|
+
"modules": false,
|
7
|
+
"targets": {
|
8
|
+
"browsers": "> 1%",
|
9
|
+
"uglify": true
|
10
|
+
},
|
11
|
+
"useBuiltIns": true
|
12
|
+
}
|
13
|
+
],
|
14
|
+
"react"
|
15
|
+
],
|
16
|
+
"plugins": [
|
17
|
+
"syntax-dynamic-import",
|
18
|
+
["module-resolver", {
|
19
|
+
"root": ["./app"],
|
20
|
+
"alias": {
|
21
|
+
"views": "./app/views"
|
22
|
+
}
|
23
|
+
}],
|
24
|
+
"transform-object-rest-spread",
|
25
|
+
[
|
26
|
+
"transform-class-properties",
|
27
|
+
{
|
28
|
+
"spec": true
|
29
|
+
}
|
30
|
+
]
|
31
|
+
]
|
32
|
+
}
|
33
|
+
|
data/lib/install/web.rb
CHANGED
@@ -54,7 +54,7 @@ if File.exist?(babelrc)
|
|
54
54
|
|
55
55
|
else
|
56
56
|
say "Copying .babelrc to app root directory"
|
57
|
-
copy_file "#{__dir__}/templates/web
|
57
|
+
copy_file "#{__dir__}/templates/web/babelrc", ".babelrc"
|
58
58
|
end
|
59
59
|
|
60
60
|
say "Copying application.js file to #{Webpacker.config.source_entry_path}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: breezy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johny Ho
|
@@ -139,9 +139,11 @@ files:
|
|
139
139
|
- lib/install/mobile.rb
|
140
140
|
- lib/install/templates/mobile/app.js
|
141
141
|
- lib/install/templates/mobile/app.json
|
142
|
+
- lib/install/templates/mobile/babelrc
|
142
143
|
- lib/install/templates/mobile/package.json
|
143
144
|
- lib/install/templates/mobile/rn-cli.config.js
|
144
145
|
- lib/install/templates/web/application.js
|
146
|
+
- lib/install/templates/web/babelrc
|
145
147
|
- lib/install/web.rb
|
146
148
|
- lib/tasks/install.rake
|
147
149
|
- test/breezy_test.rb
|