Last active
June 5, 2016 05:51
-
-
Save bsed/8229111d4ac92284b548ed7ccf1506b8 to your computer and use it in GitHub Desktop.
This file contains 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
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 |
babel-polyfill emulates full ES6 environment (includes core.js)
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.
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!)
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)
npm install webpack babel-loader react react-dom --save
npm install express --save
npm install concurrently --save-dev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
babel-register allows you to use babel in nodejs