/
package.json
108 lines (108 loc) · 2.96 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
{
"name": "@antv/smart-color",
"version": "0.2.1",
"description": "A JavaScript library for color computation.",
"main": "lib/index.js",
"module": "esm/index.js",
"unpkg": "dist/smart-color.min.js",
"types": "lib/index.d.ts",
"files": [
"src",
"lib",
"esm",
"dist"
],
"scripts": {
"clean": "rimraf lib esm dist",
"lint-staged": "lint-staged",
"size": "limit-size",
"format": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\" \"demo/**/*.tsx\"",
"lint": "eslint ./src/**/*.ts ./__tests__/**/*.ts && prettier ./src ./__tests__ --check",
"fix": "eslint ./src/**/*.ts ./__tests__/**/*.ts --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:*",
"ci": "run-s lint test build",
"prepublishOnly": "npm run ci",
"prepare": "husky install",
"start:demo": "cd demo && npm install && npm start",
"deploy:site": "cd demo && npm run deploy:site"
},
"keywords": [
"antv",
"ava",
"color"
],
"repository": {
"type": "git",
"url": "git+https://github.com/antvis/smart-color.git"
},
"author": {
"name": "AntV",
"url": "https://antv.vision/"
},
"license": "MIT",
"publishConfig": {
"access": "public"
},
"bugs": {
"url": "https://github.com/antvis/smart-color/issues"
},
"homepage": "https://antvis.github.io/smart-color",
"devDependencies": {
"@babel/runtime": "^7.14.6",
"@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-typescript": "^8.2.1",
"@types/chroma-js": "^2.1.3",
"@types/jest": "^26.0.23",
"@typescript-eslint/eslint-plugin": "^4.28.0",
"@typescript-eslint/parser": "^4.28.0",
"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": "^6.0.0",
"jest": "^27.0.5",
"limit-size": "^0.1.4",
"lint-staged": "^11.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.3.1",
"rimraf": "^3.0.2",
"rollup": "^2.52.2",
"rollup-plugin-uglify": "^6.0.4",
"ts-jest": "^27.0.3",
"tslib": "^2.3.0",
"typescript": "^4.3.4",
"wolfy87-eventemitter": "^5.2.9"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"limit-size": [
{
"path": "dist/smart-color.min.js",
"limit": "8 Kb",
"gzip": true
},
{
"path": "dist/smart-color.min.js",
"limit": "24 Kb"
}
],
"dependencies": {
"@antv/color-schema": "^0.2.2",
"chroma-js": "^2.1.2",
"color-blind": "^0.1.1"
}
}