-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
84 lines (84 loc) · 3.08 KB
/
package.json
File metadata and controls
84 lines (84 loc) · 3.08 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
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"name": "q2",
"version": "0.1.0",
"description": "Quaternary Quantization – LFM2.5 ONNX chat interface with embedding extraction",
"type": "module",
"engines": {
"bun": ">=1.3.10"
},
"scripts": {
"prepare": "bun x husky install",
"lint": "eslint --no-inline-config --max-warnings 0 --fix src test --ext .js,.ts,.html,.yml,.yaml && eslint --no-inline-config --max-warnings 0 src test --ext .js,.ts,.html,.yml,.yaml",
"lint:css": "stylelint --max-warnings 0 --allow-empty-input --fix \"**/*.{css,html}\" && stylelint --max-warnings 0 --allow-empty-input \"**/*.{css,html}\"",
"lint:md": "bun scripts/lint-md.mjs",
"check": "bun run lint && bun run lint:md && bun run typecheck",
"prebuild": "bun run check && bun run lint:css",
"build:wat": "wat2wasm src/q2.wat -o src/q2.wasm && bun run embed-wat",
"embed-wat": "bun ./scripts/embed-wat.mjs",
"generate-screenshots": "bun ./scripts/generate-screenshots.mjs",
"build": "bun run check && bun build --outdir dist --target browser --sourcemap=linked src/app.ts src/worker.ts",
"postbuild": "bun ./scripts/copy-assets.mjs",
"predev": "bun run check",
"dev": "bun build --watch --outdir dist --target browser --sourcemap=linked src/app.ts src/worker.ts",
"typecheck": "bun x tsc --noEmit",
"pretest": "bun run check",
"test": "vitest run --coverage",
"pretest:e2e": "bun run build",
"test:e2e": "playwright test",
"test:e2e:local": "bash e2e/run-local.sh",
"test:browser": "vitest run --browser",
"coverage": "vitest run --coverage",
"deploy": "bun run build"
},
"lint-staged": {
"*.{js,ts}": [
"sh -c \"bun x eslint --no-inline-config --max-warnings 0 --fix --ignore-pattern 'gh-pages/**' --ignore-pattern 'dist/**'\""
],
"*.{html,yml,yaml}": [
"sh -c \"bun x eslint --no-inline-config --max-warnings 0 --fix --ignore-pattern 'gh-pages/**' --ignore-pattern 'dist/**'\""
],
"*.{css,html}": [
"sh -c \"bun x stylelint --max-warnings 0 --fix --ignore-pattern 'gh-pages/**' --ignore-pattern 'dist/**'\""
],
"*.md": [
"bun scripts/lint-md.mjs"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/devlux76/q2.git"
},
"keywords": [
"llm",
"onnx",
"transformers",
"wasm",
"quaternary-quantization"
],
"license": "MIT",
"devDependencies": {
"@eslint/eslintrc": "^3.3.5",
"@html-eslint/eslint-plugin": "latest",
"@html-eslint/parser": "latest",
"@playwright/test": "^1.58.2",
"@types/node": "latest",
"@typescript-eslint/eslint-plugin": "latest",
"@typescript-eslint/parser": "latest",
"@vitest/browser-playwright": "latest",
"@vitest/coverage-istanbul": "latest",
"eslint": "latest",
"eslint-plugin-yml": "latest",
"husky": "^9.1.7",
"jsdom": "latest",
"lint-staged": "^16.4.0",
"playwright": "latest",
"postcss-html": "^1.8.1",
"stylelint": "latest",
"stylelint-config-standard": "latest",
"typescript": "latest",
"vitest": "latest"
},
"dependencies": {
"@huggingface/transformers": "^4.0.0-next.8"
}
}