generated from nichoth/template-ts-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
97 lines (97 loc) · 3.32 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
{
"name": "@substrate-system/hamburger",
"description": "A hamburger menu, implemented as a web component",
"directories": {
"example": "example",
"test": "test"
},
"type": "module",
"version": "0.0.8",
"main": "dist/index.js",
"files": [
"./dist/*"
],
"scripts": {
"lint": "eslint \"./**/*.{ts,js}\"",
"build-tests": "esbuild test/index.ts --target=es2020 --bundle --keep-names > test/test-bundle.js && cp ./dist/style.css ./test",
"test": "npm run lint && npm run build && npm run build-tests && npm run test-tape-run",
"test-tape-run": "cat test/index.html | tape-run --input=html --static=test | tap-spec",
"build-css": "postcss src/index.css --use postcss-nesting > dist/style.css",
"build-css:min": "postcss src/index.css --use cssnano postcss-nesting > dist/style.min.css",
"build-cjs": "esbuild src/*.ts --format=cjs --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --out-extension:.js=.cjs --sourcemap",
"build-esm": "esbuild src/*.ts --format=esm --metafile=dist/meta.json --keep-names --tsconfig=tsconfig.build.json --outdir=./dist --sourcemap && tsc --emitDeclarationOnly --project tsconfig.build.json --outDir dist",
"build-esm:min": "esbuild ./src/index.ts --format=esm --keep-names --bundle --tsconfig=tsconfig.build.json --minify --outfile=./dist/index.min.js",
"build-docs": "typedoc ./src/index.ts",
"build-example": "vite --base \"/hamburger/\" build",
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && npm run build-esm && npm run build-esm:min && npm run build-css && npm run build-css:min",
"start": "vite",
"preversion": "npm run lint",
"toc": "markdown-toc --maxdepth 3 -i README.md",
"version": "npm run toc && git add CHANGELOG.md README.md",
"postversion": "git push --follow-tags && npm publish",
"prepublishOnly": "npm run build"
},
"devDependencies": {
"@substrate-system/debug": "^0.7.2",
"@substrate-system/dom": "^0.1.0",
"@substrate-system/tapzero": "^0.10.3",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"cssnano": "^7.0.3",
"esbuild": "^0.25.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"markdown-toc": "^1.2.0",
"postcss": "^8.4.38",
"postcss-cli": "^11.0.0",
"postcss-nesting": "^13.0.0",
"tap-spec": "^5.0.0",
"tape-run": "^11.0.0",
"typedoc": "^0.27.1",
"typescript": "^5.4.5",
"vite": "^6.0.1"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./min": [
"./dist/index.min.js"
],
"./css": [
"./dist/style.css"
],
"./css/min": [
"./dist/style.min.css"
],
"./*": {
"import": [
"./dist/*.js",
"./dist/*"
],
"require": [
"./dist/*.cjs",
"./dist/*"
]
}
},
"author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)",
"license": "MIT",
"types": "./dist/index.d.ts",
"repository": {
"type": "git",
"url": "git+https://github.com/substrate-system/hamburger.git"
},
"keywords": [
"hamburger",
"menu",
"webcomponent",
"mobile",
"nav"
],
"bugs": {
"url": "https://github.com/substrate-system/hamburger/issues"
},
"homepage": "https://github.com/substrate-system/hamburger"
}