Last active
June 13, 2016 00:45
-
-
Save kimsk/474f1f8d2befb72379e1346853ad6b1a 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 | |
npm init --force | |
npm install babel-loader babel-core babel-preset-es2015 babel-preset-react babel-preset-stage-0 webpack --save-dev | |
npm install react react-dom --save | |
npm install babel-cli nodemon --save-dev | |
echo "module.exports = { | |
entry: './js/app.js', | |
output: { | |
path: __dirname + '/public', | |
filename: 'bundle.js' | |
}, | |
module:{ | |
loaders: [ | |
{ | |
test: /\.js$/, | |
loader: 'babel', | |
exclude: /node_modules/, | |
query: { | |
presets: ['react', 'es2015', 'stage-0'] | |
} | |
} | |
] | |
} | |
};" > webpack.config.js | |
mkdir js | |
touch ./js/app.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment