https://github.com/mrphu3074/directus-ext-scripts
Develop Directus extensions(interface, pages, layouts...) with ease!
https://github.com/mrphu3074/directus-ext-scripts
directus directus-extension
Last synced: 8 months ago
JSON representation
Develop Directus extensions(interface, pages, layouts...) with ease!
- Host: GitHub
- URL: https://github.com/mrphu3074/directus-ext-scripts
- Owner: mrphu3074
- License: apache-2.0
- Created: 2019-01-23T08:04:01.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T08:42:20.000Z (over 6 years ago)
- Last Synced: 2025-02-01T10:32:54.004Z (8 months ago)
- Topics: directus, directus-extension
- Language: JavaScript
- Size: 68.4 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Directus Extension Scripts
## Installation
Node version: >= 8.x.x`npm install --save-dev directus-ext`
----
## Configuration
Library will read some config from **package.json**. Please make sure you already setup those fields.- #### name
package.name will be folder name.
- #### outDir
For example: you're creating custom page, outputDir maybe `public/extensions/custom/pages`
- #### meta
Library will use `meta` object to generate `meta.json`
----
## Usage
#### Global command line`Watch: directus-ext watch`
`Build production: directus-ext build`
#### Inside Extension
`npm install --save-dev directus-ext`
In `package.json`
```
{
"scripts: {
"dev": "directus-ext",
"build": "directus-ext build"
}
}
```## Full Configuration
```
{
"name": "report-page",
"version": "1.0.0",
"description": "",
"outDir": "PROJECT/public/extensions/custom/pages",
"meta": {
"name": "Reporting",
"version": "0.0.1"
},
"scripts": {
"dev": "directus-ext",
"build": "directus-ext build"
},
"keywords": [],
"author": "",
"license": "ISC"
}
```