From 8fa1a1e813e00d50a7c0613bf6bcb3fbba9e9035 Mon Sep 17 00:00:00 2001 From: s00d Date: Wed, 16 Oct 2019 19:28:17 +0500 Subject: [PATCH] fix readme --- README.md | 15 ++++++++++++--- package.json | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 484b3a2..d685b1d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ [![npm version](https://badge.fury.io/js/webpack-shell-plugin-next.svg)](https://badge.fury.io/js/webpack-shell-plugin-next) # Webpack Shell Plugin Next -fix webpack 4 deprecated method. +fix webpack 4 deprecated method. add typescript and other This plugin allows you to run any shell commands before or after webpack 4 builds. This will work for both webpack 4. @@ -44,14 +44,23 @@ module.exports = { ### API * `onBeforeBuild`: array of scripts to execute before every build. + **Default: ```{scripts: [],blocking: false,parallel: false}```** -* `onBuildError`: array of scripts to execute when there is an error during compilation. **Default: [ ]** + +* `onBuildError`: array of scripts to execute when there is an error during compilation. + **Default: ```{scripts: [],blocking: false,parallel: false}```** + * `onBuildStart`: configuration object for scripts that execute before a compilation. + **Default: ```{scripts: [],blocking: false,parallel: false}```** + * `onBuildEnd`: configuration object for scripts that execute after files are emitted at the end of the compilation. + **Default: ```{scripts: [],blocking: false,parallel: false}```** + * `onBuildExit`: configuration object for scripts that execute after webpack's process is complete. *Note: this event also fires in `webpack --watch` when webpack has finished updating the bundle.* + **Default: ```{scripts: [],blocking: false,parallel: false}```** @@ -85,7 +94,7 @@ Pavel Kuzmin ## Change Log -### 0.7.0 +### 1.0.0 ``` - add ts - add onBeforeBuild and onBuildExit diff --git a/package.json b/package.json index 04a265a..1cb08d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "webpack-shell-plugin-next", - "version": "1.0.0", + "version": "1.0.1", "description": "Run shell commands before and after webpack builds", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -34,7 +34,7 @@ "script", "opie", "manion", - "1337" + "typescript" ], "license": "MIT", "bugs": {