{ "name": "htmx.org", "version": "4.0.0-alpha5", "description": "A hypermedia-oriented JavaScript library", "main": "dist/htmx.js", "module": "dist/htmx.esm.js", "types": "dist/htmx.d.ts", "files": [ "LICENSE", "README.md", "dist/*.js", "dist/*.map", "dist/*.d.ts", "dist/ext/*.js", "dist/ext/*.map", "dist/editors" ], "scripts": { "build": "npm run build:iife && npm run build:esm && npm run build:minify && npm run build:ext && npm run build:editors && npm run build:compress", "build:iife": "sed 's/__/#/g' src/htmx.js > dist/htmx.js", "build:esm": "sed 's/__/#/g' src/htmx.js > dist/htmx.esm.js && echo '\\nif (typeof window !== \"undefined\") window.htmx = htmx;\\nexport default htmx;' >> 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:compress": "brotli-cli compress dist/*.js dist/ext/*.js", "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": "bash scripts/www.sh", "site": "npm run site:css & npm run site:serve", "site:css": "cd www && npx @tailwindcss/cli -i ./static/css/input.css -o ./static/css/output.css --watch", "site:serve": "cd www && npx zola-bin serve --interface 0.0.0.0 --port 1111 --open", "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.19", "@web/test-runner": "^0.20.2", "@web/test-runner-playwright": "^0.11.0", "brotli-cli": "^2.1.1", "chai": "^4.5.0", "mocha": "^11.7.4", "terser": "^5.36.0", "ws": "^8.18.3" } }