-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
35 lines (35 loc) · 1.49 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
{
"private": true,
"type": "module",
"name": "htmx-todomvc",
"description": "Example of an HTMX application which works offline first",
"version": "0.0.1",
"scripts": {
"start": "npm run clean && npm run static && esbuild --format=esm --watch --outdir=docs --bundle --servedir=docs ./src/sw.ts",
"static": "[ -d \"docs\" ] || mkdir docs && cd src && cp --parents `find . -name '*.js' -o -name '*.html' -o -name '*.css'` ../docs && cd .. && npm run htmx && npm run todo && npm run iife",
"htmx": "mkdir -p docs/js/lib && cp ./node_modules/htmx.org/dist/htmx.js ./docs/js/lib/htmx.js",
"todo": "cp ./node_modules/todomvc-app-css/index.css ./docs/css/index.css && cp ./node_modules/todomvc-common/base.css ./docs/css/base.css && cp ./node_modules/todomvc-common/base.js ./docs/js/lib/base.js",
"iife": "npx esbuild ./src/js/app.ts --bundle --format=iife --outdir=docs/js",
"clean": "rm -rf docs",
"build": "npm run clean && npm run static && esbuild --format=esm --outdir=docs --bundle ./src/sw.ts"
},
"dependencies": {
"html-template-tag-stream": "^1.1.2",
"htmx.org": "^1.9.2",
"idb-keyval": "^6.2.1",
"todomvc-app-css": "^2.0.0",
"todomvc-common": "^1.0.0"
},
"devDependencies": {
"esbuild": "^0.17.19"
},
"keywords": [
"htmx",
"todo",
"example",
"service worker",
"offline first"
],
"author": "Jon Nyman",
"license": "ISC"
}