Skip to content

Instantly share code, notes, and snippets.

@iampeterbanjo
Created April 13, 2018 16:27
Show Gist options
  • Save iampeterbanjo/a494330866d22b9a0e1caf22583a01ea to your computer and use it in GitHub Desktop.
Save iampeterbanjo/a494330866d22b9a0e1caf22583a01ea to your computer and use it in GitHub Desktop.
Node API boilerplate
{
"name": "node-api",
"version": "0.0.1",
"description": "Node API",
"keywords": ["Node.js", "API"],
"dependencies": {
"axios": "^0.16.2",
"cors": "^2.8.4",
"dotenv": "^4.0.0",
"express": "^4.15.3",
"express-jwt": "^5.3.0",
"express-jwt-authz": "^1.0.0",
"fluffy-server": "2.1.x",
"jwks-rsa": "^1.2.1",
"jwt-decode": "^2.2.0",
"lodash": "^4.17.4",
"mongoose": "^5.0.3",
"winston": "^2.3.1"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-eslint": "^7.2.3",
"babel-jest": "^22.4.0",
"babel-loader": "^7.1.4",
"babel-plugin-transform-async-to-generator": "^6.24.1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-flow": "^6.23.0",
"babel-preset-react": "^6.24.1",
"babel-watch": "^2.0.7",
"body-parser": "^1.17.2",
"chokidar-cli": "^1.2.0",
"flow-bin": "^0.53.1",
"jest": "^22.4.3",
"nodemon": "^1.17.3",
"prettier-eslint": "^8.2.1",
"supertest": "^3.0.0"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"lib/*.{js,jsx}",
"lib/**/*.{js,jsx}",
"!**/node_modules/**",
"!**/vendor/**"
],
"notify": true,
"projects": ["<rootDir>"],
"watchPathIgnorePatterns": ["<rootDir>/node_modules/", "<rootDir>/build/"],
"testPathIgnorePatterns": ["<rootDir>/build/", "<rootDir>/node_modules/"]
},
"scripts": {
"build": "babel ./src --out-dir=./build --source-maps inline --copy-files",
"clean": "rm -rf node_modules/",
"watch:src": "nodemon --watch src --exec yarn start-babel",
"flow": "flow",
"start-babel": "yarn build && babel-node ./build/server.js",
"start": "node build/server.js",
"stage": "bash ../scripts/merge2staging.sh ",
"release": "bash ../scripts/merge2master.sh ",
"test:watch": "nodemon --watch test --watch src --exec yarn test",
"test": "NODE_ENV=test jest --silent test/*.test.js"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment