-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
51 lines (51 loc) · 1.83 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
{
"name": "color-description",
"version": "0.15.0",
"description": "Textual color description",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"browser": "dist/index.iife.js",
"type": "module",
"scripts": {
"build": "npm run build:style && npm run build:esm && npm run build:browser && npm run build:node",
"build:esm": "esbuild src/index.js --outfile=dist/index.esm.js --format=esm --bundle --target=es2020 --minify",
"build:browser": "esbuild src/index.js --outfile=dist/index.iife.js --bundle --target=es6 --format=iife --global-name=ColorDescription --minify",
"build:node": "esbuild src/index.js --outfile=dist/index.js --platform=node --target=node14 --minify",
"build:style": "npx prettier . --write",
"test": "npm run build && node --experimental-vm-modules node_modules/.bin/jest --verbose ./tests",
"dev:watch": "esbuild src/index.js --outfile=dist/index.iife.js --bundle --target=es6 --format=iife --global-name=ColorDescription --watch",
"dev:watch-demo": "live-server ./dist --entry-file=dist/index.html --watch=dist/index.html,./dist/index.iife.js",
"dev": "concurrently \"npm run dev:watch\" \"npm run dev:watch-demo\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/words/color-description.git"
},
"keywords": [
"color",
"text",
"colour",
"description",
"naming",
"accessibility"
],
"author": "meodai@gmail.com",
"license": "MIT",
"bugs": {
"url": "https://github.com/words/color-description/issues"
},
"homepage": "https://github.com/words/color-description#readme",
"config": {
"commitizen": {
"path": "git-cz"
}
},
"devDependencies": {
"concurrently": "^9.0.1",
"culori": "^4.0.1",
"esbuild": "^0.24.0",
"jest": "^29.7.0",
"live-server": "^1.2.2",
"prettier": "^3.3.3"
}
}