Install yarn - npm install -g yarn
Install live server for run react application
- using npm
npm install -g live-server
- using yarn
yarn global add live-server
- npm init or yarn init
Babel is a compiler but not compile anything in default
Brief description here - http://babeljs.io/docs/usage/cli/
Install babel CLI
- npm install -g babel-cli or npm install -g [email protected] (Specific version)
Install babel environment and react (dependencies)
- npm install babel-preset-react babel-preset-env
- npm install [email protected] [email protected] (Specific version)
Babel run:
- babel src/app.js --out-file=public/scripts/app.js --presets=env,react
- babel src/app.js --out-file=public/scripts/app.js --watch (Detect change every time)
-
npm install --save redux
- npm run dev-server