Skip to content

Commit f5a3a6b

Browse files
chore(release): 4.0.0 (#35)
1 parent 8ae3689 commit f5a3a6b

File tree

11 files changed

+4899
-2478
lines changed

11 files changed

+4899
-2478
lines changed

.eslintrc.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
"use strict";
2+
3+
module.exports = {
4+
extends: [
5+
"plugin:itgalaxy/script",
6+
"plugin:itgalaxy/esnext",
7+
"plugin:itgalaxy/node"
8+
],
9+
overrides: [
10+
// Tests
11+
{
12+
extends: ["plugin:itgalaxy/jest"],
13+
excludedFiles: ["**/*.md"],
14+
files: ["**/__tests__/**/*", "**/__mocks__/**/*"],
15+
rules: {
16+
// For test cases
17+
"node/shebang": "off",
18+
19+
// Allow to use `console` (example - `mocking`)
20+
"no-console": "off"
21+
}
22+
},
23+
24+
// Markdown
25+
{
26+
extends: ["plugin:itgalaxy/dirty", "plugin:itgalaxy/markdown"],
27+
files: ["**/*.md"],
28+
rules: {
29+
"no-unused-vars": "off",
30+
"no-console": "off",
31+
"import/no-unresolved": "off",
32+
"node/no-unpublished-require": "off",
33+
"node/no-unpublished-import": "off"
34+
}
35+
}
36+
],
37+
root: true
38+
};

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.
44

55
This project adheres to [Semantic Versioning](http://semver.org).
66

7+
## 4.0.0 - 2019-09-16
8+
9+
- Changed: the option `logLevel` is removed.
10+
- Changed: use built-in webpack logger.
11+
- Changed: minimum require `webpack` version is `4.37.0`.
12+
- Fixed: throw error on `infrastructureLog` hook.
13+
- Fixed: output warning on empty hook commands.
14+
- Fixed: argument is empty when nested command does't return nothing.
15+
- Fixed: error message.
16+
- Fixed: invalid hook signature for some hook
17+
718
## 3.0.0 - 2019-06-25
819

920
- Changed: minimum require node version is >= 8.9.0.

README.md

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,17 +41,16 @@ Note: [list of command options](https://github.com/sindresorhus/execa#options).
4141

4242
## Options
4343

44-
| Name | Type | Default | Description |
45-
| :-------------------: | :---------: | :---------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------- |
46-
| **`on(NameOfEvent)`** | `{Array}` | `[]` | Array of scripts to execute on the event. | |
47-
| **`bail`** | `{Boolean}` | `compiler.options.bail` | Report the first error as a hard error instead of tolerating it. |
48-
| **`dev`** | `{Boolean}` | `true` | Switch for development environments. This causes scripts to execute once. Useful for running HMR on webpack-dev-server or webpack watch mode. |
49-
| **`logLevel`** | `string` | `warn` | Enable logging. |
44+
| Name | Type | Default | Description |
45+
| :------------------: | :---------: | :---------------------: | :-------------------------------------------------------------------------------------------------------------------------------------------- |
46+
| **`on(NameOfHook)`** | `{Array}` | `[]` | Array of commands to execute on the hook. | |
47+
| **`bail`** | `{Boolean}` | `compiler.options.bail` | Report the first error as a hard error instead of tolerating it. |
48+
| **`dev`** | `{Boolean}` | `true` | Switch for development environments. This causes scripts to execute once. Useful for running HMR on webpack-dev-server or webpack watch mode. |
5049

51-
### `on(NameOfEvent)`
50+
### `on(NameOfHook)`
5251

53-
List of [events](https://webpack.js.org/api/compiler-hooks/).
54-
Name of event contain - `on` + event name (first character in upper case).
52+
List of [hooks](https://webpack.js.org/api/compiler-hooks/).
53+
The name of hook contains: `on` + hook name (first character in upper case).
5554
Examples: `onBeforeRun`, `onRun`, `onWatchRun`, `onCompile` and etc.
5655

5756
**webpack.config.js**
@@ -142,19 +141,19 @@ module.exports = {
142141
};
143142
```
144143

145-
### `logLevel`
144+
## Examples
146145

147-
Logging for commands.
148-
149-
Supported logger levels [levels](https://github.com/webpack-contrib/webpack-log#level).
146+
### Set logger level
150147

151148
**webpack.config.js**
152149

153150
```js
154151
module.exports = {
152+
infrastructureLogging: {
153+
level: "warn"
154+
},
155155
plugins: [
156156
new ExecaPlugin({
157-
logLevel: "info",
158157
onBeforeRun: [
159158
{
160159
args: ["build"],

0 commit comments

Comments
 (0)