add babel build step

This commit is contained in:
Jakub Sokołowski 2018-10-16 14:06:10 -04:00
parent 2a65270400
commit 283a74f657
2 changed files with 3 additions and 2 deletions

2
.gitignore vendored
View File

@ -1,3 +1,3 @@
node_modules/
out/*
package-lock.json

View File

@ -16,7 +16,8 @@
"nodemon": "^1.18.4"
},
"scripts": {
"start": "nodemon --exec babel-node --presets env,stage-2 src/index.js"
"start": "nodemon --exec babel-node --presets env,stage-2 src/index.js",
"build": "node_modules/.bin/babel src/index.js -o out/counter.js"
},
"keywords": [],
"author": "",