@webspatial/builder 0.1.13 → 0.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/index.js +1 -1
  2. package/dist/lib/cmds/build.d.ts +4 -4
  3. package/dist/lib/cmds/build.js +1 -1
  4. package/dist/lib/cmds/check.d.ts +2 -3
  5. package/dist/lib/cmds/check.js +1 -1
  6. package/dist/lib/cmds/help.js +1 -1
  7. package/dist/lib/cmds/launch.js +1 -1
  8. package/dist/lib/cmds/shutdown.js +1 -1
  9. package/dist/lib/cmds/version.d.ts +1 -2
  10. package/dist/lib/cmds/version.js +1 -1
  11. package/dist/lib/pwa/config.js +1 -1
  12. package/dist/lib/pwa/index.d.ts +4 -15
  13. package/dist/lib/pwa/index.js +1 -1
  14. package/dist/lib/pwa/validate.js +1 -1
  15. package/dist/lib/resource/file.js +1 -1
  16. package/dist/lib/resource/imageHelper.js +1 -1
  17. package/dist/lib/resource/index.d.ts +2 -1
  18. package/dist/lib/resource/index.js +1 -1
  19. package/dist/lib/resource/load.js +1 -1
  20. package/dist/lib/types.d.ts +27 -0
  21. package/dist/lib/types.js +1 -0
  22. package/dist/lib/utils/CustomError.js +1 -1
  23. package/dist/lib/utils/FetchUtils-1.js +1 -1
  24. package/dist/lib/utils/Log.js +1 -1
  25. package/dist/lib/utils/fetch.js +1 -1
  26. package/dist/lib/utils/history.d.ts +15 -0
  27. package/dist/lib/utils/history.js +1 -0
  28. package/dist/lib/utils/messages.js +1 -1
  29. package/dist/lib/utils/utils.d.ts +2 -0
  30. package/dist/lib/utils/utils.js +1 -1
  31. package/dist/lib/xcode/index.d.ts +3 -1
  32. package/dist/lib/xcode/index.js +1 -1
  33. package/dist/lib/xcode/manifestSwiftTemplate.js +1 -1
  34. package/dist/lib/xcode/xcodebuild.js +1 -1
  35. package/dist/lib/xcode/xcodeproject.js +1 -1
  36. package/dist/lib/xcode/xcrun.d.ts +38 -3
  37. package/dist/lib/xcode/xcrun.js +1 -1
  38. package/package.json +4 -3
  39. package/dist/lib/Cli.d.ts +0 -5
  40. package/dist/lib/Cli.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webspatial/builder",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "Client CLI tool to Generate XRApp project for Apple Vision Pro",
5
5
  "type": "commonjs",
6
6
  "engines": {
@@ -28,6 +28,7 @@
28
28
  "@resvg/resvg-js": "^2.6.2",
29
29
  "cli-progress": "^3.8.2",
30
30
  "colors": "^1.4.0",
31
+ "commander": "^13.1.0",
31
32
  "fetch-h2": "^2.5.1",
32
33
  "inquirer": "^8.2.4",
33
34
  "jimp": "^0.22.7",
@@ -38,7 +39,7 @@
38
39
  "sharp": "^0.33.5",
39
40
  "valid-url": "^1.0.9",
40
41
  "xcode": "^3.0.1",
41
- "@webspatial/platform-visionos": "^0.1.13"
42
+ "@webspatial/platform-visionos": "^0.1.14"
42
43
  },
