-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
106 lines (106 loc) · 2.11 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
{
"name": "contrast-color",
"description": "Determines the best contrast color to use. Give it a background color and it returns a foreground color (black or white by default but customizable).",
"license": "ISC",
"author": "Buster Collings <[email protected]> (https://about.me/buster)",
"repository": "busterc/contrast-color",
"version": "1.0.1",
"main": "lib/index.js",
"files": [
"dist",
"lib"
],
"scripts": {
"prebuild": "rm -rf dist 2>/dev/null && mkdir dist",
"build": "parcel build lib/index.js --out-file contrastColor.js --global ContrastColor --no-source-maps",
"postbuild": "NODE_ENV=BUILD jest",
"pretest": "eslint lib",
"test": "jest --coverage"
},
"devDependencies": {
"coveralls": "^3.0.7",
"eslint": "^7.15.0",
"eslint-config-prettier": "^6.6.0",
"eslint-config-xo": "^0.33.1",
"eslint-plugin-compat": "^3.8.0",
"eslint-plugin-prettier": "^3.1.1",
"husky": "^4.3.4",
"jest": "^26.1.0",
"jest-given": "^1.0.0",
"lint-staged": "^10.5.3",
"parcel": "^1.12.4",
"prettier": "^2.2.1"
},
"keywords": [
"accessibility",
"background",
"black",
"bright",
"brighten",
"brightness",
"chroma",
"color",
"colors",
"contrast",
"convert",
"css",
"dark",
"darken",
"font",
"foreground",
"hex",
"hsl",
"hsv",
"light",
"lightness",
"luma",
"luminosity",
"rgb",
"text",
"wcag",
"white",
"yiq"
],
"engines": {
"npm": ">= 4.0.0"
},
"browserslist": [
"last 2 versions"
],
"eslintConfig": {
"extends": [
"xo",
"prettier",
"plugin:compat/recommended"
],
"env": {
"jest": true,
"node": true,
"browser": true
},
"rules": {
"prettier/prettier": "error"
},
"plugins": [
"prettier"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"jest": {
"testEnvironment": "jsdom"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"*.json": [
"prettier --write",
"git add"
]
}
}