Collection of Directus extensions.
- Open the terminal in your Directus project.
- Install the extension:
npm install directus-extension-<extension-name>The easiest way to start developing extensions is to use the create-directus-extension utility:
pnpx create-directus-extensionAfter specifying the name of the extension, the type of the extension and the programming language you want to use, the utility will create a folder with the recommended file structure to create an extension.
Use the watch script when developing your extension because it rebuilds your source code whenever a file has changed.
pnpm watchBefore your extension can be used by Directus, it has to be built. If you used the create-directus-extension utility to scaffold your extension, building your extension is as easy as running:
pnpm build-
Increment the version number in the
package.jsonfile. -
Build the package:
pnpm build- Publish the package:
npm publish --access=public