0.0.5 • Published 1 year ago

@es-exec/esbuild-plugin-start v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ES Start

A plugin for running a script on esbuild end (kind of like nodemon).

Installation

npm

npm install --save-dev @es-exec/esbuild-plugin-start

yarn

yarn add --dev @es-exec/esbuild-plugin-start

Usage

import start from '@es-exec/esbuild-plugin-start';

/** @type import('@es-exec/esbuild-plugin-start').ESLintPluginOptions */
const options = {
    ..., // Any other es start option.
    script: 'sh ./run.sh', // Required. The script to start after the build completes.
};

export default {
    ..., // Other esbuild config options.
    plugins: [start(options)],
};