Skip to content

Commit cae5997

Browse files
authored
Merge pull request #2 from f0rr0/babel-preset
Babel preset
2 parents f27ab07 + 9ef982d commit cae5997

File tree

3 files changed

+41
-70
lines changed

3 files changed

+41
-70
lines changed

.babelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"presets": ["react-native-stage-0/decorator-support"]
2+
"presets": ["react-native"]
33
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-rating",
3-
"version": "2.0.0",
3+
"version": "2.0.1",
44
"description": "A stars rating component for react-native built with the Animated API",
55
"main": "./src/rating.js",
66
"scripts": {
@@ -37,7 +37,7 @@
3737
"devDependencies": {
3838
"babel-eslint": "^7.2.3",
3939
"babel-jest": "^20.0.3",
40-
"babel-preset-react-native-stage-0": "^1.0.1",
40+
"babel-preset-react-native": "^2.1.0",
4141
"commitizen": "^2.9.6",
4242
"cz-conventional-changelog": "^2.0.0",
4343
"eslint": "^3.19.0",

yarn.lock

Lines changed: 38 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,10 @@ ansi-escapes@^1.0.0, ansi-escapes@^1.1.0, ansi-escapes@^1.4.0:
6161
version "1.4.0"
6262
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e"
6363

64-
ansi-regex@^0.2.0, ansi-regex@^0.2.1:
65-
version "0.2.1"
66-
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-0.2.1.tgz#0d8e946967a3d8143f93e24e298525fc1b2235f9"
67-
6864
ansi-regex@^2.0.0, ansi-regex@^2.1.1:
6965
version "2.1.1"
7066
resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df"
7167

72-
ansi-styles@^1.1.0:
73-
version "1.1.0"
74-
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.1.0.tgz#eaecbf66cd706882760b2f4691582b8f55d7a7de"
75-
7668
ansi-styles@^2.2.1:
7769
version "2.2.1"
7870
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe"
@@ -693,6 +685,40 @@ babel-preset-react-native@^1.5.6:
693685
babel-plugin-transform-regenerator "^6.5.0"
694686
react-transform-hmr "^1.0.4"
695687

688+
babel-preset-react-native@^2.1.0:
689+
version "2.1.0"
690+
resolved "https://registry.yarnpkg.com/babel-preset-react-native/-/babel-preset-react-native-2.1.0.tgz#9013ebd82da1c88102bf588810ff59e209ca2b8a"
691+
dependencies:
692+
babel-plugin-check-es2015-constants "^6.5.0"
693+
babel-plugin-react-transform "2.0.2"
694+
babel-plugin-syntax-async-functions "^6.5.0"
695+
babel-plugin-syntax-class-properties "^6.5.0"
696+
babel-plugin-syntax-flow "^6.5.0"
697+
babel-plugin-syntax-jsx "^6.5.0"
698+
babel-plugin-syntax-trailing-function-commas "^6.5.0"
699+
babel-plugin-transform-class-properties "^6.5.0"
700+
babel-plugin-transform-es2015-arrow-functions "^6.5.0"
701+
babel-plugin-transform-es2015-block-scoping "^6.5.0"
702+
babel-plugin-transform-es2015-classes "^6.5.0"
703+
babel-plugin-transform-es2015-computed-properties "^6.5.0"
704+
babel-plugin-transform-es2015-destructuring "^6.5.0"
705+
babel-plugin-transform-es2015-for-of "^6.5.0"
706+
babel-plugin-transform-es2015-function-name "^6.5.0"
707+
babel-plugin-transform-es2015-literals "^6.5.0"
708+
babel-plugin-transform-es2015-modules-commonjs "^6.5.0"
709+
babel-plugin-transform-es2015-parameters "^6.5.0"
710+
babel-plugin-transform-es2015-shorthand-properties "^6.5.0"
711+
babel-plugin-transform-es2015-spread "^6.5.0"
712+
babel-plugin-transform-es2015-template-literals "^6.5.0"
713+
babel-plugin-transform-flow-strip-types "^6.5.0"
714+
babel-plugin-transform-object-assign "^6.5.0"
715+
babel-plugin-transform-object-rest-spread "^6.5.0"
716+
babel-plugin-transform-react-display-name "^6.5.0"
717+
babel-plugin-transform-react-jsx "^6.5.0"
718+
babel-plugin-transform-react-jsx-source "^6.5.0"
719+
babel-plugin-transform-regenerator "^6.5.0"
720+
react-transform-hmr "^1.0.4"
721+
696722
babel-register@^6.24.1:
697723
version "6.24.1"
698724
resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.1.tgz#7e10e13a2f71065bdfad5a1787ba45bca6ded75f"
@@ -857,16 +883,6 @@ center-align@^0.1.1:
857883
align-text "^0.1.3"
858884
lazy-cache "^1.0.3"
859885

860-
861-
version "0.5.1"
862-
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.5.1.tgz#663b3a648b68b55d04690d49167aa837858f2174"
863-
dependencies:
864-
ansi-styles "^1.1.0"
865-
escape-string-regexp "^1.0.0"
866-
has-ansi "^0.1.0"
867-
strip-ansi "^0.3.0"
868-
supports-color "^0.2.0"
869-
870886
[email protected], chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3:
871887
version "1.1.3"
872888
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
@@ -946,10 +962,6 @@ combined-stream@^1.0.5, combined-stream@~1.0.5:
946962
dependencies:
947963
delayed-stream "~1.0.0"
948964

949-
950-
version "2.6.0"
951-
resolved "https://registry.yarnpkg.com/commander/-/commander-2.6.0.tgz#9df7e52fb2a0cb0fb89058ee80c3104225f37e1d"
952-
953965
commander@^2.9.0:
954966
version "2.9.0"
955967
resolved "https://registry.yarnpkg.com/commander/-/commander-2.9.0.tgz#9c99094176e12240cb22d6c5146098400fe0f7d4"
@@ -994,19 +1006,6 @@ concat-stream@^1.4.7, concat-stream@^1.5.2:
9941006
readable-stream "^2.2.2"
9951007
typedarray "^0.0.6"
9961008

997-
concurrently@^3.4.0:
998-
version "3.4.0"
999-
resolved "https://registry.yarnpkg.com/concurrently/-/concurrently-3.4.0.tgz#60662b3defde07375bae19aac0ab780ec748ba79"
1000-
dependencies:
1001-
chalk "0.5.1"
1002-
commander "2.6.0"
1003-
date-fns "^1.23.0"
1004-
lodash "^4.5.1"
1005-
rx "2.3.24"
1006-
spawn-command "^0.0.2-1"
1007-
supports-color "^3.2.3"
1008-
tree-kill "^1.1.0"
1009-
10101009
contains-path@^0.1.0:
10111010
version "0.1.0"
10121011
resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a"
@@ -1110,7 +1109,7 @@ dashdash@^1.12.0:
11101109
dependencies:
11111110
assert-plus "^1.0.0"
11121111

1113-
date-fns@^1.23.0, date-fns@^1.27.2:
1112+
date-fns@^1.27.2:
11141113
version "1.28.5"
11151114
resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-1.28.5.tgz#257cfc45d322df45ef5658665967ee841cd73faf"
11161115

@@ -1306,7 +1305,7 @@ es6-weak-map@^2.0.1:
13061305
es6-iterator "^2.0.1"
13071306
es6-symbol "^3.1.1"
13081307

1309-
escape-string-regexp@^1.0.0, escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
1308+
escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5:
13101309
version "1.0.5"
13111310
resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4"
13121311

@@ -1836,12 +1835,6 @@ har-validator@~4.2.1:
18361835
ajv "^4.9.1"
18371836
har-schema "^1.0.5"
18381837

1839-
has-ansi@^0.1.0:
1840-
version "0.1.0"
1841-
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-0.1.0.tgz#84f265aae8c0e6a88a12d7022894b7568894c62e"
1842-
dependencies:
1843-
ansi-regex "^0.2.0"
1844-
18451838
has-ansi@^2.0.0:
18461839
version "2.0.0"
18471840
resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91"
@@ -2679,7 +2672,7 @@ lodash.merge@^4.6.0:
26792672
version "4.6.0"
26802673
resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.0.tgz#69884ba144ac33fe699737a6086deffadd0f89c5"
26812674

2682-
[email protected], lodash@^4.0.0, lodash@^4.14.0, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.5.1, lodash@^4.6.1:
2675+
[email protected], lodash@^4.0.0, lodash@^4.14.0, lodash@^4.2.0, lodash@^4.3.0, lodash@^4.6.1:
26832676
version "4.17.2"
26842677
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.2.tgz#34a3055babe04ce42467b607d700072c7ff6bf42"
26852678

@@ -3437,10 +3430,6 @@ rx-lite@^3.1.2:
34373430
version "3.1.2"
34383431
resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102"
34393432

3440-
3441-
version "2.3.24"
3442-
resolved "https://registry.yarnpkg.com/rx/-/rx-2.3.24.tgz#14f950a4217d7e35daa71bbcbe58eff68ea4b2b7"
3443-
34443433
rx@^4.1.0:
34453434
version "4.1.0"
34463435
resolved "https://registry.yarnpkg.com/rx/-/rx-4.1.0.tgz#a5f13ff79ef3b740fe30aa803fb09f98805d4782"
@@ -3545,10 +3534,6 @@ source-map@~0.2.0:
35453534
dependencies:
35463535
amdefine ">=0.0.4"
35473536

3548-
spawn-command@^0.0.2-1:
3549-
version "0.0.2"
3550-
resolved "https://registry.yarnpkg.com/spawn-command/-/spawn-command-0.0.2.tgz#9544e1a43ca045f8531aac1a48cb29bdae62338e"
3551-
35523537
spawn-sync@^1.0.15:
35533538
version "1.0.15"
35543539
resolved "https://registry.yarnpkg.com/spawn-sync/-/spawn-sync-1.0.15.tgz#b00799557eb7fb0c8376c29d44e8a1ea67e57476"
@@ -3628,12 +3613,6 @@ stringstream@~0.0.4:
36283613
version "0.0.5"
36293614
resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878"
36303615

3631-
strip-ansi@^0.3.0:
3632-
version "0.3.0"
3633-
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.3.0.tgz#25f48ea22ca79187f3174a4db8759347bb126220"
3634-
dependencies:
3635-
ansi-regex "^0.2.1"
3636-
36373616
strip-ansi@^3.0.0, strip-ansi@^3.0.1:
36383617
version "3.0.1"
36393618
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
@@ -3658,15 +3637,11 @@ [email protected], strip-json-comments@~2.0.1:
36583637
version "2.0.1"
36593638
resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a"
36603639

3661-
supports-color@^0.2.0:
3662-
version "0.2.0"
3663-
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-0.2.0.tgz#d92de2694eb3f67323973d7ae3d8b55b4c22190a"
3664-
36653640
supports-color@^2.0.0:
36663641
version "2.0.0"
36673642
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7"
36683643

3669-
supports-color@^3.1.2, supports-color@^3.2.3:
3644+
supports-color@^3.1.2:
36703645
version "3.2.3"
36713646
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6"
36723647
dependencies:
@@ -3737,10 +3712,6 @@ tr46@~0.0.3:
37373712
version "0.0.3"
37383713
resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a"
37393714

3740-
tree-kill@^1.1.0:
3741-
version "1.1.0"
3742-
resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.1.0.tgz#c963dcf03722892ec59cba569e940b71954d1729"
3743-
37443715
trim-right@^1.0.1:
37453716
version "1.0.1"
37463717
resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003"

0 commit comments

Comments
 (0)