ticbuild 1.0.16 → 1.0.18

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 (88) hide show
  1. package/README.md +115 -6
  2. package/dist/backend/ImportedResourceTypes.d.ts +2 -1
  3. package/dist/backend/ImportedResourceTypes.d.ts.map +1 -1
  4. package/dist/backend/ImportedResourceTypes.js.map +1 -1
  5. package/dist/backend/codeBanking.test.js +112 -0
  6. package/dist/backend/codeBanking.test.js.map +1 -1
  7. package/dist/backend/importers/LuaCodeImporter.d.ts +7 -8
  8. package/dist/backend/importers/LuaCodeImporter.d.ts.map +1 -1
  9. package/dist/backend/importers/LuaCodeImporter.js +54 -15
  10. package/dist/backend/importers/LuaCodeImporter.js.map +1 -1
  11. package/dist/backend/importers/LuaCodeImporter.test.js +109 -7
  12. package/dist/backend/importers/LuaCodeImporter.test.js.map +1 -1
  13. package/dist/backend/luaEncode.js +1 -1
  14. package/dist/backend/luaEncode.js.map +1 -1
  15. package/dist/backend/luaPreprocessor.d.ts +1 -0
  16. package/dist/backend/luaPreprocessor.d.ts.map +1 -1
  17. package/dist/backend/luaPreprocessor.js +46 -0
  18. package/dist/backend/luaPreprocessor.js.map +1 -1
  19. package/dist/backend/luaPreprocessor.test.js +69 -0
  20. package/dist/backend/luaPreprocessor.test.js.map +1 -1
  21. package/dist/backend/manifestTypes.d.ts +4 -0
  22. package/dist/backend/manifestTypes.d.ts.map +1 -1
  23. package/dist/backend/manifestTypes.js.map +1 -1
  24. package/dist/backend/project.d.ts.map +1 -1
  25. package/dist/backend/project.js +56 -3
  26. package/dist/backend/project.js.map +1 -1
  27. package/dist/backend/symbolIndex.js +1 -0
  28. package/dist/backend/symbolIndex.js.map +1 -1
  29. package/dist/backend/tic80Controller/remotingClient.d.ts +7 -0
  30. package/dist/backend/tic80Controller/remotingClient.d.ts.map +1 -1
  31. package/dist/backend/tic80Controller/remotingClient.js +30 -12
  32. package/dist/backend/tic80Controller/remotingClient.js.map +1 -1
  33. package/dist/backend/tic80Controller/remotingClient.test.d.ts +2 -0
  34. package/dist/backend/tic80Controller/remotingClient.test.d.ts.map +1 -0
  35. package/dist/backend/tic80Controller/remotingClient.test.js +94 -0
  36. package/dist/backend/tic80Controller/remotingClient.test.js.map +1 -0
  37. package/dist/backend/tic80Controller/remotingProtocol.d.ts +15 -0
  38. package/dist/backend/tic80Controller/remotingProtocol.d.ts.map +1 -0
  39. package/dist/backend/tic80Controller/remotingProtocol.js +30 -0
  40. package/dist/backend/tic80Controller/remotingProtocol.js.map +1 -0
  41. package/dist/backend/tic80Controller/remotingProtocol.test.d.ts +2 -0
  42. package/dist/backend/tic80Controller/remotingProtocol.test.d.ts.map +1 -0
  43. package/dist/backend/tic80Controller/remotingProtocol.test.js +26 -0
  44. package/dist/backend/tic80Controller/remotingProtocol.test.js.map +1 -0
  45. package/dist/buildInfo.d.ts +4 -4
  46. package/dist/buildInfo.js +4 -4
  47. package/dist/frontend/core.d.ts.map +1 -1
  48. package/dist/frontend/core.js +136 -4
  49. package/dist/frontend/core.js.map +1 -1
  50. package/dist/frontend/luaCodeArtifacts.test.d.ts +2 -0
  51. package/dist/frontend/luaCodeArtifacts.test.d.ts.map +1 -0
  52. package/dist/frontend/luaCodeArtifacts.test.js +260 -0
  53. package/dist/frontend/luaCodeArtifacts.test.js.map +1 -0
  54. package/dist/frontend/terminal.d.ts.map +1 -1
  55. package/dist/frontend/terminal.js +14 -34
  56. package/dist/frontend/terminal.js.map +1 -1
  57. package/dist/utils/lua/lua_alias_expressions.js +1 -1
  58. package/dist/utils/lua/lua_alias_expressions.js.map +1 -1
  59. package/dist/utils/lua/lua_alias_literals.js +1 -1
  60. package/dist/utils/lua/lua_alias_literals.js.map +1 -1
  61. package/dist/utils/lua/lua_alias_shared.js +1 -1
  62. package/dist/utils/lua/lua_alias_shared.js.map +1 -1
  63. package/dist/utils/lua/lua_processor.d.ts +2 -0
  64. package/dist/utils/lua/lua_processor.d.ts.map +1 -1
  65. package/dist/utils/lua/lua_processor.js +9 -0
  66. package/dist/utils/lua/lua_processor.js.map +1 -1
  67. package/dist/utils/lua/lua_processor.test.js +242 -0
  68. package/dist/utils/lua/lua_processor.test.js.map +1 -1
  69. package/dist/utils/lua/lua_rename_allowed_globals.d.ts +8 -0
  70. package/dist/utils/lua/lua_rename_allowed_globals.d.ts.map +1 -0
  71. package/dist/utils/lua/lua_rename_allowed_globals.js +268 -0
  72. package/dist/utils/lua/lua_rename_allowed_globals.js.map +1 -0
  73. package/dist/utils/tic80/bankSupport.test.js +27 -1
  74. package/dist/utils/tic80/bankSupport.test.js.map +1 -1
  75. package/dist/utils/tic80/cartLoader.d.ts.map +1 -1
  76. package/dist/utils/tic80/cartLoader.js +4 -2
  77. package/dist/utils/tic80/cartLoader.js.map +1 -1
  78. package/dist/utils/tic80/cartWriter.d.ts +6 -1
  79. package/dist/utils/tic80/cartWriter.d.ts.map +1 -1
  80. package/dist/utils/tic80/cartWriter.js +24 -13
  81. package/dist/utils/tic80/cartWriter.js.map +1 -1
  82. package/dist/utils/tic80/tic80.d.ts +8 -5
  83. package/dist/utils/tic80/tic80.d.ts.map +1 -1
  84. package/dist/utils/tic80/tic80.js +2 -1
  85. package/dist/utils/tic80/tic80.js.map +1 -1
  86. package/package.json +2 -1
  87. package/templates/TIC-80-ticbuild/tic80.exe +0 -0
  88. package/ticbuild.schema.json +49 -23
