forked from nevware21/ts-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
253 lines (253 loc) · 7.94 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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
{
"name": "@nevware21/ts-utils",
"description": "Common JavaScript/TypeScript helper functions for better minification",
"version": "0.11.5",
"homepage": "/~https://github.com/nevware21/ts-utils",
"license": "MIT",
"author": {
"name": "Nevware21 Solutions LLC",
"email": "github@nevware21.com"
},
"keywords": [
"ts",
"typescript",
"js",
"javascript",
"minification",
"minify",
"utils",
"helper",
"node",
"browser",
"worker",
"webworker",
"polyfill",
"ES5",
"ES6",
"ES7",
"ES2015",
"ES2016",
"ES2017",
"ES2018",
"ES2019",
"ES2020",
"ECMAScript 5",
"ECMAScript 6",
"ECMAScript 7",
"ECMAScript 2015",
"ECMAScript 2016",
"ECMAScript 2017",
"ECMAScript 2018",
"ECMAScript 2019",
"ECMAScript 2020",
"ECMAScript 2021",
"ECMAScript 2022",
"ECMAScript 2023",
"getDocument",
"getGlobal",
"getHistory",
"getInst",
"getNavigator",
"getWindow",
"hasDocument",
"hasHistory",
"hasNavigator",
"hasWindow",
"isNode",
"isWebWorker",
"isArray",
"isArrayBuffer",
"isBlob",
"isBoolean",
"isDate",
"isError",
"isFile",
"isFormData",
"isFunction",
"isIterable",
"isIterator",
"isNullOrUndefined",
"isNumber",
"isObject",
"isPromise",
"isPromiseLike",
"isThenable",
"isRegExp",
"isStrictNullOrUndefined",
"isStrictUndefined",
"isString",
"isTypeof",
"isUndefined",
"hasValue",
"isDefined",
"isNotTruthy",
"isTruthy",
"string left",
"strLeft",
"string right",
"strRight",
"normalize js name",
"letter case",
"lettercase",
"camel case",
"camelcase",
"kebab case",
"kebabcase",
"snake case",
"snakecase",
"uppercase",
"lowercase",
"custom error",
"asString",
"hasOwn",
"defineProperty",
"timeout",
"idle timer",
"timer",
"interval",
"includes",
"string contains",
"html encode"
],
"main": "lib/dist/es5/main/ts-utils.js",
"esnext:main": "lib/dist/es6/main/ts-utils.js",
"module": "lib/dist/es5/mod/ts-utils.js",
"esnext:module": "lib/dist/es6/mod/ts-utils.js",
"types": "lib/dist/types/ts-utils.d.ts",
"sideEffects": false,
"scripts": {
"build": "grunt ts_utils --verbose && npm run package && npm run dtsgen",
"rebuild": "npm run build && npm run test && npm run size",
"package": "rollup -c lib/rollup.config.js --bundleConfigAsCjs",
"test": "npm run test:node && npm run test:worker && npm run test:browser && npm run coverage:report",
"test:node": "nyc ts-mocha -p lib/test/tsconfig.test.json lib/test/src/node/**/*.test.ts lib/test/src/common/**/*.test.ts",
"test:browser": "karma start karma.browser.conf.js --single-run",
"test:worker": "cross-env NODE_OPTIONS='--max-old-space-size=8192' karma start karma.worker.conf.js --single-run",
"debug:browser": "karma start karma.debug.browser.conf.js --watch",
"debug:worker": "karma start karma.debug.worker.conf.js --watch",
"lint": "grunt ts_utils-lint",
"coverage:report": "npm run coverage:nyc && npm run coverage:merge",
"coverage:nyc": "nyc report --reporter=json",
"coverage:merge": "node tools/coverage/merge-coverage.js",
"codecov": "npm run coverage:merge",
"clean": "git clean -xdf && npm install",
"cleanBuild": "npm run clean && npm run rebuild",
"docs": "typedoc",
"prep-release": "npm run cleanBuild && npm run npm-pack",
"npm-pack": "copyfiles README.md LICENSE lib && cd lib && npm pack",
"npm-publish": "cd tools/release-tools/npm-publish && npm install && cd ../../.. && npm run do-npm-publish --prefix tools/release-tools/npm-publish --",
"dtsgen": "api-extractor run --local --verbose",
"size": "size-limit",
"size-save": "size-limit --clean-dir --save-bundle build/size"
},
"repository": {
"type": "git",
"url": "/~https://github.com/nevware21/ts-utils.git"
},
"bugs": {
"url": "/~https://github.com/nevware21/ts-utils/issues"
},
"licenses": [
{
"type": "MIT",
"url": "/~https://github.com/nevware21/ts-utils/blob/main/LICENSE"
}
],
"engines": {
"node": ">= 0.8.0"
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@microsoft/api-extractor": "^7.34.4",
"@nevware21/grunt-eslint-ts": "^0.5.1",
"@nevware21/grunt-ts-plugin": "^0.5.1",
"@nevware21/tripwire-chai": ">= 0.1.1 && < 2.0.0",
"@rollup/plugin-commonjs": "^28.0.0",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-strip": "^3.0.2",
"@rollup/plugin-typescript": "^12.1.0",
"@size-limit/esbuild-why": "^11.1.4",
"@size-limit/preset-small-lib": "^11.1.4",
"@size-limit/time": "^11.1.4",
"@types/eslint": "^8.56.10",
"@types/estree": "^1.0.0",
"@types/mocha": "^10.0.1",
"@types/sinon": "^17.0.1",
"@typescript-eslint/eslint-plugin": "^7.14.1",
"@typescript-eslint/parser": "^7.14.1",
"chromium": "^3.0.3",
"codecov": "^3.8.3",
"copyfiles": "^2.4.1",
"cross-env": "^7.0.3",
"eslint": "^8.56.0",
"eslint-formatter-codeframe": "^7.32.1",
"eslint-plugin-security": "^1.5.0",
"glob": "11.0.0",
"grunt": "^1.5.3",
"grunt-cli": "^1.4.3",
"karma": "^6.4.3",
"karma-chrome-launcher": "^3.2.0",
"karma-coverage": "^2.2.1",
"karma-coverage-istanbul-reporter": "^3.0.3",
"karma-mocha": "^2.0.1",
"karma-mocha-webworker": "^1.3.0",
"karma-rollup-preprocessor": "^7.0.8",
"karma-spec-reporter": "^0.0.36",
"karma-typescript": "^5.5.4",
"mocha": "^10.7.0",
"nyc": "^17.0.0",
"puppeteer": "^23.4.0",
"rollup": "^4.14.1",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-istanbul": "^5.0.0",
"rollup-plugin-minify-es": "^1.1.1",
"rollup-plugin-sourcemaps": "^0.6.3",
"sinon": "^15.0.0",
"size-limit": "^11.1.2",
"ts-mocha": "^10.0.0",
"tslib": "^2.6.0",
"typedoc": "^0.26.2",
"typescript": "^4.9.5",
"uglify-js": "^3.15.5"
},
"size-limit": [
{
"name": "es5-full",
"path": "lib/dist/es5/mod/ts-utils.js",
"limit": "19 kb",
"brotli": false
},
{
"name": "es6-full",
"path": "lib/dist/es6/mod/ts-utils.js",
"limit": "18 kb",
"brotli": false
},
{
"name": "es5-zip",
"path": "lib/dist/es5/mod/ts-utils.js",
"limit": "8 Kb",
"gzip": true
},
{
"name": "es6-zip",
"path": "lib/dist/es6/mod/ts-utils.js",
"limit": "8 Kb",
"gzip": true
},
{
"name": "es5-env",
"path": "lib/dist/es5/mod/ts-utils.js",
"limit": "2 kb",
"import": "{ getGlobal, getInst, hasDocument, getDocument, hasWindow, getWindow, hasNavigator, getNavigator, hasHistory, getHistory, isNode, isWebWorker }",
"brotli": false
},
{
"name": "es5-poly",
"path": "lib/bundle/es5/ts-polyfills-utils.js",
"limit": "7 kb",
"brotli": false
}
]
}