@pedily/extension-scripts
v0.0.3
Published
Utility that helps creating Extensions for the Cognigy.AI platform
Downloads
19
Readme
Extension Scripts
This package contains scripts that aim to make the development of extensions easier.
Installation
Install the package as a "development dependency" using npm
npm i -D @pedily/extension-scripts
Usage
You can automate the generation of the "extension file" .tar.gz
file by calling extension-scripts bundle
in your npm scripts like this:
{
"scripts": {
"bundle": "extension-scripts package"
}
}
This will create a file called {{PACKAGE_NAME}}.tar.gz
in your project folder, where {{PACKAGE_NAME}}
is equal to the name
field in your package.json
.
Contents of the extension file (todo-list for implementation):
- [x] your extension source code
- [ ] auto-detects TypeScript outputs by checking
outDir
intsconfig.json
- [x] falls back to the
main
file's directory inpackage.json
- [ ] auto-detects TypeScript outputs by checking
- [x] your
package.json
- [ ] it will nag about missing properties and add sane defaults if some are missing
- [x] an
icon.png
- [x] will add your
icon.png
from the project folder - [x] will fall back to adding a dummy
icon.png
in case you don't provide one - [ ] will fall back to adding a dummy
icon.png
in case the one you provided is invalid
- [x] will add your
- [x] a
README.md
- [x] will add your
README.md
from the project folder - [x] will fall back to adding a dummy
README.md
in case you don't provide one
- [x] will add your