43
44
  "devDependencies": {
44
45
  "@rollup/plugin-terser": "^0.4.3",
@@ -66,7 +67,7 @@
66
67
  "test1": "npm run build && bin/bundlepwa.js build --manifest=../testLocal/manifest.json --project=../testLocal --export=./export --version=1.0 --teamId=teamId",
67
68
  "test2": "npm run build && bin/bundlepwa.js publish --manifest=../pack-test/pwa_test.json --project=../pack-test --version=1.0 --teamId=teamId --u=username --p=password",
68
69
  "test3": "npm run build && bin/bundlepwa.js publish --name=webspatial --version=1.0 --u=username --p=password",
69
- "test4": "npm run build && bin/bundlepwa.js run",
70
+ "test4": "npm run build && bin/bundlepwa.js run --tryWithoutBuild=true",
70
71
  "obfuscate": "node obfuscate.js",
71
72
  "build": "tsc && npm run obfuscate && npm run copy-assets",
72
73
  "build1": "rollup -c ./rollup.config.js",
package/dist/lib/Cli.d.ts DELETED
@@ -1,5 +0,0 @@
1
- import { ConsoleLog } from '../lib/utils/Log';
2
- export declare class Cli {
3
- static log: ConsoleLog;
4
- run(args: string[]): Promise<boolean>;
5
- }
package/dist/lib/Cli.js DELETED
@@ -1 +0,0 @@
1
- 'use strict';function _0x28d3(_0xc97b13,_0x3566af){const _0x12d6b4=_0x12d6();return _0x28d3=function(_0x28d34b,_0x3687b6){_0x28d34b=_0x28d34b-0x19b;let _0x4d1a8b=_0x12d6b4[_0x28d34b];return _0x4d1a8b;},_0x28d3(_0xc97b13,_0x3566af);}const _0x36f9fc=_0x28d3;(function(_0x16d0a3,_0xa609c2){const _0x154b4c=_0x28d3,_0x1f8140=_0x16d0a3();while(!![]){try{const _0xe9dc5f=parseInt(_0x154b4c(0x1ba))/0x1*(parseInt(_0x154b4c(0x1a4))/0x2)+-parseInt(_0x154b4c(0x1c1))/0x3*(-parseInt(_0x154b4c(0x1be))/0x4)+-parseInt(_0x154b4c(0x1b9))/0x5+-parseInt(_0x154b4c(0x1b5))/0x6+parseInt(_0x154b4c(0x1a6))/0x7+-parseInt(_0x154b4c(0x1b2))/0x8*(-parseInt(_0x154b4c(0x1bb))/0x9)+-parseInt(_0x154b4c(0x1ab))/0xa;if(_0xe9dc5f===_0xa609c2)break;else _0x1f8140['push'](_0x1f8140['shift']());}catch(_0x1c2a35){_0x1f8140['push'](_0x1f8140['shift']());}}}(_0x12d6,0x25c9d));function _0x12d6(){const _0x219c7f=['901647lqGtTb','./cmds/help','./utils/FetchUtils-1','webspatial-builder','./cmds/launch','setDownloadFile','\x20Node.js\x20version\x2014\x20or\x20above\x20is\x20required\x20to\x20run\x20XRAPP\x20BUILDER.','../lib/utils/Log','start','Cli','versions','store','defineProperty','log','95962sELSrE','./utils/fetch','1162308KSExLL','version','setFetch','__esModule','downloadFile','5496950RYBKab','major','./cmds/version','fetchUtils','decompressResponseBuffer','fetch','run','2372824ypbNws','setDecompressResponseBuffer','launch','133026qGFayb','length','publish','shutdown','422650UFAhRG','1cxzpkr','9yAQGdZ','semver','help','4rpboFS','Current\x20Node.js\x20version\x20is\x20','minimist'];_0x12d6=function(){return _0x219c7f;};return _0x12d6();}Object[_0x36f9fc(0x1a2)](exports,_0x36f9fc(0x1a9),{'value':!![]}),exports[_0x36f9fc(0x19f)]=void 0x0;const minimist=require(_0x36f9fc(0x1c0)),semver_1=require(_0x36f9fc(0x1bc)),Log_1=require(_0x36f9fc(0x19d)),FetchUtils_1_1=require(_0x36f9fc(0x1c3)),help_1=require(_0x36f9fc(0x1c2)),build_1=require('./cmds/build'),version_1=require(_0x36f9fc(0x1ad)),fetch_1=require(_0x36f9fc(0x1a5)),launch_1=require(_0x36f9fc(0x1c5)),shutdown_1=require('./cmds/shutdown');class Cli{async['run'](_0x266258){const _0xf9610=_0x36f9fc;if((0x0,semver_1[_0xf9610(0x1ac)])(process[_0xf9610(0x1a0)]['node'])<0xe)throw new Error(_0xf9610(0x1bf)+process[_0xf9610(0x1a0)]['node']+'.'+_0xf9610(0x19c));FetchUtils_1_1[_0xf9610(0x1ae)][_0xf9610(0x1a8)](fetch_1[_0xf9610(0x1b0)]),FetchUtils_1_1[_0xf9610(0x1ae)][_0xf9610(0x19b)](fetch_1[_0xf9610(0x1aa)]),FetchUtils_1_1['fetchUtils'][_0xf9610(0x1b3)](fetch_1[_0xf9610(0x1af)]);const _0x309e0d=minimist(_0x266258);let _0x451c23=undefined;if(_0x309e0d['_'][_0xf9610(0x1b6)]===0x0){if(_0x309e0d['version'])_0x451c23=_0xf9610(0x1a7);else _0x309e0d[_0xf9610(0x1bd)]&&(_0x451c23=_0xf9610(0x1bd));}else _0x451c23=_0x309e0d['_'][0x0];!_0x451c23&&(_0x451c23='help');switch(_0x451c23){case _0xf9610(0x1bd):case'h':return await(0x0,help_1[_0xf9610(0x1bd)])(_0x309e0d);case'build':return await(0x0,build_1[_0xf9610(0x19e)])(_0x309e0d);case _0xf9610(0x1b7):return await(0x0,build_1[_0xf9610(0x1a1)])(_0x309e0d);case _0xf9610(0x1b1):return await(0x0,build_1[_0xf9610(0x1b1)])(_0x309e0d);case _0xf9610(0x1b4):return(0x0,launch_1[_0xf9610(0x1b4)])(_0x309e0d);case'shutdown':return(0x0,shutdown_1[_0xf9610(0x1b8)])(_0x309e0d);case _0xf9610(0x1a7):{return await(0x0,version_1[_0xf9610(0x1a7)])();}default:throw new Error('\x22'+_0x451c23+'\x22\x20is\x20not\x20a\x20valid\x20command!\x20Use\x20\x27bubblewrap\x20help\x27\x20for\x20a\x20list\x20of\x20commands');}}}exports['Cli']=Cli,Cli[_0x36f9fc(0x1a3)]=new Log_1['ConsoleLog'](_0x36f9fc(0x1c4));