-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathpackage.json
More file actions
83 lines (83 loc) · 3.08 KB
/
Copy pathpackage.json
File metadata and controls
83 lines (83 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
{
"author": "Luis Blanco <luisblanco1337@gmail.com>",
"name": "@node-3d/webgl",
"version": "6.0.0",
"description": "WebGL for Node.js",
"license": "MIT",
"main": "dist/index.js",
"keywords": [
"addon",
"webgl",
"opengl",
"gl",
"graphics",
"window",
"c++",
"bindings",
"native",
"gyp"
],
"files": [
"dist",
"install.js",
"LICENSE",
"package.json",
"tsconfig.json"
],
"engines": {
"node": ">=24.13.0",
"npm": ">=11.6.2"
},
"scripts": {
"postinstall": "node install.js",
"build:rebuild": "cd src && node-gyp rebuild -j max --silent && node -e \"import('@node-3d/addon-tools').then((m) => m.cpbin('webgl'))\"",
"build:compile": "cd src && node-gyp build -j max --silent && node -e \"import('@node-3d/addon-tools').then((m) => m.cpbin('webgl'))\"",
"test:watch": "node --test --watch \"ts/**/*.test.ts\"",
"test:ci": "node --test \"ts/**/*.test.ts\"",
"lint:all": "npm run lint:gypi && npm run lint:ts && npm run lint:oxlint",
"lint:gypi": "node -e \"import('@node-3d/addon-tools').then((m) => m.checkGypi())\"",
"lint:oxlint": "oxlint .",
"build:ci": "rslib build",
"build:watch": "rslib build --watch",
"lint:ts": "tsc -p tsconfig.json --noEmit",
"prepack": "npm run build:ci",
"format:src": "node -e \"import('@node-3d/addon-tools').then((m) => m.cpclangformat())\" && node -e \"const { readdirSync } = require('node:fs'); const { execFileSync } = require('node:child_process'); const { clangFormatPath } = require('clang-format-node'); const files = readdirSync('src/cpp').filter((file) => /\\.(?:cpp|hpp)$/.test(file)).map((file) => 'src/cpp/' + file); execFileSync(clangFormatPath, ['-i', ...files], { stdio: 'inherit' });\"",
"format:src:ci": "node -e \"import('@node-3d/addon-tools').then((m) => m.cpclangformat())\" && node -e \"const { readdirSync } = require('node:fs'); const { execFileSync } = require('node:child_process'); const { clangFormatPath } = require('clang-format-node'); const files = readdirSync('src/cpp').filter((file) => /\\.(?:cpp|hpp)$/.test(file)).map((file) => 'src/cpp/' + file); execFileSync(clangFormatPath, ['--dry-run', '--Werror', ...files], { stdio: 'inherit' });\"",
"format:ts": "oxfmt -c ./oxfmt.config.ts --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx}\"",
"format:ts:ci": "oxfmt -c ./oxfmt.config.ts --check --no-error-on-unmatched-pattern \"**/*.{js,jsx,ts,tsx}\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/node-3d/webgl.git"
},
"dependencies": {
"@node-3d/addon-tools": "~10.0.1",
"@node-3d/deps-opengl": "~8.0.0",
"@node-3d/segfault": "~4.0.0"
},
"devDependencies": {
"@rslib/core": "0.23.2",
"@types/node": "24.13.2",
"node-addon-api": "8.9.0",
"oxlint": "1.72.0",
"tslib": "2.8.1",
"oxfmt": "0.57.0",
"typescript": "7.0.2",
"clang-format-node": "3.0.7"
},
"type": "module",
"types": "dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"bugs": {
"url": "https://github.com/node-3d/node-3d/issues"
},
"homepage": "https://github.com/node-3d/node-3d#readme",
"publishConfig": {
"access": "public"
}
}