-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
executable file
·136 lines (136 loc) · 4.14 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
127
128
129
130
131
132
133
134
135
136
{
"name": "accurate",
"version": "1.5.8",
"description": "An precision calculation for JavaScript and Node.js. supports numbers, decimals, strings, arrays, matrices and expression. 解决 JavaScript 与 Node.js 精度计算(小数、浮点数计算精度)问题。支持数字、小数、字符串、数组、矩阵和表达式。",
"repository": {
"type": "git",
"url": "git+https://github.com/Ipxxiao/accurate.git"
},
"keywords": [
"accurate",
"accuracy",
"precision",
"arithmetic",
"calculation",
"floating-point",
"decimal",
"expression",
"add",
"addition",
"subtract",
"subtraction",
"mul",
"multiply",
"multiplication",
"division",
"divide",
"modulo",
"modulus",
"expr",
"精度计算",
"表达式精度计算",
"js 精度计算",
"js 小数计算",
"js 浮点数计算"
],
"homepage": "https://ipxxiao.github.io/accurate",
"author": "Jonas Hsiao <jonashsiao@icloud.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/Ipxxiao/accurate/issues"
},
"private": false,
"main": "./libs/cjs",
"files": [
"libs/*",
"types/*"
],
"browserslist": [
"last 2 versions",
"Firefox ESR",
"> 1%",
"ie >= 9",
"iOS >= 9",
"Android >= 4.3"
],
"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",
"test": "jest --coverage=true"
},
"zax": {
"innerModule": false,
"needBuild": true,
"test": true,
"docs": true,
"cleanDirs": [
"libs/**"
]
},
"types": "types/index.d.ts",
"devDependencies": {
"@babel/cli": "^7.17.3",
"@babel/core": "^7.17.3",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-transform-runtime": "^7.1.0",
"@babel/preset-env": "^7.6.3",
"@babel/preset-typescript": "^7.6.0",
"@types/jest": "^27.4.0",
"@types/node": "^12.7.12",
"chalk": "^2.4.2",
"done-rainbow": "^0.1.2",
"eslint": "^8.9.0",
"fs-extra": "^8.1.0",
"glob": "^7.1.4",
"jest": "^27.5.1",
"jsdoc-babel": "^0.5.0",
"jsdoc-to-markdown": "^7.1.1",
"npm-run-all": "^4.1.5",
"rimraf": "^3.0.0",
"ts-jest": "^27.1.3",
"tslib": "^1.10.0",
"typescript": "^3.6.4"
},
"dependencies": {
"accurate-core": "^1.0.5"
},
"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
}
}