-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
59 lines (59 loc) · 1.87 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
{
"name": "extract-colors",
"version": "4.2.0",
"description": "Extract color palettes from images",
"main": "lib/extract-colors.cjs",
"module": "lib/extract-colors.mjs",
"types": "lib/extract-colors.d.ts",
"scripts": {
"prebuild": "rm -rf ./lib",
"build": "vite build --config conf/vite.config.ts && vite build --config conf/vite.config.worker.ts && tsc --project conf/tsconfig.type.json",
"postbuild": "mv lib/extractColors.d.ts lib/extract-colors.d.ts; mv lib/workerWrapper.d.ts lib/worker-wrapper.d.ts; sed -i 's/__DEV__/process.env.NODE_ENV !== \"production\"/g' lib/**.*js ; ",
"lint": "npx eslint --config conf/eslint.config.mjs",
"lint-fix": "npx eslint --fix --config conf/eslint.config.mjs",
"pretest": "npm run build",
"test": "vitest --config conf/vite.config.test.ts",
"precoverage": "npm run build",
"coverage": "vitest run --coverage --config conf/vite.config.test.ts",
"loop": "for file in lib/*.js; do terser $file --compress --mangle --mangle-props --source-map includeSources --output $file; done"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Namide/extract-colors.git"
},
"keywords": [
"color",
"tool",
"image",
"extract",
"palette",
"browser",
"rgb",
"front-end",
"back-end",
"node",
"hsl",
"web workers"
],
"author": "damien@doussaud.fr",
"license": "MIT",
"bugs": {
"url": "https://github.com/Namide/extract-colors/issues"
},
"homepage": "https://extract-colors.namide.com",
"files": [
"lib"
],
"devDependencies": {
"@eslint/js": "^9.9.1",
"@types/eslint__js": "^8.42.3",
"@vitest/coverage-istanbul": "^2.0.5",
"eslint": "^9.9.1",
"eslint-config-prettier": "^9.1.0",
"terser": "^5.31.6",
"typescript": "^5.5.4",
"typescript-eslint": "^8.4.0",
"vite": "^5.4.2",
"vitest": "^2.0.5"
}
}