@akameco/generator-nm
Version:
Scaffold out a node module
44 lines (43 loc) • 1.09 kB
JSON
{
"name": "<%= moduleName %>",
"version": "0.0.0",
"description": "<%= moduleDescription %>",
"license": "MIT",
"repository": "akameco/<%= repoName %>",
"author": "akameco <akameco.t@gmail.com> (akameco.github.io)",
<% if (cli) { %>
"bin": "cli.js",<% } %>
"engines": {
"node": ">=6"
},
"scripts": {
"add-contributor": "all-contributors add",<% if (cov) { %>
"add:cov": "cat ./coverage/lcov.info | coveralls",<% } %>
"fmt": "prettier --write '**/*.{js,json,md}'",
"flow": "flow",
"lint": "eslint .",
"test": "jest",
"test:cov": "jest --coverage --ci --runInBand",
"test:ci": "yarn flow && yarn lint && yarn test:cov<% if (cov) { %> && npm run add:cov<% } %>"
},
"lint-staged": {
"*.{ts,js,json,md}": ["prettier --write", "git add"]
},
"files": [
"index.js"<% if (cli) { %>,
"cli.js"<% } %>
],
"keywords": [<% if (cli) { %>
"cli-app",
"cli",<% } %>
""
],
"dependencies": {<% if (cli) { %>
"meow": "^3.7.0"
<% } %>},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
}
}