@brightsideoy/kama 0.1.0-alpha.16 → 0.1.0-alpha.17
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/bin/cli.js +6 -6
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -30,9 +30,9 @@ async function main() {
|
|
|
30
30
|
* MODE 1: Kickstart full Monorepo Workspace
|
|
31
31
|
*/
|
|
32
32
|
async function createFullWorkspace() {
|
|
33
|
-
const projName = (await rl.question('Project folder name [kama-
|
|
34
|
-
const cmsDomain = (await rl.question('CMS Admin Domain
|
|
35
|
-
const siteDomain = (await rl.question('First Website Domain
|
|
33
|
+
const projName = (await rl.question('Project folder name [kama-workspace]: ')) || 'kama-workspace';
|
|
34
|
+
const cmsDomain = (await rl.question('CMS Admin Domain (e.g., cms.example.com): ')) || 'cms.example.com';
|
|
35
|
+
const siteDomain = (await rl.question('First Website Domain (e.g., www.example.com): ')) || 'www.example.com';
|
|
36
36
|
|
|
37
37
|
const rootDir = join(process.cwd(), projName);
|
|
38
38
|
|
|
@@ -103,7 +103,7 @@ async function createFullWorkspace() {
|
|
|
103
103
|
);
|
|
104
104
|
|
|
105
105
|
// 3. Setup First Astro Site
|
|
106
|
-
const siteFolderName = siteDomain.split('.')[0]; // e.g. "
|
|
106
|
+
const siteFolderName = siteDomain.split('.')[0]; // e.g. "www" or "demo"
|
|
107
107
|
await generateAstroSite(rootDir, siteFolderName, siteDomain, cmsDomain);
|
|
108
108
|
|
|
109
109
|
console.log(`\n✨ Workspace ready! Next steps:`);
|
|
@@ -123,9 +123,9 @@ async function createNewSiteOnly() {
|
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
const siteFolder = await rl.question('Site folder name (e.g., site
|
|
126
|
+
const siteFolder = await rl.question('Site folder name (e.g., my-new-site): ');
|
|
127
127
|
const siteDomain = await rl.question('Website Domain (e.g., brand.com): ');
|
|
128
|
-
const cmsDomain = (await rl.question('CMS API Domain
|
|
128
|
+
const cmsDomain = (await rl.question('CMS API Domain (e.g., cms.example.com): ')) || 'cms.example.com';
|
|
129
129
|
|
|
130
130
|
await generateAstroSite(rootDir, siteFolder, siteDomain, cmsDomain.replace(/^https?:\/\//, ''));
|
|
131
131
|
|