@pedily/extension-scripts
v0.0.4
Published
Utility that helps creating Extensions for the Cognigy.AI platform
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-scriptsUsage
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
outDirintsconfig.json - [x] falls back to the
mainfile'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.pngfrom the project folder - [x] will fall back to adding a dummy
icon.pngin case you don't provide one - [ ] will fall back to adding a dummy
icon.pngin case the one you provided is invalid
- [x] will add your
- [x] a
README.md- [x] will add your
README.mdfrom the project folder - [x] will fall back to adding a dummy
README.mdin case you don't provide one
- [x] will add your
