mirror of
https://github.com/bigskysoftware/htmx.git
synced 2025-12-30 21:31:49 +00:00
The build system for esm is not replacing __ with # for some async prefixed functions causing the esm version to not run correctly
56 lines
2.2 KiB
JSON
56 lines
2.2 KiB
JSON
{
|
|
"name": "htmx.org",
|
|
"version": "4.0.0-alpha1",
|
|
"description": "A hypermedia-oriented JavaScript library",
|
|
"main": "dist/htmx.js",
|
|
"module": "dist/htmx.esm.js",
|
|
"files": [
|
|
"LICENSE",
|
|
"README.md",
|
|
"dist/*.js",
|
|
"dist/ext/*.js",
|
|
"dist/*.js.br",
|
|
"src/editors/jetbrains/htmx.web-types.json"
|
|
],
|
|
"scripts": {
|
|
"build": "npm run build:iife && npm run build:esm && npm run build:minify && 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 '' >> dist/htmx.esm.js && echo 'export 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:compress": "brotli-cli compress dist/*.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",
|
|
|
|
"publish": "npm publish --tag next --dry-run",
|
|
"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"
|
|
},
|
|
"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": {
|
|
"@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"
|
|
}
|
|
}
|