-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
92 lines (92 loc) · 3.44 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
{
"name": "chafa-wasm",
"version": "0.2.3",
"description": "Chafa WebAssembly module to convert images to text",
"keywords": [
"chafa",
"images",
"ansi",
"ansi-art",
"ascii",
"ascii-art",
"unicode",
"unicode-art",
"terminal",
"terminal-graphics"
],
"author": "Héctor Molinero Fernández <hector@molinero.dev>",
"license": "LGPL-3.0",
"homepage": "https://github.com/hectorm/chafa-wasm",
"repository": {
"type": "git",
"url": "https://github.com/hectorm/chafa-wasm.git"
},
"bugs": {
"url": "https://github.com/hectorm/chafa-wasm/issues"
},
"funding": "https://github.com/hectorm/chafa-wasm?sponsor=1",
"type": "module",
"main": "./dist/chafa.js",
"browser": "./dist/chafa.js",
"exports": {
".": {
"types": "./dist/chafa.d.ts",
"default": "./dist/chafa.js"
}
},
"files": [
"dist/"
],
"scripts": {
"all": "run-s build docs lint test",
"build": "run-s build:wasm build:types",
"build:wasm": "run-s build:wasm:clean build:wasm:docker",
"build:wasm:clean": "node --import=fs -e \"['./dist/chafa.js', './dist/chafa.wasm'].map(f => fs.rmSync(f, { force: true }))\"",
"build:wasm:docker": "docker buildx build ./ --file ./Dockerfile --output type=local,dest=./dist/",
"build:native": "run-s build:native:clean build:native:docker",
"build:native:clean": "node --import=fs -e \"fs.rmSync('./dist/chafa', { force: true })\"",
"build:native:docker": "docker buildx build ./ --file ./Dockerfile.native --output type=local,dest=./dist/",
"build:types": "run-s build:types:clean build:types:copy",
"build:types:clean": "node --import=fs -e \"fs.rmSync('./dist/chafa.d.ts', { force: true })\"",
"build:types:copy": "node --import=fs -e \"fs.cpSync('./src/chafa.d.ts', './dist/chafa.d.ts')\"",
"docs": "run-s docs:clean docs:build",
"docs:clean": "node --import=fs -e \"fs.rmSync('./docs/', { force: true, recursive: true })\"",
"docs:build": "typedoc ./dist/chafa.d.ts --tsconfig ./tsconfig.docs.json --plugin typedoc-plugin-markdown --readme none --disableSources --treatWarningsAsErrors --out ./docs/",
"lint": "run-s lint:*",
"lint:eslint": "eslint --max-warnings 0 ./",
"lint:prettier": "prettier --list-different ./",
"lint:tsc": "tsc --noEmit",
"format": "run-s format:*",
"format:eslint": "eslint --fix ./",
"format:prettier": "prettier --write ./",
"test": "run-s test:*",
"test:node": "node ./test/node.test.js",
"test:deno": "deno test --no-lock --allow-read=./dist/ ./test/deno.test.js",
"test:bun": "bun test --cwd ./test/ bun",
"test:browser": "run-s test:browser:*",
"test:browser:chromium": "node ./test/browser.test.js chromium",
"test:browser:firefox": "node ./test/browser.test.js firefox",
"test:browser:webkit": "node ./test/browser.test.js webkit",
"version": "run-s all version:git",
"version:git": "git add -A ./docs/"
},
"devDependencies": {
"@eslint/js": "~9.14.0",
"@types/bun": "~1.1.13",
"@types/eslint": "~9.6.1",
"@types/eslint-config-prettier": "~6.11.3",
"@types/eslint__js": "~8.42.3",
"@types/node": "~22.9.0",
"chai": "~5.1.2",
"eslint": "~9.14.0",
"eslint-config-prettier": "~9.1.0",
"globals": "~15.12.0",
"mocha": "~10.8.2",
"npm-run-all2": "~7.0.1",
"playwright": "~1.48.2",
"prettier": "~3.3.3",
"typedoc": "~0.26.11",
"typedoc-plugin-markdown": "~4.2.10",
"typescript": "~5.6.3"
}
}