# ${NAME}

[coScene](https://www.coscene.cn/) allows developers to create [extensions](https://docs.coscene.cn/docs/viz/extensions/Introduction), or custom code that is loaded and executed inside the coScene application. This can be used to add custom panels. Extensions are authored in TypeScript using the `@coscene/extension` SDK.

## Develop

Extension development uses the `npm` package manager to install development dependencies and run build scripts.

To install extension dependencies, run `npm` from the root of the extension package.

```sh
npm install
```

To build and install the extension into your coStudio, run:

```sh
npm run local-install
```

Open the coStudio (or `ctrl-R` to refresh if it is already open). Your extension is installed and available within the app.

## Package

Extensions are packaged into `.coe` files. These files contain the metadata (package.json) and the build code for the extension.

Before packaging, make sure to set `name`, `publisher`, `version`, and `description` fields in _package.json_. When ready to distribute the extension, run:

```sh
npm run package
```

This command will package the extension into a `.coe` file in the local directory.