@@ -253,13 +253,22 @@
253
253
  "renameTableFields": {
254
254
  "type": "boolean"
255
255
  },
256
- "tableEntryKeysToRename": {
257
- "type": "array",
258
- "items": {
259
- "type": "string"
260
- }
261
- }
262
- },
256
+ "tableEntryKeysToRename": {
257
+ "type": "array",
258
+ "items": {
259
+ "type": "string"
260
+ }
261
+ },
262
+ "globalSymbolsToRename": {
263
+ "type": "array",
264
+ "items": {
265
+ "type": "string"
266
+ }
267
+ },
268
+ "renameSpecifiedGlobalSymbols": {
269
+ "type": "boolean"
270
+ }
271
+ },
263
272
  "description": "Minification options (OptimizationRuleOptions)"
264
273
  },
265
274
  "globals": {
@@ -311,12 +320,12 @@
311
320
  ]
312
321
  }
313
322
  },
314
- "bank": {
315
- "type": "integer",
316
- "minimum": 0,
317
- "maximum": 7,
318
- "description": "Bank index (defaults to 0)"
319
- },
323
+ "bank": {
324
+ "type": "integer",
325
+ "minimum": 0,
326
+ "maximum": 15,
327
+ "description": "Bank index (defaults to 0). Standard TIC-80 chunks support banks 0..7; CODE banks 8..15 require code.extendedCodeBanks, and CODE_COMPRESSED banks 1..15 require code.multiBankCompressedCode and the private TIC-80 build"
328
+ },
320
329
  "asset": {
321
330
  "oneOf": [
322
331
  {
@@ -341,15 +350,32 @@
341
350
  }
342
351
  ]
343
352
  },
344
- "code": {
345
- "type": "object",
346
- "properties": {
347
- "emitGlobals": {
348
- "type": "boolean",
349
- "description": "Whether to emit assembly.lua.globals for this code block"
350
- }
351
- }
352
- }
353
+ "code": {
354
+ "type": "object",
355
+ "properties": {
356
+ "emitGlobals": {
357
+ "type": "boolean",
358
+ "description": "Whether to emit assembly.lua.globals for this code block"
359
+ },
360
+ "compressionMode": {
361
+ "type": "string",
362
+ "enum": [
363
+ "default",
364
+ "zlib-max",
365
+ "zopfli"
366
+ ],
367
+ "description": "Compression mode for CODE_COMPRESSED chunks emitted by this code block"
368
+ },
369
+ "extendedCodeBanks": {
370
+ "type": "boolean",
371
+ "description": "Allow CODE chunks to use private TIC-80 extended banks 8..15. Carts built with this option are not compatible with stock TIC-80"
372
+ },
373
+ "multiBankCompressedCode": {
374
+ "type": "boolean",
375
+ "description": "Allow CODE_COMPRESSED output to split across private TIC-80 compressed code banks. Carts that need more than one compressed bank are not compatible with stock TIC-80"
376
+ }
377
+ }
378
+ }
353
379
  }
354
380
  }
355
381
  }
@@ -399,4 +425,4 @@
399
425
  "description": "Build configuration overrides"
400
426
  }
401
427
  }
402
- }
428
+ }