Clone this repository, delete .git, run npm install
, and start writing your code in the src/
folder, where src/index.js
is your entry file.
npm run dev
npm run prestart
npm start
(Prestart is automatically run before start)
{ | |
"presets": ["es2015", "stage-0"] | |
} |
Clone this repository, delete .git, run npm install
, and start writing your code in the src/
folder, where src/index.js
is your entry file.
npm run dev
npm run prestart
npm start
(Prestart is automatically run before start)
{ | |
"name": "project-name", | |
"version": "1.0.0", | |
"description": "", | |
"main": "src/index.js", | |
"scripts": { | |
"clean": "rm -rf ./build && mkdir build", | |
"prestart": "npm run clean; babel -d ./build ./src -s", | |
"start": "ENV=production node build/index.js", | |
"dev": "ENV=dev babel-watch src/index.js" | |
}, | |
"author": "author-name", | |
"license": "ISC", | |
"devDependencies": { | |
"babel-cli": "^6.18.0", | |
"babel-core": "^6.21.0", | |
"babel-preset-es2015": "^6.18.0", | |
"babel-preset-stage-0": "^6.22.0", | |
"babel-watch": "^2.0.5" | |
}, | |
"dependencies": { | |
} | |
} |