@apps-in-toss/cli 0.0.0-dev.1741252452371 → 0.0.0-dev.1741346821380

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/dist/index.cjs CHANGED
@@ -7556,7 +7556,7 @@ var require_tasks = __commonJS({
7556
7556
  }
7557
7557
  exports2.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
7558
7558
  function groupPatternsByBaseDirectory(patterns) {
7559
- const group = {};
7559
+ const group2 = {};
7560
7560
  return patterns.reduce((collection, pattern) => {
7561
7561
  const base = utils.pattern.getBaseDirectory(pattern);
7562
7562
  if (base in collection) {
@@ -7565,7 +7565,7 @@ var require_tasks = __commonJS({
7565
7565
  collection[base] = [pattern];
7566
7566
  }
7567
7567
  return collection;
7568
- }, group);
7568
+ }, group2);
7569
7569
  }
7570
7570
  exports2.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
7571
7571
  function convertPatternGroupsToTasks(positive, negative, dynamic) {
@@ -37562,7 +37562,7 @@ export default defineConfig({
37562
37562
  },
37563
37563
  permissions: [],
37564
37564
  oauth: {
37565
- scope: [],
37565
+ scopes: [],
37566
37566
  },
37567
37567
  outdir: 'dist',
37568
37568
  });
@@ -37647,7 +37647,7 @@ async function setupYarn(cwd) {
37647
37647
  async function templateWebFramework({
37648
37648
  appName,
37649
37649
  cwd,
37650
- originalScripts
37650
+ scripts
37651
37651
  }) {
37652
37652
  p2.log.step("bedrock.config.ts \uD30C\uC77C\uC744 \uC0DD\uC131\uD558\uB294 \uC911...");
37653
37653
  const webPort = await p2.text({
@@ -37662,8 +37662,8 @@ async function templateWebFramework({
37662
37662
  const config = transformTemplate(WEB_FRAMEWORK_CONFIG_TEMPLATE, {
37663
37663
  appName,
37664
37664
  webPort,
37665
- webDevCommand: originalScripts.dev === "ait dev" ? "" : originalScripts.dev,
37666
- webBuildCommand: originalScripts.build === "ait build" ? "" : originalScripts.build
37665
+ webDevCommand: scripts.dev === "bedrock dev" ? "" : scripts.dev,
37666
+ webBuildCommand: scripts.build === "bedrock build" ? "" : scripts.build
37667
37667
  });
37668
37668
  await import_fs4.default.promises.writeFile(import_path3.default.join(cwd, "bedrock.config.ts"), config, {
37669
37669
  encoding: "utf-8"
@@ -37722,12 +37722,35 @@ var InitCommand = class extends import_clipanion2.Command {
37722
37722
  });
37723
37723
  p2.log.step(".gitignore \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
37724
37724
  await import_fs4.default.promises.appendFile(import_path3.default.join(cwd, ".gitignore"), "\n.bedrock\n");
37725
+ const placeholder = {
37726
+ dev: originalScripts.dev === "bedrock dev" ? "" : originalScripts.dev,
37727
+ build: originalScripts.build === "bedrock build" ? "" : originalScripts.build
37728
+ };
37729
+ const scriptInputs = await p2.group(
37730
+ {
37731
+ dev: () => p2.text({
37732
+ message: "\uC6F9 \uBC88\uB4E4\uB7EC\uC758 dev \uBA85\uB839\uC5B4\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694.",
37733
+ defaultValue: placeholder.dev,
37734
+ placeholder: placeholder.dev
37735
+ }),
37736
+ build: () => p2.text({
37737
+ message: "\uC6F9 \uBC88\uB4E4\uB7EC\uC758 build \uBA85\uB839\uC5B4\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694.",
37738
+ defaultValue: placeholder.build,
37739
+ placeholder: placeholder.build
37740
+ })
37741
+ },
37742
+ {
37743
+ onCancel: () => {
37744
+ p2.cancel("\uCD08\uAE30\uD654\uAC00 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4");
37745
+ }
37746
+ }
37747
+ );
37725
37748
  switch (template) {
37726
37749
  case "web-framework": {
37727
37750
  await templateWebFramework({
37728
37751
  appName,
37729
37752
  cwd,
37730
- originalScripts
37753
+ scripts: scriptInputs
37731
37754
  });
37732
37755
  }
37733
37756
  }
package/dist/index.js CHANGED
@@ -7564,7 +7564,7 @@ var require_tasks = __commonJS({
7564
7564
  }
7565
7565
  exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
7566
7566
  function groupPatternsByBaseDirectory(patterns) {
7567
- const group = {};
7567
+ const group2 = {};
7568
7568
  return patterns.reduce((collection, pattern) => {
7569
7569
  const base = utils.pattern.getBaseDirectory(pattern);
7570
7570
  if (base in collection) {
@@ -7573,7 +7573,7 @@ var require_tasks = __commonJS({
7573
7573
  collection[base] = [pattern];
7574
7574
  }
7575
7575
  return collection;
7576
- }, group);
7576
+ }, group2);
7577
7577
  }
7578
7578
  exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
7579
7579
  function convertPatternGroupsToTasks(positive, negative, dynamic) {
@@ -37570,7 +37570,7 @@ export default defineConfig({
37570
37570
  },
37571
37571
  permissions: [],
37572
37572
  oauth: {
37573
- scope: [],
37573
+ scopes: [],
37574
37574
  },
37575
37575
  outdir: 'dist',
37576
37576
  });
@@ -37655,7 +37655,7 @@ async function setupYarn(cwd) {
37655
37655
  async function templateWebFramework({
37656
37656
  appName,
37657
37657
  cwd,
37658
- originalScripts
37658
+ scripts
37659
37659
  }) {
37660
37660
  p2.log.step("bedrock.config.ts \uD30C\uC77C\uC744 \uC0DD\uC131\uD558\uB294 \uC911...");
37661
37661
  const webPort = await p2.text({
@@ -37670,8 +37670,8 @@ async function templateWebFramework({
37670
37670
  const config = transformTemplate(WEB_FRAMEWORK_CONFIG_TEMPLATE, {
37671
37671
  appName,
37672
37672
  webPort,
37673
- webDevCommand: originalScripts.dev === "ait dev" ? "" : originalScripts.dev,
37674
- webBuildCommand: originalScripts.build === "ait build" ? "" : originalScripts.build
37673
+ webDevCommand: scripts.dev === "bedrock dev" ? "" : scripts.dev,
37674
+ webBuildCommand: scripts.build === "bedrock build" ? "" : scripts.build
37675
37675
  });
37676
37676
  await fs4.promises.writeFile(path9.join(cwd, "bedrock.config.ts"), config, {
37677
37677
  encoding: "utf-8"
@@ -37730,12 +37730,35 @@ var InitCommand = class extends Command2 {
37730
37730
  });
37731
37731
  p2.log.step(".gitignore \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
37732
37732
  await fs4.promises.appendFile(path9.join(cwd, ".gitignore"), "\n.bedrock\n");
37733
+ const placeholder = {
37734
+ dev: originalScripts.dev === "bedrock dev" ? "" : originalScripts.dev,
37735
+ build: originalScripts.build === "bedrock build" ? "" : originalScripts.build
37736
+ };
37737
+ const scriptInputs = await p2.group(
37738
+ {
37739
+ dev: () => p2.text({
37740
+ message: "\uC6F9 \uBC88\uB4E4\uB7EC\uC758 dev \uBA85\uB839\uC5B4\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694.",
37741
+ defaultValue: placeholder.dev,
37742
+ placeholder: placeholder.dev
37743
+ }),
37744
+ build: () => p2.text({
37745
+ message: "\uC6F9 \uBC88\uB4E4\uB7EC\uC758 build \uBA85\uB839\uC5B4\uB97C \uC785\uB825\uD574\uC8FC\uC138\uC694.",
37746
+ defaultValue: placeholder.build,
37747
+ placeholder: placeholder.build
37748
+ })
37749
+ },
37750
+ {
37751
+ onCancel: () => {
37752
+ p2.cancel("\uCD08\uAE30\uD654\uAC00 \uCDE8\uC18C\uB418\uC5C8\uC2B5\uB2C8\uB2E4");
37753
+ }
37754
+ }
37755
+ );
37733
37756
  switch (template) {
37734
37757
  case "web-framework": {
37735
37758
  await templateWebFramework({
37736
37759
  appName,
37737
37760
  cwd,
37738
- originalScripts
37761
+ scripts: scriptInputs
37739
37762
  });
37740
37763
  }
37741
37764
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@apps-in-toss/cli",
3
3
  "type": "module",
4
- "version": "0.0.0-dev.1741252452371",
4
+ "version": "0.0.0-dev.1741346821380",
5
5
  "description": "CLI for Apps In Toss",
6
6
  "scripts": {
7
7
  "prepack": "yarn build",
@@ -46,5 +46,5 @@
46
46
  "publishConfig": {
47
47
  "access": "public"
48
48
  },
49
- "gitHead": "c4d6d0dd12bd86940962b76917971751b1ab78a1"
49
+ "gitHead": "ee627fdef64d5d669a007bdb88e9606cde113e38"
50
50
  }