# @zettelooo/extension-build-tools

> Zettel: Extension build helper tools

Latest version **2.0.1** (published 2023-08-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install @zettelooo/extension-build-tools
pnpm add @zettelooo/extension-build-tools
yarn add @zettelooo/extension-build-tools
bun add @zettelooo/extension-build-tools
```

Provides the command `zettel-ebt`.

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2023-08-04 |
| First published | 2023-05-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 11.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Zettel |
| Maintainers | zettelooo |
| Keywords | zettel, extension, build-tools |

## Links

- npm: https://www.npmjs.com/package/@zettelooo/extension-build-tools
- Repository: https://github.com/zettelooo/extension-build-tools
- Homepage: https://github.com/zettelooo/extension-build-tools#readme
- Issues: https://github.com/zettelooo/extension-build-tools/issues
- npm.io page: https://npm.io/package/@zettelooo/extension-build-tools

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^1.4.0
- [jszip](https://npm.io/package/jszip.md) ^3.10.1
- [yargs](https://npm.io/package/yargs.md) ^17.7.2
- [formdata-node](https://npm.io/package/formdata-node.md) ^5.0.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2023-08-04
- 2.0.0 — 2023-07-04
- 1.1.5 — 2023-06-10
- 1.1.4 — 2023-06-01
- 1.1.3 — 2023-05-27
- 1.1.2 — 2023-05-24
- 1.1.1 — 2023-05-22
- 1.1.0 — 2023-05-22
- 1.0.6 — 2023-05-17

## README

# Zettel: Extension build helper tools

Build and helper tools for extension development.

## Installation

```bash
$ npm install --save-dev @zettelooo/extension-build-tools
```

## Usage

This package provides shell command `zettel-ebt` executable binary.
You can use it to speed up a couple of tasks while developing Zettel extensions.

See help:

```bash
$ zettel-ebt --help   # / -h
```

Version extension's manifest:

```bash
$ zettel-ebt version patch   # / minor / major
```

Pack and zip extension's files:

```bash
$ zettel-ebt pack
```

Upload the extension's zipped file:

```bash
$ ZETTEL_TARGET_ENVIRONMENT=live ZETTEL_DEVELOPER_ACCESS_KEY=??? zettel-ebt upload
```

## Configuration

You may provide the following configuration parameters either as the CLI command flags or options in the config file; which is either `.zettelebtrc`, `.zettelebtrc.json`, `.zettelebtrc.js`, `.zettelebtrc.yml`, or `.zettelebtrc.yaml`.

| RC file property path | Command-line flag | Default | Description |
|---|---|---|---|
| `paths.root` | `-r`, `--root-path` | `"."` | Project root relative path, contains `package.json` file
| `paths.public` | `-p`, `--public-path` | `"public"` | Public folder relative path to root, contains `manifest.jsonc` file
| `paths.src` | `-s`, `--src-path` | `"src"` | Source folder relative path to root, contains `index.js` file
| `paths.out` | `-o`, `--out-path` | `"out"` | Dist folder relative path to root, to place the packed content

## Development

Clone the repository locally:

```bash
$ git clone git@github.com:zettelooo/extension-build-tools.git
```

Install the dependencies:

```bash
$ cd extension-build-tools
$ npm install
```

It's recommended to use **VS Code** to develop this project.
You need to have **Prettier** extension to be installed on your IDE.

## Publication

Publish a new version of the NPM package:

- Push all the changes. The workspace needs to be cleaned.
- Make sure you're on `master` branch.

```bash
$ npm version patch   # / minor / major / any other valid semantic version
```

## Misc

You can use the following NPM script to access [Zettel Build Tools](https://github.com/zettelooo/build-tools#usage):

```bash
$ npm run bt -- <command>   # e.g.: npm run bt - update
```

------------------

Copyright: **Zettel, 2020-23**

---
_Source: https://npm.io/package/@zettelooo/extension-build-tools · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
