This repository was archived by the owner on May 19, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
111 lines (111 loc) · 3.52 KB
/
package.json
File metadata and controls
111 lines (111 loc) · 3.52 KB
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
{
"name": "@antv/color-schema",
"version": "0.2.3",
"description": "JSON Schema for Color Palette",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"unpkg": "dist/index.min.js",
"module": "esm/src/index.js",
"files": [
"src",
"esm",
"lib",
"build"
],
"scripts": {
"clean": "rimraf lib esm dist",
"lint-staged": "lint-staged",
"size": "limit-size",
"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",
"test": "jest",
"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:*",
"schema": "mkdir -p build && ts-json-schema-generator -f tsconfig.json -p src/index.ts -t ColorSchema --no-type-check --no-ref-encode > build/color-schema.json",
"ci": "run-s lint test build schema",
"prepublishOnly": "npm run ci",
"prepare": "husky install",
"setup:demo": "cd demo && npm install --package-lock=false",
"start:demo": "npm run setup:demo && cd demo && npm start",
"deploy:site": "cd demo && npm run deploy:site",
"preversion": "npm run lint",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags",
"one-stop-setup": "npm install --package-lock=false && run-s build setup:demo"
},
"repository": {
"type": "git",
"url": "git+https://github.com/antvis/color-schema.git"
},
"author": {
"name": "AntV",
"url": "https://antv.vision/"
},
"license": "MIT",
"homepage": "https://antvis.github.io/color-schema",
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/antvis/color-schema/issues"
},
"dependencies": {
"@types/chroma-js": "^2.1.3"
},
"devDependencies": {
"@babel/runtime": "^7.13.10",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@rollup/plugin-commonjs": "^21.0.1",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-typescript": "^8.2.1",
"@types/jest": "^26.0.22",
"@types/jest-json-schema": "^2.1.3",
"@typescript-eslint/eslint-plugin": "^4.28.3",
"@typescript-eslint/parser": "^4.28.3",
"ajv": "^8.0.4",
"chroma-js": "^2.1.1",
"eslint": "^7.29.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": "^26.6.3",
"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.0",
"rimraf": "^3.0.2",
"rollup": "^2.53.1",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^26.5.4",
"ts-json-schema-generator": "^0.89.2",
"typescript": "^4.2.4"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"limit-size": [
{
"path": "dist/index.min.js",
"limit": "8 Kb",
"gzip": true
},
{
"path": "dist/index.min.js",
"limit": "24 Kb"
}
]
}