-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
113 lines (113 loc) · 3.64 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
{
"name": "@antv/antv-spec",
"version": "0.1.0-alpha.18",
"description": "A declarative grammar that supports various technology stacks of AntV.",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"unpkg": "dist/index.min.js",
"module": "esm/src/index.js",
"files": [
"esm",
"lib",
"dist",
"build"
],
"scripts": {
"prepare": "husky install",
"format": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" \"demo/**/*.{ts,tsx}\"",
"format-check": " prettier ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --check",
"lint": "eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} && npm run format-check",
"fix": "eslint ./src/**/*.ts ./__tests__/**/*.ts ./demo/**/*.{ts,tsx} --fix && npm run format",
"lint-staged": "lint-staged",
"size": "limit-size",
"build:umd": "rimraf ./dist && rollup -c && npm run size",
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
"build": "run-p build:* && npm run size",
"clean": "rimraf lib esm dist",
"schema": "mkdir -p build && ts-json-schema-generator -f tsconfig.json -p src/index.ts -t AntVSpec --no-type-check --no-ref-encode > build/antv-spec.json",
"test": "jest",
"ci": "run-s schema lint test build",
"setup:demo": "cd demo && npm install --package-lock=false",
"start:demo": "npm run setup:demo && cd demo && npm start",
"deploy:demo": "cd demo && npm run deploy:site",
"one-stop-setup": "npm install --package-lock=false && run-s setup:demo ci",
"prepublishOnly": "npm run ci",
"preversion": "npm run lint",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags"
},
"repository": {
"type": "git",
"url": "git+https://github.com/antvis/antv-spec.git"
},
"author": {
"name": "AntV",
"url": "https://antv.vision/"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/antvis/antv-spec/issues"
},
"homepage": "https://github.com/antvis/antv-spec#readme",
"devDependencies": {
"@antv/g2plot": "^2.3.27",
"@antv/g6": "^4.3.11",
"@babel/runtime": "^7.14.6",
"@commitlint/cli": "^13.2.1",
"@commitlint/config-conventional": "^13.2.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-typescript": "^8.2.5",
"@types/jest": "^27.0.2",
"@types/jest-json-schema": "^2.1.3",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"eslint": "^7.30.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"husky": "^7.0.1",
"jest": "^27.3.1",
"jest-json-schema": "^5.0.0",
"limit-size": "^0.1.4",
"lint-staged": "^11.0.1",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",
"rollup": "^2.59.0",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^27.0.7",
"ts-json-schema-generator": "^0.94.1",
"typescript": "^4.4.4"
},
"peerDependencies": {
"@antv/g2plot": "^2.3.27",
"@antv/g6": "^4.3.11"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"limit-size": [
{
"path": "dist/index.min.js",
"limit": "10 Kb",
"gzip": true
},
{
"path": "dist/index.min.js",
"limit": "24 Kb"
}
]
}