-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
99 lines (99 loc) · 3.36 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
{
"name": "text-to-canvas",
"version": "1.1.2",
"description": "Render multiline plain or rich text into textboxes on HTML Canvas with automatic line wrapping",
"repository": {
"type": "git",
"url": "git+https://github.com/stefcameron/text-to-canvas.git"
},
"author": "Stefan Cameron <[email protected]> (https://stefancameron.com/)",
"contributors": [
"Geon George <[email protected]> (https://geongeorge.com/)"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/stefcameron/text-to-canvas/issues"
},
"homepage": "https://stefcameron.github.io/text-to-canvas/",
"keywords": [
"javascript",
"library",
"html",
"canvas",
"richtext",
"multiline",
"wrapping",
"es6",
"node"
],
"sideEffects": false,
"files": [
"dist",
"LICENSE",
"README.md",
"CHANGELOG.md",
"SECURITY.md"
],
"main": "./dist/text-to-canvas.min.js",
"types": "./dist/types/index.d.ts",
"exports": {
"types": "./dist/types/index.d.ts",
"node": {
"import": "./dist/text-to-canvas.mjs",
"require": "./dist/text-to-canvas.cjs"
},
"default": {
"import": "./dist/text-to-canvas.esm.min.js",
"require": "./dist/text-to-canvas.min.js",
"browser": "./dist/text-to-canvas.umd.min.js"
}
},
"engines": {
"node": ">=20.11.1",
"npm": ">=10"
},
"scripts": {
"build": "rm -rf ./dist && npm run build:browser && npm run build:node && npm run build:types",
"build:browser": "vite build --config build/vite.config.esm.mts && vite build --config build/vite.config.cjs.mts",
"build:node": "vite build --config build/vite.config.node.mts",
"build:types": "tsc src/lib/index.ts --declaration --emitDeclarationOnly --outDir dist/types",
"ci:build": "npm run build && npm run docs",
"ci:lint": "npm run lint",
"ci:test": "npm run test:unit && npm run demo:node",
"demo:node": "vite-node ./src/demos/node-demo.mts",
"docs": "vite build --config build/vite.config.docs.mts && prettier --write \"src/docs/*.d.ts\"",
"fmt": "prettier --write \"{*,build/**/*,src/**/*}.+(js|cjs|mjs|ts|cts|mts|css|yml|json|vue)\"",
"fmt:check": "prettier --check \"{*,build/**/*,src/**/*}.+(js|cjs|mjs|ts|cts|mts|css|yml|json|vue)\"",
"lint": "npm run lint:code && npm run lint:types && npm run fmt:check",
"lint:code": "eslint \"{*,build/**/*,src/**/*}.+(js|mjs|ts|mts|vue)\"",
"lint:types": "tsc",
"prepare": "npm run build",
"prepublishOnly": "npm run lint && npm run test:unit && npm run build",
"start": "vite serve --config build/vite.config.docs.mts",
"test": "npm run lint && npm run test:unit && npm run build",
"test:unit": "echo 'TODO: Add unit tests...'"
},
"devDependencies": {
"@types/lodash": "^4.17.13",
"@types/node": "^22.9.0",
"@types/offscreencanvas": "^2019.7.3",
"@typescript-eslint/eslint-plugin": "^8.14.0",
"@typescript-eslint/parser": "^8.14.0",
"@vitejs/plugin-vue": "^5.2.0",
"element-plus": "^2.8.7",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-vue": "^9.31.0",
"lodash": "^4.17.21",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"unplugin-auto-import": "^0.18.3",
"unplugin-vue-components": "^0.27.4",
"vite": "^5.4.11",
"vite-node": "^2.1.4",
"vue": "^3.5.12"
},
"optionalDependencies": {
"canvas": "^2.11.2"
}
}