Skip to content

Instantly share code, notes, and snippets.

@dmds1993
Last active May 11, 2016 20:49
Show Gist options
  • Select an option

  • Save dmds1993/7eea089c113202fc135c to your computer and use it in GitHub Desktop.

Select an option

Save dmds1993/7eea089c113202fc135c to your computer and use it in GitHub Desktop.
Config para primeiros passos com React
npm --version
node --version
git init
npm init
npm i -S -E babel-cli
npm i -S -E babel-cli babel-preset-es2015 babel-preset-react
index.html
npm run watch
node_modules/.bin/babel src
node_modules/.bin/babel src -o compiled.js
rm compiled.js
node_modules/.bin/babel src -w -o compiled.js -s
rm compiled.js*
rm npm-debug.log
node_modules/.bin/babel src -w -o build/compiled.js -s
mkdir build
node_modules/.bin/babel src -w -o build/compiled.js -s
npm run watch
npm install eslint-config-visto-web
npm start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment