isaacscript 3.5.10-dev.4 → 3.5.10-dev.5

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 (55) hide show
  1. package/file-templates/dynamic/.github/workflows/ci.yml +9 -4
  2. package/file-templates/dynamic/{README.md → README.mod.md} +2 -2
  3. package/file-templates/dynamic/README.ts.md +3 -0
  4. package/file-templates/dynamic/gitignore +2 -0
  5. package/file-templates/dynamic/mod/metadata.xml +3 -3
  6. package/file-templates/dynamic/{package.json → package.mod.json} +3 -9
  7. package/file-templates/dynamic/package.ts.json +30 -0
  8. package/file-templates/dynamic/src/main.ts +1 -1
  9. package/file-templates/static/gitattributes +1 -0
  10. package/file-templates/{static → static-mod}/.eslintrc.template.cjs +1 -1
  11. package/file-templates/{static → static-mod}/.luarc.json +0 -0
  12. package/file-templates/{static → static-mod}/.prettierignore +0 -0
  13. package/file-templates/{static → static-mod}/.prettierrc.cjs +1 -0
  14. package/file-templates/{static → static-mod}/.vscode/extensions.json +0 -0
  15. package/file-templates/{static → static-mod}/.vscode/settings.json +1 -0
  16. package/file-templates/{static → static-mod}/build.sh +0 -0
  17. package/file-templates/{static → static-mod}/cspell.template.json +10 -1
  18. package/file-templates/{static → static-mod}/lint.sh +0 -0
  19. package/file-templates/{static → static-mod}/publish.sh +0 -0
  20. package/file-templates/{static → static-mod}/run.sh +0 -0
  21. package/file-templates/{static → static-mod}/tsconfig.json +0 -6
  22. package/file-templates/static-ts/.eslintrc.template.cjs +24 -0
  23. package/file-templates/static-ts/.prettierignore +7 -0
  24. package/file-templates/{static-alt/.prettierrc-base.cjs → static-ts/.prettierrc.cjs} +2 -2
  25. package/file-templates/{static-alt/.vscode/extensions-typescript.json → static-ts/.vscode/extensions.json} +0 -0
  26. package/file-templates/{static-alt/.vscode/settings-typescript.json → static-ts/.vscode/settings.json} +42 -0
  27. package/file-templates/static-ts/build.sh +43 -0
  28. package/file-templates/static-ts/cspell.template.json +27 -0
  29. package/file-templates/static-ts/lint.sh +32 -0
  30. package/file-templates/static-ts/publish.sh +10 -0
  31. package/file-templates/static-ts/run.sh +39 -0
  32. package/file-templates/static-ts/src/main.js +4 -0
  33. package/file-templates/static-ts/src/main.js.map +1 -0
  34. package/file-templates/static-ts/src/main.ts +3 -0
  35. package/file-templates/static-ts/tsconfig.json +14 -0
  36. package/package.json +1 -2
  37. package/src/commands/init/createProject.js +65 -47
  38. package/src/commands/init/createProject.js.map +1 -1
  39. package/src/commands/init/getModsDir.js +4 -1
  40. package/src/commands/init/getModsDir.js.map +1 -1
  41. package/src/commands/init/init.js +13 -7
  42. package/src/commands/init/init.js.map +1 -1
  43. package/src/commands/publish/publish.js +6 -6
  44. package/src/commands/publish/publish.js.map +1 -1
  45. package/src/configFile.js +7 -3
  46. package/src/configFile.js.map +1 -1
  47. package/src/constants.js +6 -8
  48. package/src/constants.js.map +1 -1
  49. package/src/main.js +7 -3
  50. package/src/main.js.map +1 -1
  51. package/src/parseArgs.js +4 -0
  52. package/src/parseArgs.js.map +1 -1
  53. package/src/parseArgsNew.js +30 -0
  54. package/src/parseArgsNew.js.map +1 -0
  55. package/file-templates/static-alt/.prettierignore-base +0 -2
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseArgsNew = void 0;
4
+ const cmd_ts_1 = require("cmd-ts");
5
+ async function parseArgsNew() {
6
+ const monitorCommand = (0, cmd_ts_1.command)({
7
+ name: "monitor",
8
+ args: {},
9
+ handler: monitor,
10
+ });
11
+ const initCommand = (0, cmd_ts_1.command)({
12
+ name: "init",
13
+ args: {},
14
+ handler: init,
15
+ });
16
+ const commands = (0, cmd_ts_1.subcommands)({
17
+ name: "foo",
18
+ cmds: { monitor: monitorCommand, initCommand },
19
+ });
20
+ await (0, cmd_ts_1.run)(commands, process.argv.slice(2));
21
+ return true;
22
+ }
23
+ exports.parseArgsNew = parseArgsNew;
24
+ function monitor() {
25
+ console.log("LOL monitor LOL");
26
+ }
27
+ function init() {
28
+ console.log("LOL init LOL");
29
+ }
30
+ //# sourceMappingURL=parseArgsNew.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"parseArgsNew.js","sourceRoot":"","sources":["../../../../packages/isaacscript-cli/src/parseArgsNew.ts"],"names":[],"mappings":";;;AAAA,mCAAmD;AAE5C,KAAK,UAAU,YAAY;IAChC,MAAM,cAAc,GAAG,IAAA,gBAAO,EAAC;QAC7B,IAAI,EAAE,SAAS;QACf,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,OAAO;KACjB,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,IAAA,gBAAO,EAAC;QAC1B,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,EAAE;QACR,OAAO,EAAE,IAAI;KACd,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,IAAA,oBAAW,EAAC;QAC3B,IAAI,EAAE,KAAK;QACX,IAAI,EAAE,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE;KAC/C,CAAC,CAAC;IAEH,MAAM,IAAA,YAAG,EAAC,QAAQ,EAAE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3C,OAAO,IAAI,CAAC;AACd,CAAC;AApBD,oCAoBC;AAED,SAAS,OAAO;IACd,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,IAAI;IACX,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;AAC9B,CAAC"}
@@ -1,2 +0,0 @@
1
- # Ignore compiled output.
2
- dist