generator-agmdev-barebone
Version:
Yeoman generator for barebone NodeJS project
37 lines (36 loc) • 835 B
JSON
{
"name": "<%= projectName %>",
"version": "1.0.0",
"description": "<%= projectDescription %>",
"main": "index.js",
"engines": {
"node": ">= 10.0.0"
},
"scripts": {
"start": "nodemon index.js",
"prod": "node index.js",
"develop": "jest --watch src",
"test": "jest",
"test:coverage": "jest --coverage && cat ./coverage/lcov.info | codacy-coverage",
"lint": "eslint .",
"lint:fix": "eslint . --fix"
},
"author": "<%= author %>",
"license": "<%= license %>",
"homepage": "https://github.com/<%= githubUsername %>/<%= projectName %>",
"lint-staged": {
"*.js": [
"npm run --silent lint:fix",
"git add"
],
"*.json": [
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run test && lint-staged"
}
}
}