Skip to content

Instantly share code, notes, and snippets.

@vutran
Last active March 29, 2016 17:24
Show Gist options
  • Save vutran/9603b74ade07233477cf to your computer and use it in GitHub Desktop.
Save vutran/9603b74ade07233477cf to your computer and use it in GitHub Desktop.
installs babel core, cli, presets, and loaders
{
"presets": ["es2015", "stage-0"]
}
{
"extends": "airbnb",
"parser": "babel-eslint"
}

Install package

# install babel react preset
npm install --save-dev babel-preset-react

.babelrc

{
  "presets": ["react", "es2015", "stage-0"]
}
#!/bin/bash
# install babel core, cli, loaders, and presets
npm install --save-dev babel-core babel-cli babel-loader babel-preset-es2015 babel-preset-stage-0
# install linters
npm install --save-dev eslint eslint-config-airbnb babel-eslint
# install webpack and dev server
npm install --save-dev webpack webpack-dev-server
# install other utils
npm install --save-dev rimraf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment