forked from Brooooooklyn/canvas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
126 lines (126 loc) · 3.08 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": "@napi-rs/canvas",
"version": "0.1.20",
"description": "Canvas for Node.js with skia backend",
"main": "index.js",
"repository": "https://github.com/Brooooooklyn/canvas.git",
"license": "MIT",
"keywords": [
"napi-rs",
"NAPI",
"N-API",
"Rust",
"node-addon",
"node-addon-api",
"canvas",
"image",
"pdf",
"svg",
"skia"
],
"files": [
"index.d.ts",
"index.js",
"geometry.js",
"js-binding.js"
],
"napi": {
"name": "skia",
"triples": {
"defaults": true,
"additional": [
"armv7-unknown-linux-gnueabihf",
"x86_64-unknown-linux-musl",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-apple-darwin",
"aarch64-linux-android"
]
}
},
"engines": {
"node": ">= 10"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"artifacts": "napi artifacts",
"bench": "node -r @swc-node/register benchmark/bench.ts",
"build": "napi build --platform --release",
"build:debug": "napi build --platform",
"format": "run-p format:source format:rs",
"format:rs": "cargo fmt",
"format:source": "prettier . -w",
"lint": "eslint . -c ./.eslintrc.yml",
"prepublishOnly": "pinst --disable && napi prepublish -t npm",
"postpublish": "pinst --enable",
"test": "ava",
"version": "napi version && conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md"
},
"devDependencies": {
"@jimp/core": "^0.16.1",
"@jimp/custom": "^0.16.1",
"@jimp/jpeg": "^0.16.1",
"@jimp/png": "^0.16.1",
"@napi-rs/cli": "^2.4.2",
"@octokit/rest": "^18.12.0",
"@swc-node/register": "^1.4.2",
"@types/lodash": "^4.14.178",
"@typescript-eslint/eslint-plugin": "^5.10.2",
"@typescript-eslint/parser": "^5.10.2",
"ava": "^4.0.1",
"benny": "^3.7.1",
"canvas": "^2.9.0",
"canvaskit-wasm": "^0.33.0",
"colorette": "^2.0.16",
"conventional-changelog-cli": "^2.2.2",
"echarts": "^5.3.0",
"eslint": "^8.8.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-sonarjs": "^0.12.0",
"husky": "^7.0.4",
"lint-staged": "^12.3.3",
"lodash": "^4.17.21",
"npm-run-all": "^4.1.5",
"pinst": "^3.0.0",
"png.js": "^0.2.1",
"prettier": "^2.5.1",
"putasset": "^5.0.3",
"skia-canvas": "^0.9.28",
"typescript": "^4.5.5"
},
"lint-staged": {
"*.@(js|ts|tsx|yml|yaml|md|json)": [
"prettier --write"
],
"*.@(js|ts|tsx)": [
"eslint -c .eslintrc.yml --fix"
]
},
"ava": {
"require": [
"@swc-node/register"
],
"extensions": [
"ts"
],
"workerThreads": false,
"cache": false,
"timeout": "3m",
"environmentVariables": {
"SWC_NODE_PROJECT": "./tsconfig.json",
"NODE_ENV": "ava"
}
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always"
}
}