-
Notifications
You must be signed in to change notification settings - Fork 5
/
package.json
107 lines (107 loc) · 2.93 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
{
"name": "mugl",
"version": "0.3.0",
"description": "WebGPU and WebGL Micro 3D Graphics Library for JavaScript and WebAssembly",
"type": "module",
"sideEffects": false,
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/mugl.min.js"
},
"./assembly": {
"import": "./assembly"
},
"./wasm": {
"import": "./wasm.js",
"require": "./dist/wasm.min.js"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/andykswong/mugl.git"
},
"author": "Andy K.S. Wong <[email protected]>",
"license": "MIT",
"homepage": "https://github.com/andykswong/mugl",
"bugs": {
"url": "https://github.com/andykswong/mugl/issues"
},
"keywords": [
"3d",
"assemblyscript",
"expo",
"gl",
"graphics",
"opengl",
"react-native",
"typescript",
"webgl",
"webgl2",
"webgpu",
"wasm",
"webassembly"
],
"files": [
"./assembly",
"./dist",
"./wasm.js",
"./wasm.d.ts"
],
"scripts": {
"prepublishOnly": "npm run clean && npm run build && npm test",
"copy-gpu-types": "copyfiles -u 1 src/gpu/{gl-const,gpu,type,utils}.ts assembly",
"clean": "rimraf coverage docs dist **/__tests__/**/*.spec.{map,wat}",
"prebuild": "npm run copy-gpu-types && npm run lint",
"build": "npm run build:ts && npm run build:as",
"postbuild": "npm run webpack",
"lint": "eslint src --ext .ts",
"postlint": "npm run tsc:lint",
"build:as": "asc --target release",
"build:as-debug": "asc --target debug",
"build:ts": "npm run tsc && npm run babel",
"babel": "babel src -d dist -x '.js,.mjs,.ts' --out-file-extension .js",
"tsc": "tsc --project tsconfig.build.json --emitDeclarationOnly",
"posttsc": "copyfiles -u 1 src/**/*{.d.ts,.js,.mjs} dist",
"tsc:lint": "tsc --noEmit",
"webpack": "webpack",
"test": "cross-env NODE_OPTIONS=--experimental-vm-modules jest",
"doc": "typedoc",
"postdoc": "copyfiles screenshots/* docs/"
},
"devDependencies": {
"@babel/cli": "^7.20",
"@babel/core": "^7.20",
"@babel/preset-env": "^7.20",
"@babel/preset-typescript": "^7.20",
"@types/jest": "^29.5",
"@types/node": "^20.0",
"@types/webgl-ext": "^0.0",
"@typescript-eslint/eslint-plugin": "^5.50",
"@typescript-eslint/parser": "^5.50",
"@webgpu/types": "^0.1",
"assemblyscript": "^0.27",
"babel-jest": "^29.5",
"babel-loader": "^9.1",
"babel-plugin-add-import-extension": "^1.6",
"copyfiles": "^2.4",
"cross-env": "^7.0",
"eslint": "^8.40",
"jest": "^29.5",
"rimraf": "^5.0",
"source-map-loader": "^4.0",
"typedoc": "^0.24",
"typescript": "^5.0",
"webpack": "^5.80",
"webpack-cli": "^5.0",
"webpack-merge": "^5.0"
},
"workspaces": [
"./",
"./packages/examples",
"./packages/examples-native",
"./packages/gltf-viewer"
]
}