Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Dec 19, 2024
1 parent 94cf0d6 commit a5ad043
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,10 @@ export const downloadAndLinkExtension = async ({
console.log(` ‣ ${context.success.hl(p)}`);
});
}

console.log();
console.log(chalk.bold("Additional Notes"));
console.log(`‣ note that if you already have the ${context.success.hl("webiny watch")} command running, you'll need to restart it`);
} catch (e) {
switch (e.code) {
case "NO_OBJECTS_FOUND":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class AdminExtension extends AbstractExtension {
const indexTsxFilePath = `${extensionsFolderPath}/src/index.tsx`;

return [
`run (or restart if already running) ${chalk.green(watchCommand)} to start local development`,
`run ${chalk.green(watchCommand)} to start local development`,
`open ${chalk.green(indexTsxFilePath)} and start coding`,
`to install additional dependencies, run ${chalk.green(
`yarn workspace ${this.params.packageName} add <package-name>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export class ApiExtension extends AbstractExtension {
const indexTsxFilePath = `${extensionsFolderPath}/src/index.ts`;

return [
`run (or restart if already running) ${chalk.green(watchCommand)} to start local development`,
`run ${chalk.green(watchCommand)} to start local development`,
`open ${chalk.green(indexTsxFilePath)} and start coding`,
`to install additional dependencies, run ${chalk.green(
`yarn workspace ${this.params.packageName} add <package-name>`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export class PbElementExtension extends AbstractExtension {

return [
[
`run (or restart if already running) the following commands to start local development:`,
`run the following commands to start local development:`,
` ∙ ${chalk.green(watchCommandAdmin)}`,
` ∙ ${chalk.green(watchCommandWebsite)}`
].join("\n"),
Expand Down
4 changes: 4 additions & 0 deletions packages/cli-plugin-extensions/src/generateExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,10 @@ export const generateExtension = async ({ input, ora, context }: GenerateExtensi
console.log(`‣ ${message}`);
});
}

console.log();
console.log(chalk.bold("Additional Notes"));
console.log(`‣ note that if you already have the ${context.success.hl("webiny watch")} command running, you'll need to restart it`);
} catch (err) {
ora.fail("Could not create extension. Please check the logs below.");
console.log();
Expand Down

0 comments on commit a5ad043

Please sign in to comment.