protoyard 1.1.2 → 1.2.0
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/capture.d.ts +1 -0
- package/capture.js +8 -0
- package/package.json +15 -3
- package/static-server.d.ts +1 -0
- package/static-server.js +8 -0
package/capture.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@protoyard/cli/capture';
|
package/capture.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/**
|
|
3
|
+
* `protoyard/capture`: deterministic PNG captures of a running prototype
|
|
4
|
+
* (`capture`, `withReadyPage`, `launchChromium`, `screenshot`), the same
|
|
5
|
+
* capture the CLI uses. Playwright is optional. Re-exported from
|
|
6
|
+
* `@protoyard/cli/capture` at the same version.
|
|
7
|
+
*/
|
|
8
|
+
export * from '@protoyard/cli/capture';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "protoyard",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "The protoyard command line under its short name: `npx protoyard` runs @protoyard/cli at the same version.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -20,6 +20,14 @@
|
|
|
20
20
|
".": {
|
|
21
21
|
"types": "./index.d.ts",
|
|
22
22
|
"default": "./index.js"
|
|
23
|
+
},
|
|
24
|
+
"./capture": {
|
|
25
|
+
"types": "./capture.d.ts",
|
|
26
|
+
"default": "./capture.js"
|
|
27
|
+
},
|
|
28
|
+
"./static-server": {
|
|
29
|
+
"types": "./static-server.d.ts",
|
|
30
|
+
"default": "./static-server.js"
|
|
23
31
|
}
|
|
24
32
|
},
|
|
25
33
|
"bin": {
|
|
@@ -30,10 +38,14 @@
|
|
|
30
38
|
"bin",
|
|
31
39
|
"index.js",
|
|
32
40
|
"index.d.ts",
|
|
33
|
-
"README.md"
|
|
41
|
+
"README.md",
|
|
42
|
+
"capture.js",
|
|
43
|
+
"capture.d.ts",
|
|
44
|
+
"static-server.js",
|
|
45
|
+
"static-server.d.ts"
|
|
34
46
|
],
|
|
35
47
|
"dependencies": {
|
|
36
|
-
"@protoyard/cli": "1.
|
|
48
|
+
"@protoyard/cli": "1.2.0"
|
|
37
49
|
},
|
|
38
50
|
"publishConfig": {
|
|
39
51
|
"access": "public"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@protoyard/cli/static-server';
|
package/static-server.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// @ts-check
|
|
2
|
+
/**
|
|
3
|
+
* `protoyard/static-server`: `serveStatic`, the server `protoyard preview`
|
|
4
|
+
* uses (SPA fallback, absolute bases, containment checks, loopback). For
|
|
5
|
+
* end-to-end tests of a built prototype. Re-exported from
|
|
6
|
+
* `@protoyard/cli/static-server` at the same version.
|
|
7
|
+
*/
|
|
8
|
+
export * from '@protoyard/cli/static-server';
|