Skip to content

Instantly share code, notes, and snippets.

@niradler
Last active December 31, 2017 14:55
Show Gist options
  • Save niradler/c06a1931ec95816c35ea730c6f70dcdb to your computer and use it in GitHub Desktop.
Save niradler/c06a1931ec95816c35ea730c6f70dcdb to your computer and use it in GitHub Desktop.
package.json for express base projects
{
"name": "company_api",
"version": "1.0.0",
"description": "company api",
"main": "index.js",
"author": "company",
"license": "ISC",
"private": true,
"scripts": {
"start": "nodemon src/index.js --exec babel-node --presets es2015,stage-2",
"build": "babel src -d dist --source-maps inline --copy-files --ignore public/apidoc && cp -a src/public dist/",
"serve": "node dist/index.js",
"test": "jest src",
"test:watch": "jest src --watch -o",
"test:exit": "jest src --forceExit",
"create_doc": "apidoc -e node_modules/ -e public/ -i src/ -o src/public/apidoc",
"prepush": "npm run test:exit"
},
"jest": {
"testEnvironment": "node"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-2": "^6.24.1",
"husky": "^0.14.3",
"jest": "^21.2.1"
},
"dependencies": {
"babel-runtime": "^6.26.0",
"body-parser": "^1.18.2",
"compression": "^1.7.1",
"cors": "^2.8.4",
"express": "^4.16.2",
"express-validation": "^1.0.2",
"joi": "^13.0.2",
"mongodb": "^2.2.33",
"request": "^2.83.0",
"request-promise": "^4.2.2",
"superagent": "^3.8.1",
"supertest": "^3.0.0",
"swagger-jsdoc": "^1.9.7",
"winston": "^2.4.0",
"winston-mongodb": "^3.0.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment