@pedily/extension-scripts

0.0.3 • Public • Published

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 in tsconfig.json
    • [x] falls back to the main file's directory in package.json
  • [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] 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

Readme

Keywords

Package Sidebar

Install

npm i @pedily/extension-scripts

Weekly Downloads

1

Version

0.0.3

License

MIT

Unpacked Size

19.7 kB

Total Files

17

Last publish

Collaborators

  • pedily