-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.template.json
83 lines (83 loc) · 2.3 KB
/
package.template.json
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
{
"name": "project-name",
"version": "1.0.0",
"description": "",
"keywords": [
"commercetools",
"nodejs"
],
"homepage": "https://github.com/commercetools/project-name#readme",
"bugs": "https://github.com/commercetools/project-name/issues",
"license": "MIT",
"author": "",
"main": "",
"repository": {
"type": "git",
"url": "https://github.com/commercetools/project-name.git"
},
"scripts": {
"start": "npm run test:watch",
"test": "cross-env NODE_ENV=test NODE_PATH=./src babel-node node_modules/.bin/tape test/*.spec.js test/**/*.spec.js | tap-spec",
"test:watch": "chokidar src test optional-directory -c 'npm test'",
"build": "npm run clean && babel src -d lib",
"clean": "rimraf lib/*",
"commit": "git-cz",
"codecov": "cat ./coverage/lcov.info | codecov",
"coverage": "npm run lint && npm run clean && cross-env NODE_ENV=test nyc --reporter=lcov --reporter=text npm test",
"coverage:html": "npm run lint && cross-env NODE_ENV=test nyc --reporter=html npm test",
"lint": "./scripts/lint src test"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
},
"ghooks": {
"commit-msg": "validate-commit-msg",
"pre-commit": "./scripts/lint-staged-files && npm test"
}
},
"eslintConfig": {
"extends": "commercetools",
"settings": {
"import/resolver": {
"node": {
"paths": ["src/"]
}
}
}
},
"devDependencies": {
"babel-cli": "^6.14.0",
"babel-eslint": "^6.1.2",
"babel-plugin-istanbul": "^2.0.1",
"babel-preset-es2015": "^6.14.0",
"chokidar-cli": "^1.2.0",
"codecov": "^1.0.1",
"commitizen": "^2.8.6",
"cross-env": "^2.0.1",
"cz-conventional-changelog": "^1.2.0",
"eslint": "^3.6.0",
"eslint-config-airbnb": "^12.0.0",
"eslint-config-commercetools": "^4.0.0",
"eslint-formatter-pretty": "^1.0.0",
"eslint-plugin-import": "^1.16.0",
"eslint-plugin-jsx-a11y": "^2.2.2",
"eslint-plugin-react": "^6.3.0",
"ghooks": "^1.3.2",
"nyc": "^8.1.0",
"rimraf": "^2.5.4",
"tap-spec": "^4.1.1",
"tape": "^4.6.0",
"validate-commit-msg": "^2.8.0"
},
"engines": {
"node": ">= 6.0.0"
},
"nyc": {
"include": [
"src/*.js"
],
"sourceMap": false,
"instrument": false
}
}