-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 loc) · 2.51 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
{
"name": "color-2-name",
"version": "1.4.4",
"author": "Erik <[email protected]>",
"description": "Finds the closest color name to a given hex, rgb and hsl color (with and without alpha). It uses the Euclidean distance formula to calculate the distance between colors in the RGB color space",
"homepage": "https://wp-blocks.github.io/color-2-name/",
"license": "ISC",
"sideEffects": false,
"main": "./lib/index.cjs",
"module": "./lib/index.js",
"type": "module",
"types": "lib/index.d.ts",
"browser": "lib/browser/color-2-name.min.js",
"unpkg": "lib/browser/color-2-name.min.js",
"jsdelivr": "lib/browser/color-2-name.js",
"exports": {
".": {
"types": "./lib/index.d.ts",
"require": {
"types": "./lib/index.d.cts",
"default": "./lib/index.cjs"
},
"import": {
"types": "./lib/index.d.ts",
"default": "./lib/index.js"
},
"browser": "./lib/browser/color-2-name.js"
}
},
"scripts": {
"gen-colorSet": "node ./lib/colorSetUtils.mjs colorSet",
"build": "rimraf lib && npm run build-module && npm run build-browser && npm run build-browser-min",
"test": "vitest",
"test:coverage": "vitest --coverage",
"lint": "npx @biomejs/biome lint --apply src",
"build-module": "tsup",
"build-browser": "esbuild src/index.ts --outfile=lib/browser/color-2-name.js --global-name=color2name --allow-overwrite --bundle --sourcemap",
"build-browser-min": "esbuild src/index.ts --outfile=lib/browser/color-2-name.min.js --global-name=color2name --allow-overwrite --bundle --minify"
},
"files": ["lib/", "tests/*.ts", "*.json", "*.md", ".gitignore", "LICENSE"],
"repository": {
"type": "git",
"url": "https://github.com/wp-blocks/color-2-name.git"
},
"bugs": {
"url": "https://github.com/wp-blocks/color-2-name/issues"
},
"engines": {
"npm": ">=6.0.0",
"node": ">=14.0.0"
},
"keywords": [
"color",
"color names",
"color-names",
"css",
"css colors",
"accessibility",
"a11y",
"hex",
"rgb",
"hsl",
"convert colors",
"color picker"
],
"devDependencies": {
"@biomejs/biome": "1.7.3",
"@types/node": "^20.12.13",
"@vitest/coverage-v8": "^1.6.0",
"esbuild": "^0.21.4",
"rimraf": "^5.0.7",
"tsup": "^8.0.2",
"typescript": "^5.4.5",
"vitest": "^1.6.0"
},
"tsup": {
"skipNodeModulesBundle": true,
"dts": true,
"bundle": false,
"treeshake": true,
"minify": true,
"shims": true,
"cjsInterop": true,
"target": "node16",
"moduleName": "color2name",
"format": ["esm", "cjs"],
"tsconfig": "./tsconfig.json",
"entry": ["src/**/*.ts"],
"outDir": "lib"
}
}