vis-dev-utils 4.0.45 → 5.0.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.
Files changed (92) hide show
  1. package/babel-preset/index.cjs +102 -0
  2. package/babel-preset/index.cjs.map +1 -0
  3. package/babel-preset/{index.js → index.mjs} +58 -31
  4. package/babel-preset/index.mjs.map +1 -0
  5. package/bin/ci-utils.js +35 -41
  6. package/bin/ci-utils.js.map +1 -1
  7. package/bin/generate-examples-index.js +779 -1265
  8. package/bin/generate-examples-index.js.map +1 -1
  9. package/bin/test-e2e-interop.js +431 -3492
  10. package/bin/test-e2e-interop.js.map +1 -1
  11. package/declarations/babel-preset/index.d.ts +23 -0
  12. package/declarations/babel-preset/index.d.ts.map +1 -0
  13. package/declarations/ci-utils/index.d.ts +2 -0
  14. package/declarations/ci-utils/index.d.ts.map +1 -0
  15. package/declarations/generate-examples-index/cli.d.ts +44 -0
  16. package/declarations/generate-examples-index/cli.d.ts.map +1 -0
  17. package/declarations/generate-examples-index/content-builder/builder.d.ts +53 -0
  18. package/declarations/generate-examples-index/content-builder/builder.d.ts.map +1 -0
  19. package/declarations/generate-examples-index/content-builder/common.d.ts +47 -0
  20. package/declarations/generate-examples-index/content-builder/common.d.ts.map +1 -0
  21. package/declarations/generate-examples-index/content-builder/format.d.ts +5 -0
  22. package/declarations/generate-examples-index/content-builder/format.d.ts.map +1 -0
  23. package/declarations/generate-examples-index/content-builder/html/index.d.ts +3 -0
  24. package/declarations/generate-examples-index/content-builder/html/index.d.ts.map +1 -0
  25. package/declarations/generate-examples-index/content-builder/index.d.ts +6 -0
  26. package/declarations/generate-examples-index/content-builder/index.d.ts.map +1 -0
  27. package/declarations/generate-examples-index/content-builder/md/index.d.ts +3 -0
  28. package/declarations/generate-examples-index/content-builder/md/index.d.ts.map +1 -0
  29. package/declarations/generate-examples-index/content-builder/playground/codepen.d.ts +6 -0
  30. package/declarations/generate-examples-index/content-builder/playground/codepen.d.ts.map +1 -0
  31. package/declarations/generate-examples-index/content-builder/playground/data.d.ts +8 -0
  32. package/declarations/generate-examples-index/content-builder/playground/data.d.ts.map +1 -0
  33. package/declarations/generate-examples-index/content-builder/playground/index.d.ts +4 -0
  34. package/declarations/generate-examples-index/content-builder/playground/index.d.ts.map +1 -0
  35. package/declarations/generate-examples-index/content-builder/playground/jsfiddle.d.ts +6 -0
  36. package/declarations/generate-examples-index/content-builder/playground/jsfiddle.d.ts.map +1 -0
  37. package/declarations/generate-examples-index/content-builder/screenshots/index.d.ts +26 -0
  38. package/declarations/generate-examples-index/content-builder/screenshots/index.d.ts.map +1 -0
  39. package/declarations/generate-examples-index/index.d.ts +2 -0
  40. package/declarations/generate-examples-index/index.d.ts.map +1 -0
  41. package/declarations/generate-examples-index/paths.d.ts +16 -0
  42. package/declarations/generate-examples-index/paths.d.ts.map +1 -0
  43. package/declarations/generate-examples-index/types.d.ts +61 -0
  44. package/declarations/generate-examples-index/types.d.ts.map +1 -0
  45. package/declarations/module/constants.d.ts +2 -0
  46. package/declarations/module/constants.d.ts.map +1 -0
  47. package/declarations/{generate-rollup-configuration → module/generate-rollup-configuration}/index.d.ts +4 -3
  48. package/declarations/module/generate-rollup-configuration/index.d.ts.map +1 -0
  49. package/declarations/{header.d.ts → module/header.d.ts} +1 -3
  50. package/declarations/module/header.d.ts.map +1 -0
  51. package/declarations/module/index.d.ts.map +1 -0
  52. package/declarations/module/inspect-npm-pack.d.ts +8 -0
  53. package/declarations/module/inspect-npm-pack.d.ts.map +1 -0
  54. package/declarations/module/util.d.ts.map +1 -0
  55. package/declarations/test-e2e-interop/cli.d.ts +18 -0
  56. package/declarations/test-e2e-interop/cli.d.ts.map +1 -0
  57. package/declarations/test-e2e-interop/index.d.ts +2 -0
  58. package/declarations/test-e2e-interop/index.d.ts.map +1 -0
  59. package/declarations/test-e2e-interop/test.d.ts +23 -0
  60. package/declarations/test-e2e-interop/test.d.ts.map +1 -0
  61. package/declarations/test-e2e-interop/util.d.ts +49 -0
  62. package/declarations/test-e2e-interop/util.d.ts.map +1 -0
  63. package/dist/vis-dev-utils.cjs +871 -0
  64. package/dist/vis-dev-utils.cjs.map +1 -0
  65. package/dist/vis-dev-utils.mjs +864 -0
  66. package/dist/vis-dev-utils.mjs.map +1 -0
  67. package/package.json +81 -59
  68. package/babel-register/index.js +0 -110
  69. package/babel-register/index.js.map +0 -1
  70. package/declarations/constants.d.ts +0 -2
  71. package/declarations/constants.d.ts.map +0 -1
  72. package/declarations/generate-rollup-configuration/index.d.ts.map +0 -1
  73. package/declarations/header.d.ts.map +0 -1
  74. package/declarations/index.d.ts.map +0 -1
  75. package/declarations/inspect-npm-pack.d.ts +0 -8
  76. package/declarations/inspect-npm-pack.d.ts.map +0 -1
  77. package/declarations/util.d.ts.map +0 -1
  78. package/dist/vis-dev-utils.cjs.js +0 -777
  79. package/dist/vis-dev-utils.cjs.js.map +0 -1
  80. package/dist/vis-dev-utils.esm.js +0 -771
  81. package/dist/vis-dev-utils.esm.js.map +0 -1
  82. package/lib/header.d.ts +0 -38
  83. package/lib/header.d.ts.map +0 -1
  84. package/lib/header.js +0 -85
  85. package/lib/header.js.map +0 -1
  86. package/lib/inspect-npm-pack.d.ts +0 -8
  87. package/lib/inspect-npm-pack.d.ts.map +0 -1
  88. package/lib/inspect-npm-pack.js +0 -74
  89. package/lib/inspect-npm-pack.js.map +0 -1
  90. /package/declarations/{index.d.ts → module/index.d.ts} +0 -0
  91. /package/declarations/{util.d.ts → module/util.d.ts} +0 -0
  92. /package/eslint-shareable-config/{index.js → index.cjs} +0 -0
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Provides shared configuration for Vis family of packages for Babel.
3
+ * @param _context - The context provided by Babel, unused here.
4
+ * @param [options] - The options object.
5
+ * @param [options.ts] - Indicates if TypeScript is being used.
6
+ * @returns Babel config.
7
+ */
8
+ export default function (_context: unknown, { ts }?: {
9
+ ts?: boolean | undefined;
10
+ }): {
11
+ presets: any[];
12
+ plugins: any[][];
13
+ env: {
14
+ test: {
15
+ presets: any[][];
16
+ };
17
+ "test-cov": {
18
+ presets: any[][];
19
+ plugins: string[];
20
+ };
21
+ };
22
+ };
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/babel-preset/index.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,MAAM,CAAC,OAAO,WAAW,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAU,EAAE;;CAAK;;;;;;;;;;;;EAgE9D"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ci-utils/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import yargs from "yargs";
2
+ declare const y: yargs.Argv<{
3
+ "assets-local-directory": string;
4
+ } & {
5
+ "assets-web-directory": string;
6
+ } & {
7
+ "base-url": string;
8
+ } & {
9
+ "examples-local-directory": string;
10
+ } & {
11
+ "examples-web-directory": string;
12
+ } & {
13
+ "output-directory": string;
14
+ } & {
15
+ "pages-local-directory": string;
16
+ } & {
17
+ "pages-web-directory": string;
18
+ } & {
19
+ index: boolean;
20
+ } & {
21
+ lint: boolean;
22
+ } & {
23
+ playgrounds: boolean;
24
+ } & {
25
+ screenshots: boolean;
26
+ } & {
27
+ "container-id": string;
28
+ } & {
29
+ format: string;
30
+ } & {
31
+ parallel: number;
32
+ } & {
33
+ "screenshot-script": string | undefined;
34
+ } & {
35
+ title: string;
36
+ } & {
37
+ verify: number;
38
+ }>;
39
+ /**
40
+ *
41
+ */
42
+ export declare function parseArguments(): ReturnType<(typeof y)["parseSync"]>;
43
+ export {};
44
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/generate-examples-index/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqGH,CAAC;AAEL;;GAEG;AACH,wBAAgB,cAAc,IAAI,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAEpE"}
@@ -0,0 +1,53 @@
1
+ import { Example, ExamplesRoot } from "../types";
2
+ import { Renderer, Report } from "./common";
3
+ export type IndexReport = Report;
4
+ export interface ExampleReport extends Report {
5
+ example: Example;
6
+ }
7
+ export interface Checks {
8
+ fail: number;
9
+ failPaths: string[];
10
+ okay: number;
11
+ okayPaths: string[];
12
+ percentage: number;
13
+ total: number;
14
+ }
15
+ export interface ContentBuilderConfig {
16
+ /** The tree structure with examples in it's leaves. */
17
+ examples: ExamplesRoot;
18
+ /** The directory where built files will be saved. */
19
+ output: string;
20
+ /** How many screenshots to generate at the same time. */
21
+ parallel: number;
22
+ /** The renderer used to generate index files. */
23
+ renderer: Renderer;
24
+ /** A script that will be executed on each page as first. */
25
+ screenshotScript: string;
26
+ /** A title that will be passed to the renderer. */
27
+ title: string;
28
+ }
29
+ export interface ContentBuilderRet {
30
+ checks: Promise<Checks>;
31
+ index: Promise<IndexReport[]>;
32
+ playgrounds: Promise<ExampleReport[]>;
33
+ screenshots: Promise<ExampleReport[]>;
34
+ }
35
+ export declare class ContentBuilder {
36
+ private readonly _config;
37
+ constructor(_config: ContentBuilderConfig);
38
+ /**
39
+ * Build the files and write them to the disk.
40
+ * @param emit - Which types of files to emit.
41
+ * @param emit.index
42
+ * @param emit.playgrounds
43
+ * @param emit.screenshots
44
+ * @returns A report with check results and the number of written files.
45
+ */
46
+ build(emit?: {
47
+ index?: boolean;
48
+ playgrounds?: boolean;
49
+ screenshots?: boolean;
50
+ }): ContentBuilderRet;
51
+ private _processGroup;
52
+ }
53
+ //# sourceMappingURL=builder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../../src/generate-examples-index/content-builder/builder.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAY,YAAY,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EACL,QAAQ,EACR,MAAM,EAIP,MAAM,UAAU,CAAC;AAQlB,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AACjC,MAAM,WAAW,aAAc,SAAQ,MAAM;IAC3C,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC,uDAAuD;IACvD,QAAQ,EAAE,YAAY,CAAC;IACvB,qDAAqD;IACrD,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,QAAQ,EAAE,MAAM,CAAC;IACjB,iDAAiD;IACjD,QAAQ,EAAE,QAAQ,CAAC;IACnB,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,CAAC;IACzB,mDAAmD;IACnD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC9B,WAAW,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC,aAAa,EAAE,CAAC,CAAC;CACvC;AAED,qBAAa,cAAc;IACN,OAAO,CAAC,QAAQ,CAAC,OAAO;gBAAP,OAAO,EAAE,oBAAoB;IAEjE;;;;;;;OAOG;IACI,KAAK,CACV,IAAI,GAAE;QACJ,KAAK,CAAC,EAAE,OAAO,CAAC;QAChB,WAAW,CAAC,EAAE,OAAO,CAAC;QACtB,WAAW,CAAC,EAAE,OAAO,CAAC;KAClB,GACL,iBAAiB;IA2LpB,OAAO,CAAC,aAAa;CAatB"}
@@ -0,0 +1,47 @@
1
+ import { Example, Examples, ExamplesRoot } from "../types";
2
+ export interface ContentPart {
3
+ content: string;
4
+ filename: string;
5
+ title: string;
6
+ }
7
+ export interface Renderer {
8
+ render(examples: ExamplesRoot, output: string, title: string, collator: Intl.Collator): Promise<ContentPart[]>;
9
+ screenshot: {
10
+ width: number;
11
+ height: number;
12
+ };
13
+ }
14
+ /**
15
+ * @param value
16
+ */
17
+ export declare function isExample(value: Example | Examples | ExamplesRoot): value is Example;
18
+ export interface StartStopMs {
19
+ start: number;
20
+ stop: number;
21
+ }
22
+ /**
23
+ *
24
+ */
25
+ export declare function measureStartStopMs(): () => StartStopMs;
26
+ export interface Report {
27
+ count: number;
28
+ result: "fulfilled" | "rejected";
29
+ start: number;
30
+ stop: number;
31
+ }
32
+ /**
33
+ * @param reports
34
+ * @param fallback
35
+ */
36
+ export declare function reduceReports(reports: readonly Report[], fallback?: Report): Report;
37
+ /**
38
+ * @param ms
39
+ */
40
+ export declare function formatMs(ms: number): string;
41
+ /**
42
+ * @param root0
43
+ * @param root0.start
44
+ * @param root0.stop
45
+ */
46
+ export declare function formatStartStopMs({ start, stop }: StartStopMs): string;
47
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/generate-examples-index/content-builder/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAE3D,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,CACJ,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,MAAM,EACd,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACtB,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAC1B,UAAU,EAAE;QACV,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED;;GAEG;AACH,wBAAgB,SAAS,CACvB,KAAK,EAAE,OAAO,GAAG,QAAQ,GAAG,YAAY,GACvC,KAAK,IAAI,OAAO,CAMlB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AACD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,WAAW,CAOtD;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,GAAG,UAAU,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CACd;AACD;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,SAAS,MAAM,EAAE,EAC1B,QAAQ,GAAE,MAKT,GACA,MAAM,CAeR;AAED;;GAEG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAE3C;AACD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,WAAW,GAAG,MAAM,CAEtE"}
@@ -0,0 +1,5 @@
1
+ export declare const formatCSS: (css: string | null | undefined) => Promise<string>;
2
+ export declare const formatHTML: (html: string | null | undefined) => Promise<string>;
3
+ export declare const formatJS: (js: string | null | undefined) => Promise<string>;
4
+ export declare const formatMD: (md: string | null | undefined) => Promise<string>;
5
+ //# sourceMappingURL=format.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../src/generate-examples-index/content-builder/format.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,GAAI,KAAK,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAAO,CAAC,MAAM,CAClB,CAAC;AACxD,eAAO,MAAM,UAAU,GAAI,MAAM,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAAO,CAAC,MAAM,CAClB,CAAC;AAC1D,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAAO,CAAC,MAAM,CACjB,CAAC;AACvD,eAAO,MAAM,QAAQ,GAAI,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,OAAO,CAAC,MAAM,CACjB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Renderer } from "../common";
2
+ export declare const htmlRenderer: Renderer;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generate-examples-index/content-builder/html/index.ts"],"names":[],"mappings":"AAKA,OAAO,EAAe,QAAQ,EAAa,MAAM,WAAW,CAAC;AAyF7D,eAAO,MAAM,YAAY,EAAE,QAkC1B,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from "./builder";
2
+ export { generatePlaygroundData } from "./playground";
3
+ export { htmlRenderer } from "./html";
4
+ export { mdRenderer } from "./md";
5
+ export { formatMs, formatStartStopMs, reduceReports } from "./common";
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/generate-examples-index/content-builder/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { Renderer } from "../common";
2
+ export declare const mdRenderer: Renderer;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generate-examples-index/content-builder/md/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,QAAQ,EAAa,MAAM,WAAW,CAAC;AAmG7D,eAAO,MAAM,UAAU,EAAE,QAmCxB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Example } from "../../types";
2
+ /**
3
+ * @param example
4
+ */
5
+ export declare function generateCodePenPage(example: Example): string;
6
+ //# sourceMappingURL=codepen.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"codepen.d.ts","sourceRoot":"","sources":["../../../../src/generate-examples-index/content-builder/playground/codepen.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAqB5D"}
@@ -0,0 +1,8 @@
1
+ import { Example, PlaygroundData } from "../../types";
2
+ /**
3
+ * @param baseURL
4
+ * @param example$
5
+ * @param examplePath
6
+ */
7
+ export declare function generatePlaygroundData(baseURL: string, example$: Example["$"], examplePath: Example["path"]): Promise<PlaygroundData>;
8
+ //# sourceMappingURL=data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"data.d.ts","sourceRoot":"","sources":["../../../../src/generate-examples-index/content-builder/playground/data.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGtD;;;;GAIG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,EACtB,WAAW,EAAE,OAAO,CAAC,MAAM,CAAC,GAC3B,OAAO,CAAC,cAAc,CAAC,CA6EzB"}
@@ -0,0 +1,4 @@
1
+ export * from "./codepen";
2
+ export * from "./data";
3
+ export * from "./jsfiddle";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generate-examples-index/content-builder/playground/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { Example } from "../../types";
2
+ /**
3
+ * @param example
4
+ */
5
+ export declare function generateJSFiddlePage(example: Example): string;
6
+ //# sourceMappingURL=jsfiddle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"jsfiddle.d.ts","sourceRoot":"","sources":["../../../../src/generate-examples-index/content-builder/playground/jsfiddle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAoB7D"}
@@ -0,0 +1,26 @@
1
+ import { Browser } from "puppeteer";
2
+ import { Example } from "../../types";
3
+ export interface GenerateScreenshotConfig {
4
+ /**
5
+ * Leave the contexts and tabs open for inspection, also don't delete the
6
+ * temporary pages.
7
+ */
8
+ debug: boolean;
9
+ /** The example for which the screenshot will be generated. */
10
+ example: Example;
11
+ /** Height of the captured screenshot. */
12
+ height: number;
13
+ /** A script to be executed as the first thing on the page. */
14
+ screenshotScript: string;
15
+ /** Width of the captured screenshot. */
16
+ width: number;
17
+ }
18
+ /**
19
+ * Capture an element on the example's page and save the screenshot to the
20
+ * disk as a PNG file.
21
+ * @param browser - Puppeteer's browser instance.
22
+ * @param config - See the type's docs for detail.
23
+ * @returns Whether or not the screenshot passed validation check.
24
+ */
25
+ export declare function generateScreenshot(browser: Browser, config: GenerateScreenshotConfig): Promise<boolean>;
26
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/generate-examples-index/content-builder/screenshots/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAMpC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AA4BtC,MAAM,WAAW,wBAAwB;IACvC;;;OAGG;IACH,KAAK,EAAE,OAAO,CAAC;IACf,8DAA8D;IAC9D,OAAO,EAAE,OAAO,CAAC;IACjB,yCAAyC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,gBAAgB,EAAE,MAAM,CAAC;IACzB,wCAAwC;IACxC,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,wBAAwB,GAC/B,OAAO,CAAC,OAAO,CAAC,CAwHlB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/generate-examples-index/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import { Example, ExamplePaths } from "./types";
2
+ /**
3
+ * @param urls
4
+ */
5
+ export declare function joinURLs(...urls: string[]): string;
6
+ /**
7
+ * @param baseURL
8
+ * @param url
9
+ */
10
+ export declare function fixAbsoluteInputURL(baseURL: string, url: string): string;
11
+ /**
12
+ * @param config
13
+ * @param exampleAbsolutePath
14
+ */
15
+ export declare function generatePaths(config: ExamplePaths, exampleAbsolutePath: Example["path"]): ExamplePaths;
16
+ //# sourceMappingURL=paths.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/generate-examples-index/paths.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAe,YAAY,EAAE,MAAM,SAAS,CAAC;AAI7D;;GAEG;AACH,wBAAgB,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAOlD;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAMxE;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,YAAY,EACpB,mBAAmB,EAAE,OAAO,CAAC,MAAM,CAAC,GACnC,YAAY,CAkCd"}
@@ -0,0 +1,61 @@
1
+ import type * as cheerio from "cheerio";
2
+ export interface PlaygroundData {
3
+ code: {
4
+ css: string;
5
+ html: string;
6
+ js: string;
7
+ };
8
+ resources: {
9
+ css: string[];
10
+ js: string[];
11
+ };
12
+ }
13
+ export interface ExamplePath {
14
+ /** An absolute path that will be used during the script run. */
15
+ local: string;
16
+ /** A path that will be used in the browser. */
17
+ web: string;
18
+ }
19
+ export interface ExamplePaths {
20
+ codepen: ExamplePath;
21
+ jsfiddle: ExamplePath;
22
+ page: ExamplePath;
23
+ screenshot: ExamplePath;
24
+ }
25
+ export type ExamplesRoot = {
26
+ [Key: string]: Examples;
27
+ };
28
+ export type Examples = {
29
+ [Key: string]: Examples | Example;
30
+ };
31
+ export type Example = {
32
+ /** The page HTML parsed by Cheerio. */
33
+ $: cheerio.CheerioAPI;
34
+ /**
35
+ * How long to wait before taking the screenshot after loading the page. The
36
+ * value can be in seconds or `"call"` to wait for `window.takeScreenshot` to
37
+ * be called before taking a screenshot.
38
+ */
39
+ delay: number | "call";
40
+ /** The raw HTML as a string. */
41
+ html: string;
42
+ /**
43
+ * Raw path to the example, if you're not sure whether to use this you
44
+ * probably should use `paths.page` instead.
45
+ */
46
+ path: string;
47
+ /** Paths to various resources associated with this example. */
48
+ paths: ExamplePaths;
49
+ /** The processed data to replicate the example in a playground. */
50
+ playground: PlaygroundData;
51
+ /** Locates the element that should be captured on a screenshot. */
52
+ selector: string;
53
+ /** How long to wait before giving up. */
54
+ timeout: number;
55
+ /**
56
+ * A list of titles. The last is the title of the example, others are the
57
+ * titles of the groups it belongs to.
58
+ */
59
+ titles: string[];
60
+ };
61
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/generate-examples-index/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AAExC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE;QACJ,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;IACF,SAAS,EAAE;QACT,GAAG,EAAE,MAAM,EAAE,CAAC;QACd,EAAE,EAAE,MAAM,EAAE,CAAC;KACd,CAAC;CACH;AAED,MAAM,WAAW,WAAW;IAC1B,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,GAAG,EAAE,MAAM,CAAC;CACb;AACD,MAAM,WAAW,YAAY;IAC3B,OAAO,EAAE,WAAW,CAAC;IACrB,QAAQ,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,WAAW,CAAC;IAClB,UAAU,EAAE,WAAW,CAAC;CACzB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAAC;CACzB,CAAC;AACF,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;CACnC,CAAC;AACF,MAAM,MAAM,OAAO,GAAG;IACpB,uCAAuC;IACvC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC;IACtB;;;;OAIG;IACH,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,KAAK,EAAE,YAAY,CAAC;IACpB,mEAAmE;IACnE,UAAU,EAAE,cAAc,CAAC;IAC3B,mEAAmE;IACnE,QAAQ,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,OAAO,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const BABEL_IGNORE_RE: RegExp;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/module/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAiD,CAAC"}
@@ -48,16 +48,18 @@ export interface GRCOptions {
48
48
  /**
49
49
  * Simply required package.json.
50
50
  */
51
- packageJSON: {
51
+ packageJSON: Partial<{
52
52
  browser: string;
53
53
  dependencies: Record<string, string>;
54
54
  devDependencies: Record<string, string>;
55
+ exports: Record<string, Record<string, string | undefined> | undefined>;
55
56
  files: string[];
56
57
  jsnext: string;
57
58
  main: string;
58
59
  module: string;
59
60
  peerDependencies: Record<string, string>;
60
- };
61
+ types: string;
62
+ }>;
61
63
  /**
62
64
  * The path to tsconfig.json to be used in this build.
63
65
  */
@@ -65,7 +67,6 @@ export interface GRCOptions {
65
67
  }
66
68
  /**
67
69
  * Prepare ready to use Rollup configuration file.
68
- *
69
70
  * @remarks
70
71
  * IMPORTANT: Use `babel.config.js` in the root of the project, `.babelrc` files
71
72
  * are ignored.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/module/generate-rollup-configuration/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAe,MAAM,QAAQ,CAAC;AAIzD,OAAmB,EAAE,MAAM,IAAI,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBtE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,SAAS,CAAC;AA2B/C,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,WAAW,EAAE;QACX;;;WAGG;QACH,MAAM,EAAE,UAAU,EAAE,CAAC;QACrB;;;WAGG;QACH,OAAO,EAAE,UAAU,EAAE,CAAC;KACvB,CAAC;IACF;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,CAAC;IAC/B;;;OAGG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACrC,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACxC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,GAAG,SAAS,CAAC,CAAC;QACxE,KAAK,EAAE,MAAM,EAAE,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;QACf,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;QACzC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC,CAAC;IACH;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAiTD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAsB,2BAA2B,CAC/C,OAAO,EAAE,eAAe,CAAC,UAAU,CAAC,EACpC,IAAI,GAAE,YAAY,GAAG,aAAa,GAAG,MAInB,GACjB,OAAO,CAAC,aAAa,EAAE,CAAC,CA6f1B"}
@@ -1,6 +1,5 @@
1
1
  /**
2
2
  * Take a string and return a doc block comment.
3
- *
4
3
  * @param string - The raw text to be included in the comment.
5
4
  * @throws If the string already contains a comment.
6
5
  * @returns A block doc comment string that can be for example prepended to a
@@ -26,7 +25,6 @@ export interface HeaderOptions {
26
25
  }
27
26
  /**
28
27
  * Generate a dynamic header banner.
29
- *
30
28
  * @param options - Optional information to be included. Otherwise no custom
31
29
  * text will be appended, the date will be the time when this module was
32
30
  * imported (most likely the start of the build process) and the rest will be
@@ -34,5 +32,5 @@ export interface HeaderOptions {
34
32
  * @throws If the string already contains a comment.
35
33
  * @returns Ready to use banner text.
36
34
  */
37
- export declare function generateHeader(options?: Partial<HeaderOptions>): string;
35
+ export declare function generateHeader(options?: Partial<HeaderOptions>): Promise<string>;
38
36
  //# sourceMappingURL=header.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"header.d.ts","sourceRoot":"","sources":["../../src/module/header.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAwBpD;AAsCD;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,sDAAsD;IACtD,UAAU,EAAE,MAAM,CAAC;IACnB,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,oCAAoC;IACpC,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,gCAAgC;IAChC,OAAO,EAAE,MAAM,CAAC;CACjB;AAID;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAClC,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,GAC/B,OAAO,CAAC,MAAM,CAAC,CA8BjB"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/module/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,iCAAiC,CAAC;AAChD,cAAc,UAAU,CAAC;AACzB,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ *
3
+ */
4
+ export declare function inspectNpmPack(): {
5
+ name: string;
6
+ files: Record<string, Record<string, unknown>>;
7
+ };
8
+ //# sourceMappingURL=inspect-npm-pack.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspect-npm-pack.d.ts","sourceRoot":"","sources":["../../src/module/inspect-npm-pack.ts"],"names":[],"mappings":"AAqHA;;GAEG;AACH,wBAAgB,cAAc,IAAI;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAChD,CAwBA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/module/util.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,CAAC,OAAO,IAAI;KACpC,GAAG,IAAI,MAAM,OAAO,CAAC,CAAC,EACnB,SAAS,GACT,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,KAAK,CAAC,MAAM,MAAM,CAAC,GACrC,KAAK,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GAC9B,OAAO,CAAC,GAAG,CAAC,SAAS,aAAa,CAAC,MAAM,MAAM,CAAC,GAC9C,aAAa,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,GACtC,eAAe,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;CACzC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import yargs from "yargs";
2
+ declare const y: yargs.Argv<{
3
+ "fail-command": string | undefined;
4
+ } & {
5
+ "package-script": string[];
6
+ } & {
7
+ project: string[];
8
+ } & {
9
+ "tmp-dir": string | undefined;
10
+ } & {
11
+ "logs-to-stdout": boolean;
12
+ }>;
13
+ /**
14
+ *
15
+ */
16
+ export declare function parseArguments(): ReturnType<(typeof y)["parseSync"]>;
17
+ export {};
18
+ //# sourceMappingURL=cli.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/test-e2e-interop/cli.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,QAAA,MAAM,CAAC;;;;;;;;;;EAwCH,CAAC;AAEL;;GAEG;AACH,wBAAgB,cAAc,IAAI,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAEpE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/test-e2e-interop/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,23 @@
1
+ export interface PackageScript {
2
+ packageName: string | null;
3
+ scriptName: string;
4
+ skipIfMissing: boolean;
5
+ }
6
+ export type ProjectPaths = Record<string, string>;
7
+ export interface TestArgs {
8
+ failCommand?: string;
9
+ logsToStdout?: boolean;
10
+ packageScripts: readonly PackageScript[];
11
+ projectPaths: ProjectPaths;
12
+ tmpPath?: string;
13
+ }
14
+ /**
15
+ * @param root0
16
+ * @param root0.failCommand
17
+ * @param root0.logsToStdout
18
+ * @param root0.packageScripts
19
+ * @param root0.projectPaths
20
+ * @param root0.tmpPath
21
+ */
22
+ export declare function test({ failCommand, logsToStdout, packageScripts, projectPaths, tmpPath, }: TestArgs): Promise<boolean>;
23
+ //# sourceMappingURL=test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../src/test-e2e-interop/test.ts"],"names":[],"mappings":"AA2CA,MAAM,WAAW,aAAa;IAC5B,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,MAAM,YAAY,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AA6NlD,MAAM,WAAW,QAAQ;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,SAAS,aAAa,EAAE,CAAC;IACzC,YAAY,EAAE,YAAY,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AACD;;;;;;;GAOG;AACH,wBAAsB,IAAI,CAAC,EACzB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,OAAO,GACR,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAgK7B"}
@@ -0,0 +1,49 @@
1
+ export declare class ProjectState {
2
+ /**
3
+ * This will be resolved or rejected once all the tasks associated with this
4
+ * project finish.
5
+ */
6
+ promise: Promise<void>;
7
+ /**
8
+ * Run this to mark the project as successfully finished.
9
+ */
10
+ resolve: () => void;
11
+ /**
12
+ * Run this to mark the project as failed.
13
+ */
14
+ reject: (reason: Error) => void;
15
+ /**
16
+ * Provide information about current state of the project.
17
+ */
18
+ stage: string;
19
+ constructor();
20
+ }
21
+ /**
22
+ * Output formatted error message to stderr.
23
+ * @param title - Some explanatory text as to what's going on.
24
+ * @param details - The error or some other message as to what went wrong.
25
+ */
26
+ export declare function logError(title: string, details?: unknown): void;
27
+ /**
28
+ * @param title
29
+ * @param details
30
+ */
31
+ export declare function logInfo(title: string, details?: string): void;
32
+ /**
33
+ * @param cwd
34
+ * @param failCommand
35
+ * @param error
36
+ */
37
+ export declare function execFail(cwd: string, failCommand: string | null | undefined, error: Error | string): void;
38
+ export type Spawn = (options: SpawnOrTrhowArgs) => Promise<void>;
39
+ export interface SpawnOrTrhowArgs {
40
+ cmd: readonly string[];
41
+ cwd: string;
42
+ failCommand?: string;
43
+ }
44
+ /**
45
+ * @param logDir
46
+ * @param getState
47
+ */
48
+ export declare function createSpawner(logDir: string, getState: () => string[]): Spawn;
49
+ //# sourceMappingURL=util.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/test-e2e-interop/util.ts"],"names":[],"mappings":"AAaA,qBAAa,YAAY;IACvB;;;OAGG;IACI,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9B;;OAEG;IACI,OAAO,EAAG,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACI,MAAM,EAAG,CAAC,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;IACxC;;OAEG;IACI,KAAK,SAAa;;CAQ1B;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAM/D;AACD;;;GAGG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAG7D;AAED;;;;GAIG;AACH,wBAAgB,QAAQ,CACtB,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACtC,KAAK,EAAE,KAAK,GAAG,MAAM,GACpB,IAAI,CAmBN;AAED,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAEjE,MAAM,WAAW,gBAAgB;IAC/B,GAAG,EAAE,SAAS,MAAM,EAAE,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AACD;;;GAGG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,EAAE,GAAG,KAAK,CAqG7E"}