-
Notifications
You must be signed in to change notification settings - Fork 48
Expand file tree
/
Copy pathpackage.json
More file actions
69 lines (69 loc) · 2.84 KB
/
package.json
File metadata and controls
69 lines (69 loc) · 2.84 KB
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
{
"name": "idiomorph",
"description": "an id-based DOM morphing library",
"keywords": [
"HTML"
],
"version": "0.7.4",
"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"
}
}