Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
132 lines (132 loc) · 4.28 KB
/
Copy pathpackage.json
File metadata and controls
132 lines (132 loc) · 4.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
{
"name": "node-module-boilerplate",
"version": "0.0.0-development",
"description": "My template for node modules with lint, tests, code coverage, type checking, CI, semantic release and interoperability between ES6 modules and CommonJs.",
"main": "./src/index.js",
"repository": "git@github.com:MauroJr/node-module-boilerplate.git",
"author": "Mauro Junior <mauropereirajr@gmail.com>",
"license": "MIT",
"engines": {
"node": ">=8.3.0",
"npm": ">=5.2.0"
},
"dependencies": {
"config": "^2.0.1"
},
"keywords": [
"modern",
"node",
"seed",
"boilerplate",
"CI",
"tests",
"list",
"coverage",
"ES6"
],
"scripts": {
"?info": "Display information about the scripts.",
"info": "npm-scripts-info",
"?start": "Startup the module.",
"start": "if-env NODE_ENV=production && npm run start:prod || npm run start:dev",
"?start:prod": "Startup the module with a `production` environment.",
"start:prod": "NODE_ENV=production node -r dotenv/config ./lib/index.js",
"?start:dev": "Startup the module with a `development` environment.",
"start:dev": "NODE_ENV=development node -r dotenv/config ./src/index.js",
"?debug": "Start a debugger for the `main` entry point.",
"debug": "node --inspect --debug-brk -r dotenv/config ./src/index.js",
"?debug:tests": "Start a debugger for the tests",
"debug:tests": "mocha --inspect --debug-brk -r dotenv/config ./test/*.js",
"?commit": "Run a wizard to do a `git commit` and `git push` following commitizen rules.",
"commit": "git-cz && git push origin HEAD",
"?commit:retry": "Retry the last `failed` commit",
"commit:retry": "git-cz --retry && git push origin HEAD",
"?commit:all": "Add all changes to stage and run `npm run commit`",
"commit:all": "git add -A && npm run commit",
"?test": "Run all tests.",
"test": "npm run lint && nyc mocha ./test/*.js",
"?test:watch": "Run all tests and watch for changes.",
"test:watch": "mocha -r dotenv/config ./test/*.js --watch",
"?lint": "Run Eslint.",
"lint": "eslint .",
"?lint:watch": "Run Eslint, and watch for chhanges.",
"lint:watch": "esw -w --ignore-path .gitignore .",
"?cov": "Show coverage summary on the console",
"cov": "nyc report",
"?cov:ls": "Show a list of files coverage on the console",
"cov:ls": "nyc report --reporter=text",
"?cov:html": "Show a coverage HTML report",
"cov:html": "nyc report --reporter=html && http-server ./.coverage",
"?setup": "Install dependencies and run the tests.",
"setup": "npm install && npm test",
"?setup:ci": "Setup semantic-release and CI",
"setup:ci": "npx semantic-release-cli setup",
"?semantic-release": "Automatically publish the package following semantic versioning rules.",
"semantic-release": "semantic-release",
"travis-deploy-once": "travis-deploy-once"
},
"devDependencies": {
"@commitlint/cli": "^7.2.1",
"@commitlint/config-conventional": "^7.1.2",
"chai": "^4.2.0",
"commitizen": "^3.0.4",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"cz-customizable": "^5.2.0",
"dotenv": "^6.1.0",
"eslint": "^5.8.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.14.0",
"http-server": "^0.11.1",
"husky": "^1.1.3",
"if-env": "^1.0.4",
"mocha": "^5.2.0",
"npm-scripts-info": "^0.3.9",
"nyc": "^13.1.0",
"semantic-release": "^15.10.8",
"travis-deploy-once": "^5.0.9"
},
"nyc": {
"check-coverage": true,
"per-file": true,
"lines": 80,
"statements": 80,
"functions": 80,
"branches": 80,
"include": [
"src/**/*.js"
],
"exclude": [
"src/**/*.spec.js"
],
"ignore-class-method": "methodToIgnore",
"reporter": [
"html",
"lcov",
"text",
"text-summary"
],
"require": [
"dotenv/config"
],
"extension": [],
"cache": true,
"all": true,
"temp-dir": "",
"report-dir": "./.coverage"
},
"husky": {
"hooks": {
"pre-commit": "if-env IGNORE_GHOOKS=true || npm test",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
},
"cz-customizable": {
"config": "./.cz-config.js"
}
}
}