-
Notifications
You must be signed in to change notification settings - Fork 53
/
package.json
83 lines (83 loc) · 2.62 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
{
"name": "alloy-worker",
"version": "1.4.0",
"description": "面向事务的高可用 Web Worker 通信框架",
"keywords": [
"Web",
"Worker",
"Channel",
"Message"
],
"author": "AlloyTeam",
"license": "MIT",
"main": "index.js",
"types": "lib/typings/index.d.ts",
"bin": {
"alloy-worker": "src/command/index.js"
},
"scripts": {
"test": "cross-env NODE_ENV=test jest -c script/test/base.js",
"test:lint-staged": "cross-env NODE_ENV=test jest -c script/test/base.js --findRelatedTests",
"dev": "cross-env NODE_ENV=development node ./script/build.js",
"dist": "cross-env NODE_ENV=production node ./script/build.js",
"type": "mkdir -p lib && cp -r src/typings lib/",
"plugin": "mkdir -p lib && cp -r src/plugin lib/",
"prepublishOnly": "npm run plugin && npm run type",
"release": "standard-version",
"ts-check": "tsc --noEmit",
"commit": "git-cz",
"prettier": "prettier --write 'src/**/*.{js,ts}'",
"eslint": "eslint 'src/**/*.{js,ts}'"
},
"devDependencies": {
"@babel/core": "^7.9.0",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"@commitlint/cli": "^8.3.5",
"@commitlint/config-conventional": "^8.3.4",
"@types/jest": "^26.0.21",
"@types/node": "^14.14.10",
"@typescript-eslint/eslint-plugin": "^4.4.1",
"@typescript-eslint/parser": "^4.4.1",
"babel-loader": "^8.1.0",
"commitizen": "^4.0.3",
"cross-env": "^7.0.2",
"cz-conventional-changelog": "^3.1.0",
"eslint": "^7.3.1",
"eslint-config-alloy": "^3.7.3",
"html-webpack-plugin": "^3.2.0",
"husky": "^4.2.3",
"jest": "^26.6.3",
"lint-staged": "^10.0.9",
"loader-utils": "^2.0.0",
"prettier": "^2.0.2",
"standard-version": "^9.1.1",
"ts-jest": "^26.4.4",
"ts-loader": "^6.2.1",
"typescript": "^3.8.3",
"webpack": "^4.42.0"
},
"dependencies": {
"commander": "^2.7.0",
"core-js": "^3.6.4",
"regenerator-runtime": "^0.13.5"
},
"lint-staged": {
"src/**/*.{js,ts}": [
"prettier --write",
"eslint --fix",
"npm run test:lint-staged"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "npm run ts-check && lint-staged"
}
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
}