UNPKG

idiomorph

Version:
70 lines (69 loc) 2.91 kB
{ "name": "idiomorph", "description": "an id-based DOM morphing library", "keywords": [ "HTML" ], "version": "0.7.3", "homepage": "https://github.com/bigskysoftware/idiomorph", "bugs": { "url": "https://github.com/bigskysoftware/idiomorph/issues" }, "license": "0BSD", "files": [ "LICENSE", "README.md", "dist/*.js" ], "main": "dist/idiomorph.js", "module": "dist/idiomorph.esm.js", "unpkg": "dist/idiomorph.min.js", "exports": { ".": { "require": "./dist/idiomorph.cjs.js", "import": "./dist/idiomorph.esm.js" }, "./htmx": "./dist/idiomorph-ext.esm.js", "./dist/*": "./dist/*" }, "scripts": { "test": "web-test-runner", "test:debug": "web-test-runner --manual --open", "test:chrome": "web-test-runner --playwright --browsers chromium", "test:firefox": "web-test-runner --concurrency 1 --playwright --browsers firefox", "test:webkit": "web-test-runner --playwright --browsers webkit", "test:all": "web-test-runner --concurrency 1 --playwright --browsers chromium firefox webkit", "test:ci": "npm run typecheck && npm run format:check && npm run test:all -- --fail-only && node test/lib/ensure-full-coverage.js", "test:coverage": "npm run test:chrome && node test/lib/ensure-full-coverage.js", "perf": "node perf/runner.js", "amd": "(echo \"define(() => {\n\" && cat src/idiomorph.js && echo \"\nreturn Idiomorph});\") > dist/idiomorph.amd.js", "cjs": "(cat src/idiomorph.js && echo \"\nmodule.exports = Idiomorph;\") > dist/idiomorph.cjs.js", "esm": "(cat src/idiomorph.js && echo \"\nexport {Idiomorph};\") > dist/idiomorph.esm.js && (echo \"import htmx from \\\"htmx.org\\\";\n\" && cat dist/idiomorph-ext.js && echo \"\nexport {Idiomorph};\") > dist/idiomorph-ext.esm.js", "gen-modules": "npm run-script amd && npm run-script cjs && npm run-script esm", "dist": "cp -r src/* dist/ && cat src/idiomorph.js src/idiomorph-htmx.js > dist/idiomorph-ext.js && npm run-script gen-modules && npm run-script uglify && gzip -9 -k -f dist/idiomorph.min.js > dist/idiomorph.min.js.gz && exit", "uglify": "uglifyjs -m eval -o dist/idiomorph.min.js dist/idiomorph.js && uglifyjs -m eval -o dist/idiomorph-ext.min.js dist/idiomorph-ext.js", "format": "prettier --write .", "format:check": "prettier --check .", "typecheck": "tsc" }, "repository": { "type": "git", "url": "git+https://github.com/bigskysoftware/idiomorph.git" }, "devDependencies": { "@web/test-runner": "^0.20.0", "@web/test-runner-playwright": "^0.11.0", "chai": "^4.3.6", "chai-dom": "^1.11.0", "chromedriver": "latest", "fs-extra": "^9.1.0", "htmx.org": "1.9.9", "lcov-parse": "^1.0.0", "mocha": "^11.0.1", "prettier": "^3.4.2", "sinon": "^9.2.4", "tachometer": "^0.7.1", "typescript": "^5.3.3", "uglify-js": "^3.15.0" } }