0.0.2 • Published 3 years ago
directus-template v0.0.2
Directus-template
Author:
@SeaBassLab profile
tl;dr
A monorepo framework of npm workspaces and nx is used as a development dependency to make the developer experience easier and faster.
Installation
- Clone the repository
Clone with SSH or HTTPs. - Enter
cd directus-template. - Execute the command
npm run directus:appto create a new directus application. - Execute the
npm run devcommand to start the application in development mode. - Execute the
npm run startcommand to start the application in production mode.
Create Extensions
- Execute the command
npm run directus:extensionto create a new directus extension. - Choose the type of extension
- Choose TypeScript/ JavaScript
Add Extensions
To add a new extension in the application.
- Copy the exact name and version of the extension from your own
package.json.
Example:
{
"name": "directus-extension-editorjs",
"version": "1.0.0",
}- Add it as a dependency in the
package.jsonof the App.
Example:
"dependencies": {
"directus-extension-editorjs": "^1.0.0", // <-- nueva extension
"directus": "^9.18.1",
"mysql": "^2.18.1"
}