Skip to content

Commit 80879a6

Browse files
add scripts to install babel6 and babel7 dependencies
1 parent 2c5cdc6 commit 80879a6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

install-babel-6.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/usr/bin/env bash
2+
3+
# fail on error
4+
set -e
5+
6+
# remove babel core
7+
yarn remove @babel/core
8+
9+
# install babel6
10+
yarn add -D babel-cli@^6.26.0 babel-core@^6.26.0 babel-plugin-transform-object-rest-spread@^6.26.0 babel-preset-env@^1.6.1 babel-register@^6.26.0

install-babel-7.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env bash
2+
3+
# fail on error
4+
set -e
5+
6+
# install babel7 deps
7+
yarn add -D babel-cli@^7.0.0-beta.3 babel-core@^7.0.0-beta.3 babel-register@^7.0.0-beta.3 babel-preset-env@^7.0.0-beta.3 @babel/core babel-plugin-transform-object-rest-spread@^7.0.0-beta.3 gulp-babel@7.0.0

0 commit comments

Comments
 (0)