-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
126 lines (126 loc) · 4.48 KB
/
package.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
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
{
"name": "example-calculator",
"version": "0.7.2",
"description": "A simple calculator package developed as an exemplary, educational project using a range of libraries and external tools",
"author": "Frédérique Mittelstaedt <git@gfm.io> (www.gfm.io)",
"license": "MIT",
"main": "dist/example-calculator.js",
"types": "dist/example-calculator.d.ts",
"browser": "dist/example-calculator.js",
"module": "dist/example-calculator.mjs",
"umd:main": "dist/example-calculator.umd.js",
"private": true,
"keywords": [
"typescript",
"test",
"testing",
"mocha",
"chai",
"travis",
"ci",
"codecov",
"code climate",
"snyk",
"example",
"code",
"coverage",
"ts-pkg"
],
"repository": {
"type": "git",
"url": "git+https://github.com/gfmio/example-calculator.git"
},
"bugs": {
"url": "https://github.com/gfmio/example-calculator/issues"
},
"homepage": "https://github.com/gfmio/example-calculator#readme",
"scripts": {
"prebuild": "run-p clean:dist clean:test clean:docs",
"build": "run-p build:bundle build:compile:cjs build:compile:es build:compile:dts build:copy build:package-json",
"build:bundle": "ts-pkg bundle --cjs --es --dts --min",
"build:compile:cjs": "ts-pkg compile --cjs -o dist/lib",
"build:compile:es": "ts-pkg compile --es -e .mjs -o dist/lib",
"build:compile:dts": "ts-pkg compile --dts -o dist/lib",
"build:copy": "mkdir -p dist && cp README.md LICENSE dist",
"build:package-json": "ts-pkg create-package-json --public",
"pretest": "yarn clean:test",
"test:unit": "cross-env NODE_ENV=test TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\", \"target\":\"es6\", \"removeComments\": false}' mocha",
"test:coverage": "cross-env NODE_ENV=test TS_NODE_COMPILER_OPTIONS='{\"module\":\"commonjs\", \"target\":\"es6\", \"removeComments\": false}' nyc mocha",
"test": "yarn test:coverage",
"posttest": "run-s posttest:print posttest:lcov posttest:json",
"posttest:print": "nyc report",
"posttest:lcov": "nyc report --reporter=lcov",
"posttest:json": "nyc report --reporter=json",
"lint": "eslint './**/*.?(js|jsx|ts|tsx)'",
"lint:fix": "eslint './**/*.?(js|jsx|ts|tsx)' --fix",
"docs": "typedoc",
"clean:dist": "rimraf ./dist ./.rpt2_cache",
"clean:node_modules": "rimraf ./node_modules",
"clean:test": "rimraf ./.nyc_output ./coverage",
"clean:docs": "rimraf ./docs",
"clean:all": "run-p clean:lib clean:node_modules clean:test clean:docs",
"commit": "git-cz",
"semantic-release": "semantic-release",
"gh-pages": "touch docs/.nojekyll && gh-pages -t -d ./docs"
},
"devDependencies": {
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@semantic-release/changelog": "^5.0.1",
"@semantic-release/exec": "^5.0.0",
"@semantic-release/git": "^9.0.0",
"@types/chai": "^4.2.11",
"@types/mocha": "^7.0.2",
"@types/prettier": "^2.0.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"@typescript-eslint/parser": "^2.30.0",
"chai": "^4.2.0",
"codecov": "^3.6.5",
"commitizen": "^4.0.4",
"cross-env": "^7.0.2",
"cz-conventional-changelog": "^3.1.0",
"eslint": "^6.8.0",
"eslint-config-airbnb-typescript": "^7.2.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-eslint-comments": "^3.1.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-jsx-a11y": "^6.2.3",
"eslint-plugin-mocha": "^6.3.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"eslint-plugin-sort-imports-es6-autofix": "^0.5.0",
"eslint-plugin-unicorn": "^19.0.1",
"gh-pages": "^2.2.0",
"husky": "^4.2.5",
"mocha": "^7.1.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.0.1",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"rimraf": "^3.0.2",
"semantic-release": "^17.0.7",
"source-map-support": "^0.5.19",
"ts-node": "^8.9.1",
"ts-pkg-scripts": "^0.2.1",
"tslib": "^1.11.1",
"typedoc": "^0.17.6",
"typescript": "^3.8.3"
},
"dependencies": {},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"prepare-commit-msg": "exec < /dev/tty && git cz --hook || true"
}
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
}