-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
120 lines (120 loc) · 3.65 KB
/
package.json
File metadata and controls
120 lines (120 loc) · 3.65 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
{
"name": "chinese-alphabetize",
"version": "1.0.5",
"description": "To get chinese pinyin or alphabet from chinese. 从汉字提取拼音,返回首字母大写形式;提取首字母,返回大写形式。",
"main": "./libs/cjs",
"repository": {
"type": "git",
"url": "https://github.com/Ipxxiao/alphabetize.git"
},
"keywords": [
"alphabetize",
"chinese",
"pinyin",
"letter",
"alphabet",
"中文",
"汉字",
"拼音",
"字母"
],
"author": "Jonas Hsiao <jonashsiao@icloud.com>",
"license": "MIT",
"homepage": "https://ipxxiao.github.io/alphabetize",
"directories": {
"test": "test",
"lib": "libs",
"doc": "docs"
},
"typings": "./libs/umd/index.d.ts",
"scripts": {
"lint": "eslint --ext .ts src/",
"lint:fix": "eslint --fix --ext .ts src/",
"build:cjs": "rimraf './libs/cjs' && tsc -t 'ES5' -m 'CommonJS' --outDir './libs/cjs' ",
"build:es": "rimraf './libs/es' && tsc -t 'ES6' -m 'ESNext' --outDir './libs/es' ",
"build:umd": "rimraf './libs/umd' && tsc -t 'ES5' -m 'UMD' --outDir './libs/umd' ",
"doc:index": "rimraf './docs/*.md' && jsdoc2md --files ./src/index.ts --no-cache --configure ./jsdoc2md.json > ./docs/README.md",
"docs": "npm-run-all -p doc:**",
"build": "npm-run-all -p build:**",
"server": "NODE_ENV=production GATEWAY=outer node ./server/index.ts",
"clean": "node ./build/scripts/clean/index.ts",
"release": "node ./build/scripts/release/index.ts $RELEASE_LOG",
"report": "codecov -t $CODECOV_TOKEN",
"test": "jest --coverage=true"
},
"zax": {
"innerModule": false,
"needBuild": true,
"test": true,
"docs": true,
"cleanDirs": [
"libs/**"
]
},
"files": [
"libs/*",
"types/*"
],
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%",
"ie >= 9",
"iOS >= 9",
"Android >= 4.3"
],
"private": false,
"types": "types/index.d.ts",
"devDependencies": {
"@babel/cli": "latest",
"@babel/core": "latest",
"@babel/plugin-proposal-class-properties": "latest",
"@babel/plugin-proposal-object-rest-spread": "latest",
"@babel/plugin-transform-runtime": "latest",
"@babel/preset-env": "latest",
"@babel/preset-typescript": "latest",
"@types/jest": "latest",
"@types/node": "^12.7.12",
"chalk": "^2.4.2",
"codecov": "latest",
"done-rainbow": "^0.1.2",
"fs-extra": "^8.1.0",
"glob": "^7.1.4",
"jest": "latest",
"jsdoc-babel": "^0.5.0",
"jsdoc-to-markdown": "latest",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.0",
"ts-jest": "latest",
"tslib": "^1.10.0",
"typescript": "^3.6.4"
},
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"coveragePathIgnorePatterns": [
"/node_modules/",
"/coverage/",
"/build/",
"/types/",
"/test/",
"/libs/"
],
"coverageThreshold": {
"global": {
"statements": 95,
"branches": 75,
"functions": 95,
"lines": 95
}
},
"collectCoverage": true
}
}