Skip to content

Commit 20b4450

Browse files
authored
docs: move overlay, progress, and webSocketURL examples to client (#3721)
* docs: move `overlay` and `progress` examples to `client` * docs: move `webSocketURL` examples to `client` * test: fix
1 parent 8a3f0d8 commit 20b4450

File tree

12 files changed

+6
-5
lines changed

12 files changed

+6
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ npm-debug.log
55
.idea
66

77
client
8+
!/examples/client
89
!/test/client
910
coverage
1011
node_modules
File renamed without changes.
File renamed without changes.

examples/overlay/webpack.config.js renamed to examples/client/overlay/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// our setup function adds behind-the-scenes bits to the config that all of our
44
// examples need
5-
const { setup } = require("../util");
5+
const { setup } = require("../../util");
66

77
module.exports = setup({
88
context: __dirname,
File renamed without changes.
File renamed without changes.

examples/progress/webpack.config.js renamed to examples/client/progress/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// our setup function adds behind-the-scenes bits to the config that all of our
44
// examples need
5-
const { setup } = require("../util");
5+
const { setup } = require("../../util");
66

77
module.exports = setup({
88
context: __dirname,

examples/web-socket-url/webpack.config.js renamed to examples/client/web-socket-url/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
// our setup function adds behind-the-scenes bits to the config that all of our
44
// examples need
5-
const { setup } = require("../util");
5+
const { setup } = require("../../util");
66

77
module.exports = setup({
88
context: __dirname,

test/cli/basic.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe("basic", () => {
102102
);
103103
const examplePath = path.resolve(
104104
__dirname,
105-
"../../examples/web-socket-url"
105+
"../../examples/client/web-socket-url"
106106
);
107107
const cp = execa("node", ["--port", port, cliPath], { cwd: examplePath });
108108

@@ -153,7 +153,7 @@ describe("basic", () => {
153153
);
154154
const examplePath = path.resolve(
155155
__dirname,
156-
"../../examples/web-socket-url"
156+
"../../examples/client/web-socket-url"
157157
);
158158
const cp = execa(
159159
"node",

0 commit comments

Comments
 (0)