[es6 express with babel] sets up env with async support etc #babel #express
{
"name": "es6-starter",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"babel-node": "babel-node --presets=env",
"start": "clear && nodemon --exec npm run babel-node ./src/index.js --inspect",
"build": "rm -rf dist/ && npm run build:src",
"build:src": "babel src/ --out-dir=dist --source-maps",
"watch": "npm run build:src --watch"
},
"author": "",
"license": "ISC",
"dependencies": {
"apollo-engine": "^1.1.2",
"apollo-errors": "^1.9.0",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.0",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"chalk": "^2.4.1",
"date-fns": "^1.30.1",
"dotenv": "^6.2.0",
"graphql-yoga": "^1.16.9",
"md5": "^2.2.1",
"mongoose": "^5.4.0",
"nodemon": "^1.17.2",
"shortid": "^2.2.14"
},
"babel": {
"presets": [
"env"
],
"plugins": [
"transform-runtime",
"transform-object-rest-spread",
"graphql-tag"
],
"sourceMaps": true,
"retainLines": true
},
"devDependencies": {
"babel-plugin-graphql-tag": "^1.6.0",
"babel-plugin-import-graphql": "^2.6.2"
}
}