-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
package.json
44 lines (44 loc) · 2.2 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
{
"name": "friendly-pow",
"version": "0.2.2",
"description": "Friendly WASM & JS Proof of Work algorithms for CAPTCHA",
"author": "Guido Zuidhof <guido@friendlycaptcha.com>",
"repository": "https://github.com/FriendlyCaptcha/friendly-pow",
"scripts": {
"prebuild": "rimraf dist",
"build:as:untouched": "asc src/entryWasm.ts -b dist/wasm/untouched.wasm -t dist/wasm/untouched.wat -d dist/wasm/untouched.d.ts --runtime stub --sourceMap --debug",
"build:as:optimized": "asc src/entryWasm.ts -b dist/wasm/optimized.wasm -t dist/wasm/optimized.wat -d dist/wasm/optimized.d.ts --runtime stub -O3 --noAssert",
"build:as": "npm run build:as:untouched && npm run build:as:optimized",
"wrap:as:optimized": "wasmwrap --input dist/wasm/optimized.wasm dist --output dist/wasm/optimized.wrap.ts --no-include-decode",
"wrap:as:untouched": "wasmwrap --input dist/wasm/untouched.wasm dist --output dist/wasm/untouched.wrap.ts --no-include-decode",
"wrap:as": "npm run wrap:as:untouched && npm run wrap:as:optimized",
"build:ts": "tsc",
"build:ts:node": "tsc --project tsconfig.common.json",
"build": "npm run prebuild && npm run build:as:optimized && npm run wrap:as:optimized && npm run build:ts && npm run build:ts:node && cp package.json dist/package.json",
"test": "npm run test:as && npm run test:ts",
"test:as": "node ./node_modules/@as-pect/cli/bin/asp --verbose",
"test:ts": "jest --coverage",
"prepublishOnly": "echo \"Error: Don't run 'npm publish' in root. Use 'npm run dist' instead.\" && exit 1",
"dist": "npm i && npm run build && cd dist && npm publish --ignore-scripts",
"lint": "eslint src/**/*.ts test/**/*.ts"
},
"devDependencies": {
"@as-pect/cli": "^4.0.0",
"@babel/cli": "^7.10.4",
"@babel/preset-env": "^7.10.4",
"@types/jest": "^27.0.2",
"@types/node": "^14.0.11",
"@typescript-eslint/eslint-plugin": "^2.21.0",
"@typescript-eslint/parser": "^2.21.0",
"assemblyscript": "^0.16.1",
"eslint": "^8.1.0",
"fast-async": "^6.3.8",
"jest": "^27.3.1",
"rimraf": "^3.0.2",
"rollup": "^2.21.0",
"rollup-plugin-typescript2": "^0.27.1",
"ts-jest": "^27.0.7",
"typescript": "^3.6.3",
"wasmwrap": "^1.0.0"
}
}