mirror of
https://github.com/bigskysoftware/htmx.git
synced 2026-10-29 00:46:38 +08:00
78 lines
4.1 KiB
JSON
78 lines
4.1 KiB
JSON
{
|
|
"name": "htmx.org",
|
|
"version": "4.0.0",
|
|
"description": "A hypermedia-oriented JavaScript library",
|
|
"main": "dist/htmx.js",
|
|
"module": "dist/htmx.esm.js",
|
|
"jsdelivr": "dist/htmx.min.js",
|
|
"unpkg": "dist/htmx.min.js",
|
|
"types": "dist/htmx.d.ts",
|
|
"web-types": "dist/editors/jetbrains/htmx.web-types.json",
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"dist/*.js",
|
|
"dist/*.map",
|
|
"dist/*.d.ts",
|
|
"dist/ext/*.js",
|
|
"dist/ext/*.map",
|
|
"dist/editors",
|
|
"dist/skills",
|
|
"dist/scripts"
|
|
],
|
|
"bin": {
|
|
"upgrade-check": "./dist/scripts/upgrade-check.js"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run build:iife && npm run build:esm && npm run build:minify && npm run build:ext && npm run build:htmax && npm run build:editors && npm run build:skills && npm run build:scripts && npm run build:types && npm run build:compress",
|
|
"build:htmax": "EXTS='hx-sse hx-ws hx-preload hx-browser-indicator hx-download hx-pending hx-targets hx-live hx-history-cache hx-upsert hx-alpine-compat'; { cat dist/htmx.js; printf '\\nhtmx.version += \"-htmax\";\\nhtmx.config.historyCache ??= { disable: true };\\n'; for e in $EXTS; do cat dist/ext/$e.js; done; } > dist/htmax.js && terser --compress --mangle --source-map -o dist/htmax.min.js dist/htmax.js",
|
|
"build:skills": "mkdir -p dist/skills && cp src/skills/*.md dist/skills/",
|
|
"build:iife": "sed -e 's/__proto__/@@PROTOKEY@@/g' -e 's/__/#/g' -e 's/@@PROTOKEY@@/__proto__/g' src/htmx.js > dist/htmx.js",
|
|
"build:esm": "sed -e 's/__proto__/@@PROTOKEY@@/g' -e 's/__/#/g' -e 's/@@PROTOKEY@@/__proto__/g' src/htmx.js > dist/htmx.esm.js && printf '\\nif (typeof window !== \"undefined\") window.htmx = htmx;\\nexport default htmx;\\n' >> dist/htmx.esm.js",
|
|
"build:minify": "terser --compress --mangle --source-map -o dist/htmx.min.js dist/htmx.js && terser --compress --mangle --source-map -o dist/htmx.esm.min.js dist/htmx.esm.js",
|
|
"build:ext": "mkdir -p dist/ext && for file in src/ext/*.js; do name=$(basename \"$file\" .js); cp \"$file\" \"dist/ext/$name.js\" && terser --compress --mangle --source-map -o \"dist/ext/$name.min.js\" \"dist/ext/$name.js\"; done",
|
|
"build:editors": "mkdir -p dist/editors && cp -r src/editors/* dist/editors/",
|
|
"build:scripts": "mkdir -p dist/scripts && cp src/scripts/*.js src/scripts/*.py dist/scripts/",
|
|
"build:types": "cp src/htmx.d.ts dist/htmx.d.ts",
|
|
"build:compress": "brotli-cli compress dist/*.js dist/ext/*.js",
|
|
"check:content": "python3 src/scripts/content/check.py",
|
|
"upgrade-check": "python3 src/scripts/upgrade-check.py",
|
|
"upgrade-check:test": "python3 src/scripts/upgrade-check.py test/manual/upgrade/",
|
|
"benchmark:hx-live": "node test/benchmarks/hx-live.mjs",
|
|
"test": "npm run test:chrome",
|
|
"test:chrome": "web-test-runner --browsers chromium --config test/web-test-runner.config.mjs --playwright",
|
|
"test:firefox": "web-test-runner --browsers firefox --config test/web-test-runner.config.mjs --playwright",
|
|
"test:webkit": "web-test-runner --browsers webkit --config test/web-test-runner.config.mjs --playwright",
|
|
"test:all": "web-test-runner --browsers chromium firefox webkit --config test/web-test-runner.config.mjs --playwright --concurrency 1",
|
|
"test:manual": "node test/manual/server.js",
|
|
"test:manual:ws": "node test/manual/ws-server.js",
|
|
"www:build": "cd www && bun install && bun run build",
|
|
"www:dev": "cd www && bun install && bun run dev",
|
|
"merge": " (echo \"src/** merge=ours\ndist/** merge=ours\ntest/** merge=ours\n\" > .gitattributes && git add .gitattributes && git merge master); git reset HEAD .gitattributes 2>/dev/null; rm .gitattributes 2>/dev/null\n",
|
|
"update-sha": "bash scripts/update-sha.sh"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/bigskysoftware/htmx"
|
|
},
|
|
"keywords": [
|
|
"hypermedia",
|
|
"htmx",
|
|
"ajax",
|
|
"sse"
|
|
],
|
|
"workspaces": [
|
|
"ext/*"
|
|
],
|
|
"author": "Big Sky Software",
|
|
"license": "BSD-0-Clause",
|
|
"devDependencies": {
|
|
"@tailwindcss/typography": "^0.5.20",
|
|
"@web/test-runner": "^1.0.0",
|
|
"@web/test-runner-playwright": "^1.0.0",
|
|
"brotli-cli": "^2.1.1",
|
|
"terser": "^5.49.0",
|
|
"ws": "^8.21.1"
|
|
}
|
|
}
|