Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
71 lines (69 loc) · 2.5 KB
/
Copy pathpackage.json
File metadata and controls
71 lines (69 loc) · 2.5 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
70
71
{
"name": "idiomorph",
"description": "an id-based DOM morphing library",
"keywords": [
"HTML"
],
"version": "0.8.0",
"type": "module",
"homepage": "https://github.com/bigskysoftware/idiomorph",
"bugs": {
"url": "https://github.com/bigskysoftware/idiomorph/issues"
},
"license": "0BSD",
"files": [
"LICENSE",
"README.md",
"dist/*.js",
"dist/*.d.ts"
],
"module": "dist/idiomorph.esm.js",
"types": "dist/idiomorph.d.ts",
"unpkg": "dist/idiomorph.min.js",
"exports": {
".": {
"types": "./dist/idiomorph.d.ts",
"import": "./dist/idiomorph.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": "playwright install chromium && node perf/runner.js",
"dist": "cp -r src/* dist/ && npm run-script esm && npm run-script types && npm run-script uglify && npm run-script gzip && exit",
"esm": "(cat src/idiomorph.js && echo \"\nexport {Idiomorph};\") > dist/idiomorph.esm.js",
"types": "tsc dist/idiomorph.esm.js --declaration --emitDeclarationOnly --allowJs --skipLibCheck --outDir dist && mv dist/idiomorph.esm.d.ts dist/idiomorph.d.ts",
"uglify": "uglifyjs -m eval -o dist/idiomorph.min.js dist/idiomorph.js",
"gzip": "gzip -9 -k -f dist/idiomorph.min.js > dist/idiomorph.min.js.gz",
"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",
"lcov-parse": "^1.0.0",
"mocha": "^11.0.1",
"playwright": "^1.62.1",
"prettier": "^3.4.2",
"sinon": "^9.2.4",
"tachometer": "^0.7.1",
"typescript": "^5.3.3",
"uglify-js": "^3.15.0"
}
}