https://github.com/lvce-editor/package-extension
Packaging an extension into a tar.br file
https://github.com/lvce-editor/package-extension
Last synced: 3 months ago
JSON representation
Packaging an extension into a tar.br file
- Host: GitHub
- URL: https://github.com/lvce-editor/package-extension
- Owner: lvce-editor
- Created: 2022-06-17T21:29:50.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-09-14T15:37:28.000Z (8 months ago)
- Last Synced: 2024-09-15T01:33:49.233Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 329 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @lvce-editor/package-extension
Utility package for packaging an extension into a tar.br file.
## Usage
```js
import { copyFiles, packageExtension } from '@lvce-editor/package-extension'
import path, { dirname, join } from 'node:path'
import { fileURLToPath } from 'node:url'const __dirname = dirname(fileURLToPath(import.meta.url))
const root = path.join(__dirname, '..')await copyFiles({
root,
files: ['README.md', 'extension.json', 'languageConfiguration.json', 'src'],
})await packageExtension({
highestCompression: true,
inDir: join(root, 'dist'),
outFile: join(root, 'extension.tar.br'),
})
```## Gitpod
[](https://gitpod.io/#https://github.com/lvce-editor/package-extension)