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.
- package/file-templates/dynamic/.github/workflows/ci.yml +9 -4
- package/file-templates/dynamic/{README.md → README.mod.md} +2 -2
- package/file-templates/dynamic/README.ts.md +3 -0
- package/file-templates/dynamic/gitignore +2 -0
- package/file-templates/dynamic/mod/metadata.xml +3 -3
- package/file-templates/dynamic/{package.json → package.mod.json} +3 -9
- package/file-templates/dynamic/package.ts.json +30 -0
- package/file-templates/dynamic/src/main.ts +1 -1
- package/file-templates/static/gitattributes +1 -0
- package/file-templates/{static → static-mod}/.eslintrc.template.cjs +1 -1
- package/file-templates/{static → static-mod}/.luarc.json +0 -0
- package/file-templates/{static → static-mod}/.prettierignore +0 -0
- package/file-templates/{static → static-mod}/.prettierrc.cjs +1 -0
- package/file-templates/{static → static-mod}/.vscode/extensions.json +0 -0
- package/file-templates/{static → static-mod}/.vscode/settings.json +1 -0
- package/file-templates/{static → static-mod}/build.sh +0 -0
- package/file-templates/{static → static-mod}/cspell.template.json +10 -1
- package/file-templates/{static → static-mod}/lint.sh +0 -0
- package/file-templates/{static → static-mod}/publish.sh +0 -0
- package/file-templates/{static → static-mod}/run.sh +0 -0
- package/file-templates/{static → static-mod}/tsconfig.json +0 -6
- package/file-templates/static-ts/.eslintrc.template.cjs +24 -0
- package/file-templates/static-ts/.prettierignore +7 -0
- package/file-templates/{static-alt/.prettierrc-base.cjs → static-ts/.prettierrc.cjs} +2 -2
- package/file-templates/{static-alt/.vscode/extensions-typescript.json → static-ts/.vscode/extensions.json} +0 -0
- package/file-templates/{static-alt/.vscode/settings-typescript.json → static-ts/.vscode/settings.json} +42 -0
- package/file-templates/static-ts/build.sh +43 -0
- package/file-templates/static-ts/cspell.template.json +27 -0
- package/file-templates/static-ts/lint.sh +32 -0
- package/file-templates/static-ts/publish.sh +10 -0
- package/file-templates/static-ts/run.sh +39 -0
- package/file-templates/static-ts/src/main.js +4 -0
- package/file-templates/static-ts/src/main.js.map +1 -0
- package/file-templates/static-ts/src/main.ts +3 -0
- package/file-templates/static-ts/tsconfig.json +14 -0
- package/package.json +1 -2
- package/src/commands/init/createProject.js +65 -47
- package/src/commands/init/createProject.js.map +1 -1
- package/src/commands/init/getModsDir.js +4 -1
- package/src/commands/init/getModsDir.js.map +1 -1
- package/src/commands/init/init.js +13 -7
- package/src/commands/init/init.js.map +1 -1
- package/src/commands/publish/publish.js +6 -6
- package/src/commands/publish/publish.js.map +1 -1
- package/src/configFile.js +7 -3
- package/src/configFile.js.map +1 -1
- package/src/constants.js +6 -8
- package/src/constants.js.map +1 -1
- package/src/main.js +7 -3
- package/src/main.js.map +1 -1
- package/src/parseArgs.js +4 -0
- package/src/parseArgs.js.map +1 -1
- package/src/parseArgsNew.js +30 -0
- package/src/parseArgsNew.js.map +1 -0
- 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"}
|