@apps-in-toss/cli 0.0.0-dev.1741174124399 → 0.0.0-dev.1741344445455
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 +34 -7
- package/dist/index.js +34 -7
- package/package.json +2 -2
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
|
|
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
|
-
},
|
|
7568
|
+
}, group2);
|
|
7569
7569
|
}
|
|
7570
7570
|
exports2.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
7571
7571
|
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
@@ -37560,7 +37560,11 @@ export default defineConfig({
|
|
|
37560
37560
|
build: '%%webBuildCommand%%',
|
|
37561
37561
|
},
|
|
37562
37562
|
},
|
|
37563
|
-
permissions: []
|
|
37563
|
+
permissions: [],
|
|
37564
|
+
oauth: {
|
|
37565
|
+
scopes: [],
|
|
37566
|
+
},
|
|
37567
|
+
outdir: 'dist',
|
|
37564
37568
|
});
|
|
37565
37569
|
`;
|
|
37566
37570
|
|
|
@@ -37643,7 +37647,7 @@ async function setupYarn(cwd) {
|
|
|
37643
37647
|
async function templateWebFramework({
|
|
37644
37648
|
appName,
|
|
37645
37649
|
cwd,
|
|
37646
|
-
|
|
37650
|
+
scripts
|
|
37647
37651
|
}) {
|
|
37648
37652
|
p2.log.step("bedrock.config.ts \uD30C\uC77C\uC744 \uC0DD\uC131\uD558\uB294 \uC911...");
|
|
37649
37653
|
const webPort = await p2.text({
|
|
@@ -37658,8 +37662,8 @@ async function templateWebFramework({
|
|
|
37658
37662
|
const config = transformTemplate(WEB_FRAMEWORK_CONFIG_TEMPLATE, {
|
|
37659
37663
|
appName,
|
|
37660
37664
|
webPort,
|
|
37661
|
-
webDevCommand:
|
|
37662
|
-
webBuildCommand:
|
|
37665
|
+
webDevCommand: scripts.dev === "bedrock dev" ? "" : scripts.dev,
|
|
37666
|
+
webBuildCommand: scripts.build === "bedrock build" ? "" : scripts.build
|
|
37663
37667
|
});
|
|
37664
37668
|
await import_fs4.default.promises.writeFile(import_path3.default.join(cwd, "bedrock.config.ts"), config, {
|
|
37665
37669
|
encoding: "utf-8"
|
|
@@ -37718,12 +37722,35 @@ var InitCommand = class extends import_clipanion2.Command {
|
|
|
37718
37722
|
});
|
|
37719
37723
|
p2.log.step(".gitignore \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
|
|
37720
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
|
+
);
|
|
37721
37748
|
switch (template) {
|
|
37722
37749
|
case "web-framework": {
|
|
37723
37750
|
await templateWebFramework({
|
|
37724
37751
|
appName,
|
|
37725
37752
|
cwd,
|
|
37726
|
-
|
|
37753
|
+
scripts: scriptInputs
|
|
37727
37754
|
});
|
|
37728
37755
|
}
|
|
37729
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
|
|
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
|
-
},
|
|
7576
|
+
}, group2);
|
|
7577
7577
|
}
|
|
7578
7578
|
exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
|
|
7579
7579
|
function convertPatternGroupsToTasks(positive, negative, dynamic) {
|
|
@@ -37568,7 +37568,11 @@ export default defineConfig({
|
|
|
37568
37568
|
build: '%%webBuildCommand%%',
|
|
37569
37569
|
},
|
|
37570
37570
|
},
|
|
37571
|
-
permissions: []
|
|
37571
|
+
permissions: [],
|
|
37572
|
+
oauth: {
|
|
37573
|
+
scopes: [],
|
|
37574
|
+
},
|
|
37575
|
+
outdir: 'dist',
|
|
37572
37576
|
});
|
|
37573
37577
|
`;
|
|
37574
37578
|
|
|
@@ -37651,7 +37655,7 @@ async function setupYarn(cwd) {
|
|
|
37651
37655
|
async function templateWebFramework({
|
|
37652
37656
|
appName,
|
|
37653
37657
|
cwd,
|
|
37654
|
-
|
|
37658
|
+
scripts
|
|
37655
37659
|
}) {
|
|
37656
37660
|
p2.log.step("bedrock.config.ts \uD30C\uC77C\uC744 \uC0DD\uC131\uD558\uB294 \uC911...");
|
|
37657
37661
|
const webPort = await p2.text({
|
|
@@ -37666,8 +37670,8 @@ async function templateWebFramework({
|
|
|
37666
37670
|
const config = transformTemplate(WEB_FRAMEWORK_CONFIG_TEMPLATE, {
|
|
37667
37671
|
appName,
|
|
37668
37672
|
webPort,
|
|
37669
|
-
webDevCommand:
|
|
37670
|
-
webBuildCommand:
|
|
37673
|
+
webDevCommand: scripts.dev === "bedrock dev" ? "" : scripts.dev,
|
|
37674
|
+
webBuildCommand: scripts.build === "bedrock build" ? "" : scripts.build
|
|
37671
37675
|
});
|
|
37672
37676
|
await fs4.promises.writeFile(path9.join(cwd, "bedrock.config.ts"), config, {
|
|
37673
37677
|
encoding: "utf-8"
|
|
@@ -37726,12 +37730,35 @@ var InitCommand = class extends Command2 {
|
|
|
37726
37730
|
});
|
|
37727
37731
|
p2.log.step(".gitignore \uD30C\uC77C\uC744 \uC5C5\uB370\uC774\uD2B8\uD558\uB294 \uC911...");
|
|
37728
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
|
+
);
|
|
37729
37756
|
switch (template) {
|
|
37730
37757
|
case "web-framework": {
|
|
37731
37758
|
await templateWebFramework({
|
|
37732
37759
|
appName,
|
|
37733
37760
|
cwd,
|
|
37734
|
-
|
|
37761
|
+
scripts: scriptInputs
|
|
37735
37762
|
});
|
|
37736
37763
|
}
|
|
37737
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.
|
|
4
|
+
"version": "0.0.0-dev.1741344445455",
|
|
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": "
|
|
49
|
+
"gitHead": "0d252c570426af9d227de01af7473b563f3b7884"
|
|
50
50
|
}
|