Last active
August 7, 2016 03:54
-
-
Save madeinfree/370811206efa9fb0465cbac7eef88bbf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Your babelrc configuration | |
BABEL='{"parsets": ["react", "es2015", "stage-0"]}' | |
# Your github remote url | |
GIT_REMOTE='Your git url' | |
npm install --save-dev react react-dom babel babel-core babel-loader babel-plugin-transform-decorators-legacy babel-preset-es2015 babel-preset-react babel-preset-stage-0 webpack webpack-dev-server | |
# .babelrc file | |
echo ${BABEL} >> .babelrc | |
# webpack file, but how to create shell script template file ??? | |
touch webpack.config.js | |
# if you doesn't ready to use git, you may # it. | |
git init | |
git add README.md | |
git commit -m "first commit" | |
git remote add ${GIT_REMOTE} | |
git push -u origin master | |
################################################ | |
mkdir ./src && cd ./src && touch index.js && cd .. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment