Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sxzz/unplugin-starter

Starter template for unplugin.
https://github.com/sxzz/unplugin-starter

Last synced: 2 months ago
JSON representation

Starter template for unplugin.

Awesome Lists containing this project

README

        

# unplugin-starter [![npm](https://img.shields.io/npm/v/unplugin-starter.svg)](https://npmjs.com/package/unplugin-starter)

[![Unit Test](https://github.com/sxzz/unplugin-starter/actions/workflows/unit-test.yml/badge.svg)](https://github.com/sxzz/unplugin-starter/actions/workflows/unit-test.yml)

Starter template for [unplugin](https://github.com/unjs/unplugin).

## Template Usage

To use this template, clone it down using:

```bash
npx degit sxzz/unplugin-starter unplugin-my-plugin
```

And do a global replacement of `unplugin-starter` with your plugin name.

Then you can start developing your unplugin πŸ”₯

To run unit tests, run: `pnpm run test`.
To release a new version, run: `pnpm run release`.

## Installation

```bash
npm i -D unplugin-starter
```

Vite

```ts
// vite.config.ts
import UnpluginStarter from 'unplugin-starter/vite'

export default defineConfig({
plugins: [UnpluginStarter()],
})
```


Rollup

```ts
// rollup.config.js
import UnpluginStarter from 'unplugin-starter/rollup'

export default {
plugins: [UnpluginStarter()],
}
```


Rolldown

```ts
// rolldown.config.js
import UnpluginStarter from 'unplugin-starter/rolldown'

export default {
plugins: [UnpluginStarter()],
}
```


esbuild

```ts
// esbuild.config.js
import { build } from 'esbuild'

build({
plugins: [require('unplugin-starter/esbuild')()],
})
```


Webpack

```ts
// webpack.config.js
module.exports = {
/* ... */
plugins: [require('unplugin-starter/webpack')()],
}
```


## Sponsors





## License

[MIT](./LICENSE) License Β© 2024-PRESENT [三咲智子](https://github.com/sxzz)