Skip to content

Commit

Permalink
Adjust documentation links used in cli (#3478)
Browse files Browse the repository at this point in the history
* fix(mc-scripts): adjust documentation links used in cli

* fix(create-mc-app): lintin fix
  • Loading branch information
CarlosCortizasCT authored Apr 4, 2024
1 parent 88cf760 commit ec61112
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .changeset/olive-bananas-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@commercetools-frontend/create-mc-app': patch
---

Fix documentation links used in the cli when creating a new custom aplication or custom view.
9 changes: 4 additions & 5 deletions packages/create-mc-app/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,9 @@ process.on('unhandledRejection', (err) => {

const messagesByApplicationType = {
[applicationTypes['custom-application']]: {
docsLink: 'https://docs.commercetools.com/custom-applications',
featureName: 'Custom Application',
},
[applicationTypes['custom-view']]: {
docsLink:
'https://docs-beta-custom-views.commercetools.vercel.app/custom-views',
featureName: 'Custom View',
},
} as const;
Expand Down Expand Up @@ -91,7 +88,9 @@ const run = () => {
const messages = messagesByApplicationType[taskOptions.applicationType];

console.log('');
console.log(`Documentation available at ${messages.docsLink}`);
console.log(
'Documentation available at https://docs.commercetools.com/merchant-center-customizations/'
);
console.log('');

const shouldInstallDependencies =
Expand Down Expand Up @@ -125,7 +124,7 @@ const run = () => {
console.log(`$ ${packageManager} start`);
console.log('');
console.log(
`Visit ${messages.docsLink} for more info about developing ${messages.featureName}. Enjoy 🚀`
`Visit https://docs.commercetools.com/merchant-center-customizations/ for more info about developing ${messages.featureName}. Enjoy 🚀`
);
});

Expand Down

0 comments on commit ec61112

Please sign in to comment.