Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
344 changes: 290 additions & 54 deletions build.mjs

Large diffs are not rendered by default.

604 changes: 534 additions & 70 deletions package-lock.json

Large diffs are not rendered by default.

32 changes: 19 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,19 +95,22 @@
"@rollup/pluginutils": "5.3.0",
"@swc/core": "1.15.30",
"@types/node": "24.12.2",
"acorn": "8.15.0",
"c8": "10.1.3",
"chai": "6.2.2",
"esbuild": "0.27.4",
"esbuild-visualizer": "0.7.0",
"eslint": "9.39.4",
"fflate": "0.8.2",
"globals": "17.5.0",
"jscc": "1.1.1",
"jsdom": "28.1.0",
"mocha": "11.7.5",
"nise": "6.1.5",
"publint": "0.3.18",
"rollup": "4.60.2",
"rollup-plugin-dts": "6.4.1",
"rollup-plugin-jscc": "2.0.0",
"rollup-plugin-visualizer": "6.0.11",
"serve": "14.2.6",
"sinon": "21.1.2",
"turbo": "2.9.12",
Expand All @@ -122,24 +125,27 @@
"scripts": {
"build": "turbo run build:all",
"build:types": "node build.mjs --type=types",
"build:rel:umd": "node build.mjs --format=umd",
"build:rel:esm": "node build.mjs",
"build:rel:umd": "node build.mjs --type=rel --format=umd",
"build:rel:esm": "node build.mjs --type=rel --format=esm",
"build:dbg:umd": "node build.mjs --type=dbg --format=umd",
"build:dbg:esm": "node build.mjs --type=dbg",
"build:dbg:esm": "node build.mjs --type=dbg --format=esm",
"build:prf:umd": "node build.mjs --type=prf --format=umd",
"build:prf:esm": "node build.mjs --type=prf",
"build:prf:esm": "node build.mjs --type=prf --format=esm",
"build:min:umd": "node build.mjs --type=min --format=umd",
"build:min:esm": "node build.mjs --type=min",
"build:min:esm": "node build.mjs --type=min --format=esm",
"build:treemap": "node build.mjs --treemap",
"build:treenet": "node build.mjs --treenet",
"build:treesun": "node build.mjs --treesun",
"build:treeflame": "node build.mjs --treeflame",
"build:sourcemaps": "node build.mjs --sourcemaps",
"watch": "node build.mjs --watch",
"watch:rel": "node build.mjs --type=rel --watch",
"watch:dbg": "node build.mjs --type=dbg --watch",
"watch:prf": "node build.mjs --type=prf --watch",
"watch:min": "node build.mjs --type=min --watch",
"build:sourcemaps": "node build.mjs --type=rel --format=esm --sourcemaps",
"watch": "turbo run watch:all",
"watch:rel:umd": "node build.mjs --type=rel --format=umd --watch",
"watch:rel:esm": "node build.mjs --type=rel --format=esm --watch",
"watch:dbg:umd": "node build.mjs --type=dbg --format=umd --watch",
"watch:dbg:esm": "node build.mjs --type=dbg --format=esm --watch",
"watch:prf:umd": "node build.mjs --type=prf --format=umd --watch",
"watch:prf:esm": "node build.mjs --type=prf --format=esm --watch",
"watch:min:umd": "node build.mjs --type=min --format=umd --watch",
"watch:min:esm": "node build.mjs --type=min --format=esm --watch",
"watch:types": "node build.mjs --type=types --watch",
"clean": "node build.mjs --clean",
"docs": "typedoc",
Expand Down
3 changes: 3 additions & 0 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
"allowJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"incremental": true,
"outDir": "build/playcanvas/src",
"skipLibCheck": true,
"tsBuildInfoFile": "build/.cache/playcanvas-types.tsbuildinfo",
"typeRoots": [ "./node_modules/@types" ]
}
}
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"checkJs": true,
"module": "es6",
"moduleResolution": "node",
"moduleResolution": "bundler",
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"outDir": "types",
"rootDir": ".",
"strictNullChecks": true,
"strictPropertyInitialization": true,
"target": "es6",
Expand Down
120 changes: 120 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"package.json",
"rollup.config.mjs",
"tsconfig*.json",
"utils/esbuild-*.mjs",
"utils/types-*.mjs",
"utils/plugins/**/*.mjs",
"utils/rollup-*.mjs"
],
Expand Down Expand Up @@ -145,8 +147,126 @@
],
"outputs": [
"build/playcanvas.d.ts",
"build/.cache/playcanvas-types.tsbuildinfo",
"build/playcanvas/src/**/*.d.ts"
]
},
"watch:all": {
"cache": false,
"with": [
"watch:umd",
"watch:esm",
"watch:types"
]
},
"watch:rel": {
"cache": false,
"with": [
"watch:rel:umd",
"watch:rel:esm"
]
},
"watch:dbg": {
"cache": false,
"with": [
"watch:dbg:umd",
"watch:dbg:esm"
]
},
"watch:prf": {
"cache": false,
"with": [
"watch:prf:umd",
"watch:prf:esm"
]
},
"watch:min": {
"cache": false,
"with": [
"watch:min:umd",
"watch:min:esm"
]
},
"watch:umd": {
"cache": false,
"with": [
"watch:rel:umd",
"watch:dbg:umd",
"watch:prf:umd",
"watch:min:umd"
]
},
"watch:esm": {
"cache": false,
"with": [
"watch:rel:esm",
"watch:dbg:esm",
"watch:prf:esm",
"watch:min:esm"
]
},
"watch:rel:umd": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:rel:esm": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:dbg:umd": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:dbg:esm": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:prf:umd": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:prf:esm": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:min:umd": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:min:esm": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
},
"watch:types": {
"cache": false,
"persistent": true,
"inputs": [
"src/**/*.js"
]
}
}
}
Loading