-
Notifications
You must be signed in to change notification settings - Fork 4
/
package.json
126 lines (126 loc) · 4.63 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "swipl-wasm",
"version": "3.1.0",
"contributors": [
"Raivo Laanemets",
"Jesse Wright",
"Jan Wielemaker"
],
"repository": {
"type": "git",
"url": "https://github.com/SWI-Prolog/npm-swipl-wasm.git"
},
"bugs": {
"url": "https://github.com/SWI-Prolog/npm-swipl-wasm/issues"
},
"homepage": "https://github.com/SWI-Prolog/npm-swipl-wasm#README",
"license": "BSD-2-Clause",
"type": "commonjs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"devDependencies": {
"@octokit/rest": "^21.0.2",
"@qiwi/semantic-release-gh-pages-plugin": "^5.2.12",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.1",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"eslint": "^8.57.1",
"http-server": "^14.1.1",
"mocha": "^11.0.1",
"node-static": "^0.7.11",
"npm-run-all": "^4.1.5",
"puppeteer": "^23.9.0",
"semantic-release": "^24.2.0",
"ts-node": "^10.9.2",
"tsx": "^4.19.2",
"typescript": "^5.7.2",
"webpack": "^5.96.1",
"webpack-cli": "^5.1.4"
},
"files": [
"dist/**/*.js",
"dist/**/*.d.ts",
"dist/**/*.data",
"dist/**/*.wasm"
],
"scripts": {
"build:wasm-docker:build": "docker build --build-arg SWIPL_VERSION=$npm_package_config_swipl_version --build-arg SWIPL_COMMIT=$npm_package_config_swipl_commit --build-arg EMSDK_VERSION=$npm_package_config_emsdk_version --build-arg ZLIB_VERSION=$npm_package_config_zlib_version --build-arg PCRE2_NAME=$npm_package_config_pcre2_name -t swipl-wasm-image docker",
"build:wasm-docker:create": "docker create --name swipl-wasm swipl-wasm-image",
"build:wasm-docker:remove": "docker rm swipl-wasm",
"build:wasm-docker:extract:data": "docker cp swipl-wasm:/swipl-devel/build.wasm/src/swipl-web.data dist/swipl/swipl-web.data",
"build:wasm-docker:extract:wasm": "docker cp swipl-wasm:/swipl-devel/build.wasm/src/swipl-web.wasm dist/swipl/swipl-web.wasm",
"build:wasm-docker:extract:web": "docker cp swipl-wasm:/swipl-devel/build.wasm/src/swipl-web.js dist/swipl/swipl-web.js",
"build:wasm-docker:extract:bundle": "docker cp swipl-wasm:/swipl-devel/build.wasm/src/swipl-bundle.js dist/swipl/swipl-bundle.js",
"build:wasm-docker:extract:bundleNoData": "docker cp swipl-wasm:/swipl-devel/build.wasm/src/swipl-bundle-no-data.js dist/swipl/swipl-bundle-no-data.js",
"build:wasm-docker:extract:node": "docker cp swipl-wasm:/swipl-devel/build.wasm/src/swipl-web.js dist/swipl/swipl.js",
"build:wasm-docker:extract": "run-s build:wasm-docker:extract:*",
"build:wasm-docker": "run-s build:wasm-docker:build build:wasm-docker:create build:wasm-docker:extract build:wasm-docker:remove",
"build": "run-s build:wasm-docker && tsc",
"tsc": "tsc",
"test:serve-http": "http-server . -c-1",
"test:node": "mocha tests/node.js --timeout 50000",
"test:browser": "mocha tests/browser.js --timeout 50000",
"test:minimal": "cd examples/generation && npm ci && npm run build:image && npm run test",
"test": "run-s test:node test:browser test:minimal",
"lint:types": "eslint dist --ext .ts",
"lint:tests": "eslint tests --ext .js",
"lint": "run-s lint:types lint:tests",
"update:dep:emsdk": "tsx scripts/get-latest-emsdk.mts",
"update:dep:pcre2": "tsx scripts/get-latest-pcre2.mts",
"update:dep:swipl": "tsx scripts/get-latest-swipl.mts",
"update:dep:zlib": "tsx scripts/get-latest-zlib.mts",
"update:dep": "run-s update:dep:*",
"bundle:webpack": "webpack --config webpack.config.js",
"bundle:latest": "ts-node scripts/post-webpack"
},
"config": {
"swipl": {
"version": "9.3.16",
"commit": "a3601d6bc2c903ad0b456c847e8ec426f61d6ded",
"name": "V9.3.16"
},
"emsdk": {
"version": "3.1.73",
"commit": "6abe5123c34a7751a2d5b679e856b2591ba04145",
"name": "3.1.73"
},
"zlib": {
"version": "1.3.1"
},
"pcre2": {
"version": "10.44.0",
"commit": "6ae58beca071f13ccfed31d03b3f479ab520639b",
"name": "pcre2-10.44"
}
},
"bin": {
"swipl-generate": "dist/bin/index.js"
},
"release": {
"branches": [
"master"
],
"verifyConditions": [
"@semantic-release/npm",
"@semantic-release/github",
"@qiwi/semantic-release-gh-pages-plugin"
],
"publish": [
"@semantic-release/npm",
"@semantic-release/github",
[
"@qiwi/semantic-release-gh-pages-plugin",
{
"msg": "add version <%= nextRelease.gitTag %>",
"branch": "pages",
"add": true,
"src": "bundle"
}
]
]
},
"dependencies": {
"@types/emscripten": "^1.39.13"
}
}