Skip to content

Instantly share code, notes, and snippets.

Created April 26, 2017 09:00
Show Gist options
  • Select an option

  • Save anonymous/dcc7a01ff7fe14e87b6968e8726b50a6 to your computer and use it in GitHub Desktop.

Select an option

Save anonymous/dcc7a01ff7fe14e87b6968e8726b50a6 to your computer and use it in GitHub Desktop.
// Command line commands
// To initialize
Type "npm init -y" in command line.
# This initializes npm and creates a package.json file, listing all the dependencies.
// To initialize React
Type "npm install -save react react-dom"
# This will initailize react and creates all the dependencies.
// To initialize Webpack
Type "npm install --save-dev webpack"
# Installs webpack and its dependecies
// To initialize Babel
1. Type "npm install --save-dev babel-core babel-loader"
2. Type "npm install --save-dev babel-preset-react babel-preset-es2016"
# Installs babel which acts a transpiler to translate jsx into es2016 javascript.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment