-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
71 lines (71 loc) · 2.79 KB
/
package.json
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": "libxml2-wasm",
"version": "0.6.0-dev",
"description": "WebAssembly-based libxml2 javascript wrapper",
"scripts": {
"clean": "rm -rf lib out",
"init": "mkdir -p out && mkdir -p lib",
"config": "cd out && emconfigure ../libxml2/autogen.sh --without-python --without-http --without-sax1 --without-modules --without-html --without-threads --without-zlib --without-lzma --disable-shared --enable-static",
"compile": "cd out && emmake make",
"bind": "cd out && emcc -L.libs -lxml2 -o libxml2raw.cjs --no-entry -s MODULARIZE -s ALLOW_MEMORY_GROWTH -s ALLOW_TABLE_GROWTH -s EXPORTED_RUNTIME_METHODS=@../binding/exported-runtime-functions.txt -s EXPORTED_FUNCTIONS=@../binding/exported-functions.txt -s SINGLE_FILE",
"dist": "cp out/libxml2raw.* src/libxml2raw.* lib",
"libxml": "npm run init && npm run config && npm run compile",
"link": "npm run bind && npm run dist",
"wasm": "npm run clean && npm run libxml && npm run link",
"unit": "mocha --v8-expose-gc",
"integ": "cross-env TS_NODE_PROJECT=tsconfig.integ.json mocha --v8-expose-gc test/crossplatform",
"test": "npm run cov && npm run lint",
"cov": "c8 npm run unit",
"build": "npm run wasm && tsc -p tsconfig.prod.json --declaration",
"lint": "eslint 'src/**' 'test/**/*.mts'",
"docwatch": "typedoc --watch",
"doc": "typedoc",
"watch": "tsc -p tsconfig.prod.json --declaration --watch"
},
"repository": {
"type": "git",
"url": "[email protected]:jameslan/libxml2-wasm.git"
},
"main": "lib/index.mjs",
"homepage": "https://jameslan.github.io/libxml2-wasm/",
"author": "James Lan",
"license": "MIT",
"files": [
"lib/*"
],
"devDependencies": {
"@types/chai": "^5.0.1",
"@types/chai-sorted": "^0.2.3",
"@types/mocha": "^10.0.10",
"@types/node": "^20.4.5",
"@types/sinon": "^17.0.3",
"@types/sinon-chai": "^4.0.0",
"c8": "^10.1.3",
"chai": "^5.1.2",
"chai-sorted": "^0.2.0",
"cross-env": "^7.0.3",
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-chai-friendly": "^1.0.1",
"eslint-plugin-import": "^2.31.0",
"markdown-it-footnote": "^4.0.0",
"mocha": "^11.0.1",
"sinon": "^19.0.2",
"sinon-chai": "^4.0.0",
"ts-node": "^10.9.2",
"ts-paths-esm-loader": "^1.4.3",
"typedoc": "^0.27.6",
"typescript": "^5.3.3"
},
"keywords": [
"xml",
"xml parser",
"libxml",
"WebAssembly"
],
"engines": {
"node": ">=16"
}
}