add basic babel setup

This commit is contained in:
Jakub Sokołowski 2018-10-16 13:22:22 -04:00
parent b316ac26c8
commit 11cdf44480
3 changed files with 13 additions and 2 deletions

3
.babelrc Normal file
View File

@ -0,0 +1,3 @@
{
"presets": ["env", "stage-2"]
}

View File

@ -7,8 +7,15 @@
"ioredis": "^4.1.0", "ioredis": "^4.1.0",
"koa": "^2.5.3" "koa": "^2.5.3"
}, },
"devDependencies": {}, "devDependencies": {
"scripts": {}, "babel-cli": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-2": "^6.24.1",
"nodemon": "^1.18.4"
},
"scripts": {
"start": "nodemon --exec babel-node --presets env,stage-2 src/index.js"
},
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "ISC" "license": "ISC"

1
src/index.js Normal file
View File

@ -0,0 +1 @@
console.log('Hello Node.js project.')