From e9cb9baadf52f3c4439de4bf1594dd12c9b60b66 Mon Sep 17 00:00:00 2001 From: Shaun Brown Date: Tue, 24 Jan 2023 17:47:04 +0000 Subject: [PATCH 1/2] make the creation of plugins.js explicit --- docs/developer-docs/latest/development/plugins-development.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/developer-docs/latest/development/plugins-development.md b/docs/developer-docs/latest/development/plugins-development.md index 8c90960646..280819ca6e 100644 --- a/docs/developer-docs/latest/development/plugins-development.md +++ b/docs/developer-docs/latest/development/plugins-development.md @@ -20,7 +20,8 @@ Strapi provides a [command line interface (CLI)](/developer-docs/latest/develope 2. Run `yarn strapi generate` or `npm run strapi generate` in a terminal window to start the interactive CLI. 4. Choose "plugin" from the list, press Enter, and give the plugin a name in kebab-case (e.g. `my-plugin`) 5. Choose either `JavaScript` or `TypeScript` for the plugin language. -6. Enable the plugin by adding it to the [plugins configurations](/developer-docs/latest/setup-deployment-guides/configurations/optional/plugins.md) file: +6. Create a plugins configuration file: `./config/plugins.js` or `./config/plugins.ts` for TypeScript projects. +7. Enable the plugin by adding it to the [plugins configurations](/developer-docs/latest/setup-deployment-guides/configurations/optional/plugins.md) file: @@ -56,6 +57,7 @@ Strapi provides a [command line interface (CLI)](/developer-docs/latest/develope ``` + From 8fa8c18b1566dc81a2bae206e3725112c6d29e7a Mon Sep 17 00:00:00 2001 From: Shaun Brown <97027841+StrapiShaun@users.noreply.github.com> Date: Wed, 25 Jan 2023 10:35:49 +0000 Subject: [PATCH 2/2] Update plugins-development.md --- docs/developer-docs/latest/development/plugins-development.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/developer-docs/latest/development/plugins-development.md b/docs/developer-docs/latest/development/plugins-development.md index 280819ca6e..fab7e6d442 100644 --- a/docs/developer-docs/latest/development/plugins-development.md +++ b/docs/developer-docs/latest/development/plugins-development.md @@ -20,7 +20,7 @@ Strapi provides a [command line interface (CLI)](/developer-docs/latest/develope 2. Run `yarn strapi generate` or `npm run strapi generate` in a terminal window to start the interactive CLI. 4. Choose "plugin" from the list, press Enter, and give the plugin a name in kebab-case (e.g. `my-plugin`) 5. Choose either `JavaScript` or `TypeScript` for the plugin language. -6. Create a plugins configuration file: `./config/plugins.js` or `./config/plugins.ts` for TypeScript projects. +6. Create a plugins configuration file if one does not already exist: `./config/plugins.js` or `./config/plugins.ts` for TypeScript projects. 7. Enable the plugin by adding it to the [plugins configurations](/developer-docs/latest/setup-deployment-guides/configurations/optional/plugins.md) file: