generated from lit/lit-element-starter-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
94 lines (94 loc) · 3.36 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
{
"name": "toc-observer-component",
"version": "0.0.3",
"description": "Highlights links in a table of contents when items appear in your viewport.",
"main": "toc-observer.js",
"module": "toc-observer.js",
"type": "module",
"types": "*.d.ts",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"prepublish": "npm run build && npm run create-ce-manifest",
"clean": "rimraf toc-observer.{d.ts,d.ts.map,js,js.map} test/toc-observer.{d.ts,d.ts.map,js,js.map} test/toc-observer_test.{d.ts,d.ts.map,js,js.map}",
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
"lint:eslint": "eslint 'src/**/*.ts'",
"lint:lit-analyzer": "lit-analyzer",
"format": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.eslintignore --write",
"docs": "npm run docs:clean && npm run build && npm run analyze && npm run docs:build && npm run docs:assets && npm run docs:gen",
"docs:clean": "rimraf docs",
"docs:gen": "eleventy --config=.eleventy.cjs",
"docs:gen:watch": "eleventy --config=.eleventy.cjs --watch",
"docs:build": "rollup -c --file docs/toc-observer.bundled.js",
"docs:assets": "cp node_modules/prismjs/themes/prism-okaidia.css docs/",
"docs:serve": "wds --root-dir=docs --node-resolve --watch",
"create-ce-manifest": "cem analyze --litelement --globs \"src/**/*.ts\" --exclude \"src/**/*.styles.ts\"",
"create-ce-manifest:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --watch",
"serve": "wds --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",
"checksize": "rollup -c ; cat toc-observer.bundled.js | gzip -9 | wc -c ; rm toc-observer.bundled.js"
},
"keywords": [
"IntersectionObserver",
"lit",
"lit-element",
"table of contents",
"toc",
"typescript",
"web-components"
],
"author": "Tony Spegel",
"license": "BSD-3-Clause",
"dependencies": {
"lit": "^2.5.0"
},
"devDependencies": {
"@11ty/eleventy": "^0.12.1",
"@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
"@custom-elements-manifest/analyzer": "^0.6.6",
"@esm-bundle/chai": "^4.1.5",
"@open-wc/testing": "^3.0.0-next.1",
"@open-wc/testing-karma": "^4.0.9",
"@rollup/plugin-node-resolve": "^13.0.4",
"@rollup/plugin-replace": "^3.0.0",
"@types/mocha": "^9.0.0",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"@web/dev-server": "^0.1.22",
"@web/dev-server-legacy": "^0.1.4",
"@web/dev-server-rollup": "^0.3.9",
"@web/test-runner": "^0.13.16",
"@web/test-runner-mocha": "^0.7.4",
"@web/test-runner-playwright": "^0.8.4",
"@webcomponents/webcomponentsjs": "^2.6.0",
"deepmerge": "^4.2.2",
"eslint": "^8.31.0",
"husky": "^8.0.3",
"lint-staged": "^13.1.0",
"lit-analyzer": "^1.2.1",
"mocha": "^9.1.1",
"prettier": "^2.8.2",
"rimraf": "^3.0.2",
"rollup": "^2.28.2",
"rollup-plugin-summary": "^1.2.3",
"rollup-plugin-terser": "^7.0.2",
"typescript": "^4.3.5"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
]
},
"customElements": "custom-elements.json"
}