Add create command to extension-sdk CLI (#6590)

* Add create command to extension-sdk CLI

* Extract extension package.json key name to shared

* Check package.json before building extensions

* Add source field to package.json

* Pin extension-sdk verson in scaffolded package

* Change options color to magenta
This commit is contained in:
Nicola Krumschmidt
2021-07-07 14:34:51 +02:00
committed by GitHub
parent e7a737bba8
commit ff393eab3b
19 changed files with 277 additions and 8 deletions

View File

@@ -7,3 +7,5 @@ export const API_EXTENSION_TYPES: ApiExtensionType[] = ['endpoint', 'hook'];
export const EXTENSION_TYPES: ExtensionType[] = [...APP_EXTENSION_TYPES, ...API_EXTENSION_TYPES];
export const EXTENSION_NAME_REGEX = /^(?:(?:@[^/]+\/)?directus-extension-|@directus\/extension-).+$/;
export const EXTENSION_PKG_KEY = 'directus:extension';