Skip to content

Commit b5d4ed1

Browse files
author
jeromeh
committed
2 parents 09838f2 + b38c257 commit b5d4ed1

File tree

4 files changed

+48
-47
lines changed

4 files changed

+48
-47
lines changed

.github/workflows/nodejs.yml

+9
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,16 @@ jobs:
7878
if: matrix.os == 'windows-latest'
7979
run: npm i -g npm
8080

81+
- name: Cache Node.js modules
82+
id: cache
83+
uses: actions/cache@v2
84+
with:
85+
# npm cache files are stored in `~/.npm` on Linux/macOS
86+
path: ~/.npm
87+
key: ${{ runner.OS }}-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
88+
8189
- name: Install dependencies
90+
if: steps.cache.outputs.cache-hit != 'true'
8291
run: npm ci
8392

8493
- name: Install webpack ${{ matrix.webpack-version }}

bin/cli-flags.js

-20
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,21 @@
11
'use strict';
22

3-
const ADVANCED_GROUP = 'Advanced options:';
4-
const DISPLAY_GROUP = 'Stats options:';
5-
const SSL_GROUP = 'SSL options:';
6-
const CONNECTION_GROUP = 'Connection options:';
7-
const RESPONSE_GROUP = 'Response options:';
8-
const BASIC_GROUP = 'Basic options:';
9-
103
module.exports = {
114
devServer: [
125
{
136
name: 'host',
147
type: String,
158
description: 'The hostname/ip address the server will bind to',
16-
group: CONNECTION_GROUP,
179
},
1810
{
1911
name: 'port',
2012
type: Number,
2113
description: 'The port',
22-
group: CONNECTION_GROUP,
2314
},
2415
{
2516
name: 'static',
2617
type: [String, Boolean],
2718
description: 'A directory to serve static content from.',
28-
group: RESPONSE_GROUP,
2919
multiple: true,
3020
negative: true,
3121
},
@@ -38,13 +28,11 @@ module.exports = {
3828
{
3929
name: 'https',
4030
type: Boolean,
41-
group: SSL_GROUP,
4231
description: 'HTTPS',
4332
},
4433
{
4534
name: 'http2',
4635
type: Boolean,
47-
group: SSL_GROUP,
4836
description: 'HTTP/2, must be used with HTTPS',
4937
},
5038
{
@@ -56,7 +44,6 @@ module.exports = {
5644
name: 'client-progress',
5745
type: Boolean,
5846
description: 'Print compilation progress in percentage in the browser',
59-
group: BASIC_GROUP,
6047
processor(opts) {
6148
opts.client = opts.client || {};
6249
opts.client.progress = opts.clientProgress;
@@ -67,7 +54,6 @@ module.exports = {
6754
name: 'hot-only',
6855
type: Boolean,
6956
description: 'Do not refresh page if HMR fails',
70-
group: ADVANCED_GROUP,
7157
processor(opts) {
7258
opts.hot = 'only';
7359
delete opts.hotOnly;
@@ -77,7 +63,6 @@ module.exports = {
7763
name: 'setup-exit-signals',
7864
type: Boolean,
7965
description: 'Close and exit the process on SIGINT and SIGTERM',
80-
group: ADVANCED_GROUP,
8166
negative: true,
8267
},
8368
{
@@ -105,7 +90,6 @@ module.exports = {
10590
{
10691
name: 'client-logging',
10792
type: String,
108-
group: DISPLAY_GROUP,
10993
description:
11094
'Log level in the browser (none, error, warn, info, log, verbose)',
11195
processor(opts) {
@@ -118,26 +102,22 @@ module.exports = {
118102
name: 'history-api-fallback',
119103
type: Boolean,
120104
description: 'Fallback to /index.html for Single Page Applications.',
121-
group: RESPONSE_GROUP,
122105
},
123106
{
124107
name: 'compress',
125108
type: Boolean,
126109
description: 'Enable gzip compression',
127-
group: RESPONSE_GROUP,
128110
},
129111
{
130112
name: 'public',
131113
type: String,
132114
description: 'The public hostname/ip address of the server',
133-
group: CONNECTION_GROUP,
134115
},
135116
{
136117
name: 'firewall',
137118
type: String,
138119
description:
139120
'Enable/disable firewall, or set hosts that are allowed to access the dev server',
140-
group: CONNECTION_GROUP,
141121
multiple: true,
142122
},
143123
],

package-lock.json

+34-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"del": "^6.0.0",
4444
"express": "^4.17.1",
4545
"find-cache-dir": "^3.3.1",
46-
"graceful-fs": "^4.2.4",
46+
"graceful-fs": "^4.2.5",
4747
"html-entities": "^1.3.3",
4848
"http-proxy-middleware": "^1.0.6",
4949
"internal-ip": "^6.2.0",
@@ -63,7 +63,7 @@
6363
"url": "^0.11.0",
6464
"util": "^0.12.3",
6565
"webpack-dev-middleware": "^4.0.2",
66-
"ws": "^7.4.2"
66+
"ws": "^7.4.3"
6767
},
6868
"devDependencies": {
6969
"@babel/cli": "^7.12.10",
@@ -74,7 +74,7 @@
7474
"@commitlint/cli": "^11.0.0",
7575
"@commitlint/config-conventional": "^11.0.0",
7676
"@jest/test-sequencer": "^26.6.3",
77-
"acorn": "^8.0.4",
77+
"acorn": "^8.0.5",
7878
"babel-jest": "^26.6.3",
7979
"babel-loader": "^8.2.2",
8080
"body-parser": "^1.19.0",
@@ -91,8 +91,8 @@
9191
"jest-circus": "^26.6.3",
9292
"less": "^3.12.2",
9393
"less-loader": "^7.1.0",
94-
"lint-staged": "^10.5.3",
95-
"marked": "^1.2.7",
94+
"lint-staged": "^10.5.4",
95+
"marked": "^1.2.9",
9696
"memfs": "^3.2.0",
9797
"npm-run-all": "^4.1.5",
9898
"prettier": "^2.2.1",

0 commit comments

Comments
 (0)