@wdio/static-server-service 10.0.0-alpha.150 → 10.0.0-alpha.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -11
- package/build/index.d.ts +2 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +3 -0
- package/package.json +6 -6
- package/AGENTS.md +0 -20
package/README.md
CHANGED
|
@@ -30,11 +30,9 @@ export const config = {
|
|
|
30
30
|
|
|
31
31
|
### `folders` (required)
|
|
32
32
|
|
|
33
|
-
<Option type="Array<Object>">
|
|
34
|
-
|
|
35
33
|
Array of folder paths and mount points.
|
|
36
34
|
|
|
37
|
-
|
|
35
|
+
Type: `Array<Object>`
|
|
38
36
|
Props:
|
|
39
37
|
- mount `{String}` - URL endpoint where folder will be mounted.
|
|
40
38
|
- path `{String}` - Path to the folder to mount.
|
|
@@ -57,23 +55,23 @@ Props:
|
|
|
57
55
|
|
|
58
56
|
### `port`
|
|
59
57
|
|
|
60
|
-
<Option type="Number" default="4567">
|
|
61
|
-
|
|
62
58
|
Port to bind the server.
|
|
63
59
|
|
|
64
|
-
|
|
60
|
+
Type: `Number`
|
|
65
61
|
|
|
66
|
-
|
|
62
|
+
Default: `4567`
|
|
67
63
|
|
|
68
|
-
|
|
64
|
+
### `middleware`
|
|
69
65
|
|
|
70
66
|
Array of middleware objects. Load and instatiate these in the config, and pass them in for the static server to use.
|
|
71
67
|
|
|
72
|
-
|
|
68
|
+
Type: `Array<Object>`
|
|
73
69
|
Props:
|
|
74
70
|
- mount `{String}` - URL endpoint where middleware will be mounted.
|
|
75
71
|
- middleware `<Object>` - Middleware function callback.
|
|
76
72
|
|
|
73
|
+
Default: `[]`
|
|
74
|
+
|
|
77
75
|
``` javascript
|
|
78
76
|
// wdio.conf.js
|
|
79
77
|
import middleware from 'middleware-package'
|
|
@@ -95,5 +93,3 @@ export const config = {
|
|
|
95
93
|
----
|
|
96
94
|
|
|
97
95
|
For more information on WebdriverIO, see the [homepage](http://webdriver.io).
|
|
98
|
-
|
|
99
|
-
|
package/build/index.d.ts
CHANGED
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,eAAO,MAAM,QAAQ,6BAAuB,CAAA;AAC5C,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,mBAAmB;SAAG;KACzD;CACJ"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,MAAM,eAAe,CAAA;AAChD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAA;AAErD,MAAM,CAAC,OAAO,OAAO,mBAAmB;CAAI;AAC5C,eAAO,MAAM,QAAQ,6BAAuB,CAAA;AAC5C,cAAc,YAAY,CAAA;AAE1B,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,aAAc,SAAQ,mBAAmB;SAAG;KACzD;CACJ"}
|
package/build/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/static-server-service",
|
|
3
|
-
"version": "10.0.0-alpha.
|
|
3
|
+
"version": "10.0.0-alpha.18+dbf0f4971",
|
|
4
4
|
"description": "A WebdriverIO service that can serve your static websites",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-static-server-service",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=18.20.0"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"import": "./build/index.js"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"typeScriptVersion": "
|
|
37
|
+
"typeScriptVersion": "3.8.3",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@wdio/logger": "10.0.0-alpha.
|
|
40
|
-
"@wdio/types": "10.0.0-alpha.
|
|
39
|
+
"@wdio/logger": "10.0.0-alpha.18+dbf0f4971",
|
|
40
|
+
"@wdio/types": "10.0.0-alpha.18+dbf0f4971",
|
|
41
41
|
"express": "^5.1.0",
|
|
42
42
|
"morgan": "^1.7.0"
|
|
43
43
|
},
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "dbf0f497130676040ce4212d9cf6459adfe16c42"
|
|
52
52
|
}
|
package/AGENTS.md
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# @wdio/static-server-service
|
|
2
|
-
|
|
3
|
-
Launcher-only service. `onPrepare` serves folders and has no worker hooks.
|
|
4
|
-
|
|
5
|
-
## Guardrails
|
|
6
|
-
|
|
7
|
-
- Do not add a default export. `initializeLauncherService` treats a default
|
|
8
|
-
function as a worker service and would load this package in every worker.
|
|
9
|
-
`@wdio/firefox-profile-service` is the same shape.
|
|
10
|
-
- Launcher tests own `onPrepare`: no server without `folders`, folder mounts,
|
|
11
|
-
listen port, the access-log stream, and middleware. Assert the handler
|
|
12
|
-
`express.static` returns. `undefined` is only the automock default and does
|
|
13
|
-
not prove the mount.
|
|
14
|
-
- Option types are covered in `tests/typings/webdriverio/config.ts`.
|
|
15
|
-
|
|
16
|
-
## Commands
|
|
17
|
-
|
|
18
|
-
```sh
|
|
19
|
-
pnpm run test:package wdio-static-server-service
|
|
20
|
-
```
|