Skip to content

Instantly share code, notes, and snippets.

@bsed
Last active June 5, 2016 05:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bsed/8229111d4ac92284b548ed7ccf1506b8 to your computer and use it in GitHub Desktop.
Save bsed/8229111d4ac92284b548ed7ccf1506b8 to your computer and use it in GitHub Desktop.
npm install babel-plugin-transform-class-properties babel-plugin-transform-runtime \
babel-polyfill babel-preset-es2015 babel-preset-react babel-preset-stage-0 \
babel-register --save
@bsed
Copy link
Author

bsed commented Jun 5, 2016

babel-register allows you to use babel in nodejs

@bsed
Copy link
Author

bsed commented Jun 5, 2016

babel-polyfill emulates full ES6 environment (includes core.js)

@bsed
Copy link
Author

bsed commented Jun 5, 2016

babel-preset-es2015, babel-preset-stage-0, babel-preset-react are presets to enable most of the ES6 features as well as some needed for react, and jsx.

@bsed
Copy link
Author

bsed commented Jun 5, 2016

babel-plugin-transform-runtime allows using async/await operators (I’ll explain what are they for and how to use them later — we’ll use them a lot!)

@bsed
Copy link
Author

bsed commented Jun 5, 2016

babel-plugin-transform-class-properties is for using static variables inside ES6 classes (it’s not a very common practice, but I find this syntax a little bit more natural for people to understand, I’ll explain this later)

@bsed
Copy link
Author

bsed commented Jun 5, 2016

npm install webpack babel-loader react react-dom --save

@bsed
Copy link
Author

bsed commented Jun 5, 2016

npm install express --save

@bsed
Copy link
Author

bsed commented Jun 5, 2016

npm install concurrently --save-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment