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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5343e4119db636430cc7be6a560bf26c7619b09a
4
- data.tar.gz: 09955e37eda5c29e1a46d8f507afd4233b4deb33
3
+ metadata.gz: 47547802b67d5b6d017f364c69337c93dce127d1
4
+ data.tar.gz: 72c1c9a8fa797d65bef6e17c951054bd1d3377e8
5
5
  SHA512:
6
- metadata.gz: 24735a0e44e610b455c79d578f6d7dcf9a5b21103c8864ec94aa3cc94d26f5a542f2c58f6aeaeacacc24aff0979481840ed6617eeb9df3089dc8f04689ef0324
7
- data.tar.gz: 6ea93da98ad840008e443a969bb2334591befc89ead2e661a74d0d068d2bf968c3418c96581cffb4b6bf27cebe1673e4c6c28f96d124b5add9da64f726f42d7f
6
+ metadata.gz: 0788e5e1a3c008f5a344e02eed5f71b44b725051d0670ffb11859dc6d3256d39b36f0cd5b71d426bb0d20a2e4f78ca3c40c92866c32c90053622446548d2c902
7
+ data.tar.gz: 2831188f9cfcd1a8178107ff95361fbbc948de8a98f567329a75d82a213f85e878a6f6b82ee690b610df7cd741c7237952aae05faeb3370d4e3e716e75c16a51
@@ -1,3 +1,3 @@
1
1
  module Breezy
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
@@ -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/.babelrc", Rails.root.join(".babelrc")
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/.babelrc", ".babelrc"
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.0
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