Skip to content

Commit

Permalink
Minor build/script fixes (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
njibhu authored Sep 21, 2024
1 parent 47b169b commit aed7a82
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 24 deletions.
44 changes: 21 additions & 23 deletions experiments/rollup.config.cjs
Original file line number Diff line number Diff line change
@@ -1,36 +1,34 @@
const copy = require('rollup-plugin-copy');
const { globSync } = require('glob');
const copy = require("rollup-plugin-copy");
const { globSync } = require("glob");

module.exports = {
input: globSync('src/js/*.js'),
input: globSync("src/js/*.js"),
output: {
dir: 'dist/js',
format: 'iife',
dir: "dist/js",
format: "es",
},
plugins: [
copy({
targets: [
{ src: 'src/**/*.html', dest: 'dist/' },
],
targets: [{ src: "src/**/*.html", dest: "dist/" }],
}),
// Static dependencies
copy({
targets: [
{ src: '../t3dtools.js/t3dworker.js', dest: 'dist/static' },
{ src: '../t3dtools.js/t3dworker.wasm', dest: 'dist/static' },
{ src: '../node_modules/w2ui/w2ui-1.4.3.min.js', dest: 'dist/static' },
{ src: '../node_modules/w2ui/w2ui-1.4.3.min.css', dest: 'dist/static' },
{ src: '../node_modules/three/build/three.js', dest: 'dist/static' },
{ src: '../node_modules/three/examples/js/controls/FlyControls.js', dest: 'dist/static' },
{ src: '../node_modules/three/examples/js/controls/PointerLockControls.js', dest: 'dist/static' },
{ src: '../node_modules/three/examples/js/controls/OrbitControls.js', dest: 'dist/static' },
{ src: '../node_modules/three/examples/js/exporters/OBJExporter.js', dest: 'dist/static' },
{ src: '../node_modules/three/examples/js/exporters/GLTFExporter.js', dest: 'dist/static' },
{ src: '../node_modules/jquery/dist/jquery.js', dest: 'dist/static' },
{ src: '../library/build/T3D.js', dest: 'dist/static' },
{ src: '../library/build/T3D.js.map', dest: 'dist/static' },
{ src: '../parser/build/t3d-parser.js', dest: 'dist/static' },
{ src: '../parser/build/t3d-parser.js.map', dest: 'dist/static' },
{ src: "../t3dtools.js/t3dworker.js", dest: "dist/static" },
{ src: "../t3dtools.js/t3dworker.wasm", dest: "dist/static" },
{ src: "../node_modules/w2ui/w2ui-1.4.3.min.js", dest: "dist/static" },
{ src: "../node_modules/w2ui/w2ui-1.4.3.min.css", dest: "dist/static" },
{ src: "../node_modules/three/build/three.js", dest: "dist/static" },
{ src: "../node_modules/three/examples/js/controls/FlyControls.js", dest: "dist/static" },
{ src: "../node_modules/three/examples/js/controls/PointerLockControls.js", dest: "dist/static" },
{ src: "../node_modules/three/examples/js/controls/OrbitControls.js", dest: "dist/static" },
{ src: "../node_modules/three/examples/js/exporters/OBJExporter.js", dest: "dist/static" },
{ src: "../node_modules/three/examples/js/exporters/GLTFExporter.js", dest: "dist/static" },
{ src: "../node_modules/jquery/dist/jquery.js", dest: "dist/static" },
{ src: "../library/build/T3D.js", dest: "dist/static" },
{ src: "../library/build/T3D.js.map", dest: "dist/static" },
{ src: "../parser/build/t3d-parser.js", dest: "dist/static" },
{ src: "../parser/build/t3d-parser.js.map", dest: "dist/static" },
],
}),
],
Expand Down
1 change: 1 addition & 0 deletions library/src/LocalReader/LocalReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ class LocalReader {
name: map.baseId.toString(),
category: "Uncategorized",
baseId: map.baseId,
categoryIndex: 99999,
});
}
}
Expand Down
1 change: 1 addition & 0 deletions library/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"strictPropertyInitialization": false,
"sourceMap": true
},
"include": [
Expand Down
3 changes: 2 additions & 1 deletion utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"format:check": "prettier --check ./lib && prettier --check ./bin",
"lint:check": "eslint ./lib && eslint ./bin",
"lint:fix": "eslint ./lib --fix && eslint ./bin --fix",
"test": "exit 0"
"test": "exit 0",
"build": "exit 0"
},
"dependencies": {
"@types/node": "12.12.17",
Expand Down

0 comments on commit aed7a82

Please sign in to comment.