-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
149 lines (149 loc) · 4.01 KB
/
package.json
File metadata and controls
149 lines (149 loc) · 4.01 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
{
"name": "word-counting",
"version": "0.0.0-development",
"description": "A very powerful words counter that supports plain text and html.",
"keywords": [
"count",
"html",
"occurrence",
"text",
"words"
],
"repository": {
"type": "git",
"url": "https://github.com/nerdmax/word-counting.git"
},
"license": "MIT",
"author": "Max <mrliucan@foxmail.com>",
"files": [
"dist"
],
"main": "dist/word-counting.umd.js",
"module": "dist/word-counting.es5.js",
"typings": "dist/types/word-counting.d.ts",
"scripts": {
"prebuild": "rimraf dist docs",
"build": "tsc --module commonjs && rollup -c rollup.config.ts",
"build:doc": "typedoc --out docs --target es6 --theme minimal --mode file src",
"check-ci": "yarn check-lint && yarn test:prod && yarn check-build",
"check-lint": "yarn format:ci && yarn type-check && yarn lint",
"check-build": "yarn build && yarn build:doc",
"commit": "git-cz",
"contributors:add": "all-contributors add",
"contributors:check": "all-contributors check",
"contributors:generate": "all-contributors generate",
"deploy-docs": "gh-pages -d docs",
"format": "yarn prettier --write",
"format:ci": "yarn prettier --list-different",
"lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
"prepublishOnly": "npm run test && npm run build",
"semantic-release": "semantic-release",
"start": "rollup -c rollup.config.ts -w",
"test": "jest",
"test:prod": "yarn run test",
"test:watch": "jest --watch",
"travis-deploy-once": "travis-deploy-once",
"prettier": "prettier '**/*.{js,ts,tsx,css,json}'",
"type-check": "tsc --noEmit"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"prettier": {
"semi": false,
"singleQuote": true
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"src/*.{js,ts}"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/test/"
],
"coverageThreshold": {
"global": {
"branches": 90,
"functions": 90,
"lines": 90,
"statements": 90
}
},
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"testEnvironment": "node",
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"transform": {
".(ts|tsx)": "ts-jest"
}
},
"dependencies": {
"html-to-text": "^8.1.0",
"word-regex": "^0.1.2"
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
"@types/html-to-text": "^1.4.31",
"@types/jest": "^24.0.0",
"@types/node": "^12.7.2",
"all-contributors-cli": "^6.20.0",
"codecov": "^3.1.0",
"colors": "^1.3.2",
"commitizen": "^3.0.7",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"gh-pages": "^3.2.3",
"husky": "^3.0.2",
"jest": "^24.9.0",
"jest-config": "^24.9.0",
"lint-staged": "^9.2.1",
"lodash.camelcase": "^4.3.0",
"prettier": "^1.14.3",
"prompt": "^1.0.0",
"rollup": "^1.12.3",
"rollup-plugin-analyzer": "^3.2.2",
"rollup-plugin-commonjs": "^10.0.0",
"rollup-plugin-json": "^4.0.0",
"rollup-plugin-node-resolve": "^5.0.3",
"rollup-plugin-sourcemaps": "^0.4.2",
"rollup-plugin-typescript2": "^0.23.0",
"semantic-release": "^19.0.2",
"travis-deploy-once": "^5.0.11",
"ts-jest": "^24.0.0",
"ts-node": "^8.0.2",
"tslint": "^5.11.0",
"tslint-config-prettier": "^1.15.0",
"tslint-config-standard": "^8.0.1",
"typedoc": "^0.15.0",
"typescript": "^3.0.3"
},
"peerDependencies": {},
"engines": {
"node": ">=6.0.0"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"{src,test}/**/*.ts": [
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
}
}