npm init
: create a package.json filenpm install
: download dependencies based on package.json file
Command | Command |
---|---|
"start": | "live-server" |
"build": | "babel . --out-dir compiled --watch --presets=es2015,react --ignore=node_modules,compiled --source-maps inline" |
Command | Command |
---|---|
"start": | "live-server --open=src --port=3000 --host=127.0.0.1" |