-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
98 lines (98 loc) · 3.19 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
{
"name": "js-lib-starter",
"version": "0.1.0",
"description": "轮子模板",
"main": "dist/index.js",
"jsnext:main": "dist/index.esm.js",
"module": "dist/index.esm.js",
"type": "module",
"sideEffects": false,
"scripts": {
"preinstall": "npx only-allow pnpm",
"clean": "rimraf ./dist",
"release": "pnpm test && pnpm build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags",
"lint": "eslint -c .eslintrc.js 'src/**/*.js' && pnpm lint:fix",
"lint:fix": "eslint --fix -c .eslintrc.js 'src/**/*.js' --fix",
"build:cjs": "rollup -c config/rollup.config.cjs.js",
"build:cjs.min": "cross-env NODE_ENV=production pnpm build:cjs",
"build:esm": "rollup -c config/rollup.config.esm.js",
"build:umd": "rollup -c config/rollup.config.umd.js",
"build:umd.min": "cross-env NODE_ENV=production pnpm build:umd",
"build:lib": "rollup -c config/rollup.config.lib.js",
"build": "pnpm clean && pnpm build:esm && pnpm build:cjs && pnpm build:cjs.min && pnpm build:umd && pnpm build:umd.min && pnpm build:lib && pnpm types",
"test": "pnpm build && pnpm test:build",
"test:build": "vitest run",
"test:dev": "vitest",
"coverage": "vitest run --coverage",
"docs:api": "typedoc --plugin typedoc-plugin-markdown --out docs/pages/folder1/api src/index.ts",
"docs:dev": "vuepress dev docs",
"docs:build": "vuepress build docs",
"deploy": "pnpm build && pnpm docs:build",
"deploy:gh": "gh-pages -d docs/.vuepress/dist",
"commit:lint": "commitlint -e $HUSKY_GIT_PARAMS",
"types": "rollup -c config/generate-dts.js"
},
"author": "zenquan",
"license": "MIT",
"husky": {
"hooks": {
"commit-msg": "#pnpm commit:lint"
}
},
"repository": {
"type": "git",
"url": "git://github.com/zenquan/js-lib-starter.git"
},
"bugs": {
"url": "https://github.com/zenquan/js-lib-starter/issues"
},
"files": [
"/dist",
"*.d.ts"
],
"engines": {
"node": ">= 14.0.0"
},
"devDependencies": {
"@commitlint/cli": "^16.2.3",
"@rollup/plugin-commonjs": "^21.0.3",
"@rollup/plugin-multi-entry": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.2.0",
"@rollup/plugin-typescript": "^8.3.2",
"@swc/cli": "^0.1.57",
"@swc/core": "^1.2.165",
"browserslist": "^4.20.2",
"c8": "^7.11.2",
"canvas": "^2.9.1",
"cross-env": "5.2.0",
"es5-shim": "4.5.10",
"eslint": "^8.13.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"gh-pages": "^3.2.3",
"husky": "3.1.0",
"jest-canvas-mock": "^2.4.0",
"jsdom": "^19.0.0",
"nyc": "13.1.0",
"only-allow": "^1.1.0",
"prettier": "^2.6.2",
"rimraf": "2.6.2",
"rollup": "^2.70.1",
"rollup-plugin-dts": "^4.2.1",
"rollup-plugin-esbuild": "^4.9.1",
"rollup-plugin-uglify": "^6.0.4",
"typedoc": "^0.22.15",
"typedoc-plugin-markdown": "^3.12.1",
"typescript": "^4.6.3",
"unplugin-swc": "^1.3.2",
"vitest": "^0.9.4",
"vuepress": "^1.8.0",
"vuepress-plugin-typedoc": "^0.10.3"
},
"homepage": "https://github.com/zenquan/js-lib-starter#readme",
"directories": {
"doc": "docs",
"test": "test"
},
"keywords": []
}