# webpack-hooks-shellscripts

> Just triggers some shellscripts on webpack compiler hooks.

Latest version **1.0.2** (published 2019-05-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install webpack-hooks-shellscripts
pnpm add webpack-hooks-shellscripts
yarn add webpack-hooks-shellscripts
bun add webpack-hooks-shellscripts
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-05-08 |
| First published | 2019-05-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.9.0 |
| Dependencies | 2 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | vblitz |
| Keywords | webpack, hook, shell |

## Links

- npm: https://www.npmjs.com/package/webpack-hooks-shellscripts
- Repository: https://github.com/nutshell-lab/webpack-hooks-shellscripts
- npm.io page: https://npm.io/package/webpack-hooks-shellscripts

## Dependencies (2)

- [execa](https://npm.io/package/execa.md) ^1.0.0
- [p-map-series](https://npm.io/package/p-map-series.md) ^2.1.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2019-05-08
- 1.0.1 — 2019-05-07
- 1.0.0 — 2019-05-07

## README

# webpack-hooks-shellscripts

[![Build Status](https://travis-ci.org/nutshell-lab/webpack-hooks-shellscripts.svg?branch=master)](https://travis-ci.org/nutshell-lab/webpack-hooks-shellscripts)
[![Maintainability](https://api.codeclimate.com/v1/badges/3a0e1bb6be50fc9c0d47/maintainability)](https://codeclimate.com/github/nutshell-lab/webpack-hooks-shellscripts/maintainability)
[![NPM version](https://badgen.net/npm/v/webpack-hooks-shellscripts)](https://www.npmjs.com/package/webpack-hooks-shellscripts)
[![NPM bundle size](https://badgen.net/bundlephobia/min/webpack-hooks-shellscripts)](https://bundlephobia.com/result?p=webpack-hooks-shellscripts)

> Just triggers some shellscripts on webpack compiler hooks.

## Install

```sh
yarn add -D webpack-hooks-shellscripts
```

## Usage

Add the plugin to your webpack config.

```js
// webpack.config.js
const hooksScriptPlugin = require('webpack-hooks-shellscripts')

module.exports = {
  plugins: [
    hooksScriptPlugin({
      beforeEmit: ['rm -r ./dist'],
      afterEmit: ['echo "Build succeeded"']
    })
  ]
}
```

## API

### hooksShellScriptsPlugin(bindings)

#### bindings

Type: `object`

Hooks/Scripts bindings.

```js
// example
{
  beforeRun: ['echo "do this"', 'echo "then that"'],
  beforeCompile: ['./do-something']
}
```

See https://webpack.js.org/api/compiler-hooks/ to get an exhaustive hooks list.

## License

MIT © [Nutshell](https://nutshell-lab.com)

---
_Source: https://npm.io/package/webpack-hooks-shellscripts · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
