-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
104 lines (104 loc) · 3.17 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
{
"name": "@yincw/dora",
"version": "0.0.10",
"description": "A library of JavaScript utils",
"main": "lib/index.js",
"browser": "dist/dora.min.js",
"module": "es/index.js",
"typings": "lib/dora.d.ts",
"sideEffects": false,
"files": [
"dist",
"lib",
"es",
"LICENSE",
"CHANGELOG.md",
"README.md"
],
"scripts": {
"dev": "cross-env NODE_ENV=development rollup -wc --bundleConfigAsCjs",
"test": "jest --verbose",
"test:coverage": "jest --coverage",
"test:e2e": "cypress open",
"prepublish": "npm run build && npm run docs && git add . && cz && standard-version",
"build": "npm run clean && npm run build:lib && npm run build:es && npm run build:amd && npm run build:dist",
"build:dist": "cross-env NODE_ENV=production rollup -c --bundleConfigAsCjs",
"build:amd": "tsc --outDir dist --module amd",
"build:lib": "tsc --outDir lib --module commonjs --declaration true",
"build:es": "tsc --outDir es --module es2015 --declaration true",
"clean": "rimraf dist/* && rimraf lib/* && rimraf es/* && rimraf coverage/* && rimraf docs/* && rimraf temp/*",
"docs": "api-extractor run && api-documenter markdown --input-folder temp --output-folder docs",
"gen": "node scripts/generator.js --mode=gen",
"del": "node scripts/generator.js --mode=del"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged & jest",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"lint-staged": {
"*./src/**/*.{ts,js,less,css,json,md}": [
"prettier --write --ignore-unknown",
"eslint 'src/**/*.{ts,js}'"
]
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"devDependencies": {
"@babel/core": "^7.24.6",
"@babel/plugin-transform-runtime": "^7.24.6",
"@babel/preset-env": "^7.24.6",
"@babel/preset-typescript": "^7.24.6",
"@babel/runtime-corejs3": "^7.24.6",
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@microsoft/api-documenter": "^7.24.11",
"@microsoft/api-extractor": "^7.44.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^29.5.12",
"@typescript-eslint/eslint-plugin": "^3.10.1",
"@typescript-eslint/parser": "^3.10.1",
"babel-plugin-polyfill-corejs3": "^0.10.4",
"commitizen": "^4.3.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"husky": "^4.2.5",
"jest": "^29.7.0",
"lint-staged": "^10.2.13",
"prettier": "2.1.1",
"rimraf": "^3.0.2",
"rollup": "^4.18.0",
"standard-version": "^9.0.0",
"ts-jest": "^29.1.3",
"tslib": "^2.6.2",
"typescript": "^5.4.5"
},
"dependencies": {
"core-js": "^3.37.1"
},
"keywords": [
"Dora",
"Utils",
"Tools",
"TypeScript",
"Babel",
"Rollup"
],
"repository": {
"type": "git",
"url": "git+https://github.com/yincw/dora.git"
},
"author": "yincw",
"license": "MIT"
}