-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
129 lines (129 loc) · 4.09 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"name": "color-legend-element",
"version": "1.3.0",
"description": "A custom element (web component) suitable for use as a legend in data visualizations",
"main": "index.js",
"module": "index.js",
"type": "module",
"types": "build/index.d.ts",
"files": [
"build/**/*.js",
"build/**/*.d.ts",
"!build/test/*",
"custom-elements.json"
],
"unpkg": "build/color-legend-element.umd.js",
"jsdelivr": "build/color-legend-element.umd.js",
"exports": {
"umd": "./build/color-legend-element.umd.js",
"default": "./index.js"
},
"customElements": "custom-elements.json",
"scripts": {
"analyze": "cem analyze --litelement --globs \"src/(color-legend-element|constants).ts\" --exclude \"src/**/*_test.ts\"",
"analyze:watch": "npm run analyze -- --watch",
"build": "tsc",
"build:watch": "tsc --watch",
"bundle": "rollup -c",
"docs": "npm run docs:clean && npm run build && npm run bundle && npm run docs:gen",
"docs:gen": "npx @11ty/eleventy --config=.eleventy.cjs --input=docs-src --output=docs",
"docs:clean": "rimraf docs",
"docs:serve": "npm run docs:gen -- --serve",
"docs:watch": "npm run docs:gen -- --watch",
"docs:debug": "DEBUG=* npm run docs:gen",
"format": "prettier \"**/*.{cjs,html,js,json,md,ts,css}\" --ignore-path ./.eslintignore --write",
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
"lint:eslint": "eslint 'src/**/*.ts'",
"lint:lit-analyzer": "lit-analyzer",
"version": "npm run docs && git add docs",
"release": "np",
"serve": "wds --open=./dev --watch",
"serve:prod": "MODE=prod npm run serve",
"test": "npm run test:dev && npm run test:prod",
"test:dev": "wtr",
"test:watch": "wtr --watch",
"test:prod": "MODE=prod wtr",
"test:prod:watch": "MODE=prod wtr --watch",
"prepare": "node .husky/install.mjs"
},
"repository": {
"type": "git",
"url": "git+https://github.com/clhenrick/color-legend-element.git"
},
"keywords": [
"web-components",
"custom-elements",
"data-visualization",
"legend",
"lit",
"lit-element",
"d3",
"d3js"
],
"author": "Chris Henrick <chrishenrick@gmail.com> (https://clhenrick.io/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/clhenrick/color-legend-element/issues"
},
"homepage": "https://clhenrick.github.io/color-legend-element/",
"dependencies": {
"lit": "^2.8.0 || ^3.1.0"
},
"peerDependencies": {
"d3-array": "^3.1.1",
"d3-format": "^3.1.0",
"d3-interpolate": "^3.0.1",
"d3-scale": "^4.0.2",
"d3-scale-chromatic": "^3.0.0"
},
"devDependencies": {
"@11ty/eleventy": "^2.0.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"@custom-elements-manifest/analyzer": "^0.9.3",
"@esm-bundle/chai": "^4.3.4",
"@open-wc/testing": "^4.0.0",
"@open-wc/testing-karma": "^4.0.9",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@types/d3": "^7.4.3",
"@types/mocha": "^10.0.6",
"@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@web/dev-server": "^0.4.3",
"@web/dev-server-esbuild": "^1.0.2",
"@web/dev-server-legacy": "^2.1.0",
"@web/dev-server-rollup": "^0.6.1",
"@web/test-runner": "^0.18.0",
"@web/test-runner-mocha": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"@webcomponents/webcomponentsjs": "^2.8.0",
"deepmerge": "^4.3.1",
"eslint": "^8.57.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"lit-analyzer": "^2.0.3",
"mocha": "^10.3.0",
"np": "^10.0.0",
"prettier": "^3.2.5",
"prismjs": "^1.29.0",
"rimraf": "^5.0.5",
"rollup": "^2.79.1",
"rollup-plugin-summary": "^2.0.0",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^5.3.3"
},
"lint-staged": {
"*.{js,ts,cjs,mjs}": "eslint --cache --fix",
"*.{html,js,cjs,mjs,json,md,ts,css}": "npm run format --"
},
"np": {
"branch": "main",
"yarn": false,
"contents": "./build",
"message": "color-legend-element v%s"
},
"engines": {
"node": ">=16.13.0"
}
}