@gooddata/create-pluggable-module 11.54.0-alpha.4 → 11.54.0-alpha.6
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/dist/templates/harness/README.md +0 -2
- package/dist/templates/harness/package.json +1 -1
- package/dist/templates/module/README.md +0 -2
- package/dist/templates/module/package.json +1 -1
- package/esm/engine/anchors.test.d.ts.map +1 -0
- package/esm/engine/{__tests__/anchors.test.js → anchors.test.js} +1 -1
- package/esm/engine/copyTemplate.test.d.ts.map +1 -0
- package/esm/engine/{__tests__/copyTemplate.test.js → copyTemplate.test.js} +1 -1
- package/esm/engine/derived.test.d.ts.map +1 -0
- package/esm/engine/{__tests__/derived.test.js → derived.test.js} +1 -1
- package/esm/engine/jsonAnchors.test.d.ts.map +1 -0
- package/esm/engine/{__tests__/jsonAnchors.test.js → jsonAnchors.test.js} +1 -1
- package/esm/engine/repoDetection.test.d.ts.map +1 -0
- package/esm/engine/{__tests__/repoDetection.test.js → repoDetection.test.js} +1 -1
- package/esm/engine/scrubPackageJsonVersions.d.ts.map +1 -0
- package/esm/engine/scrubPackageJsonVersions.test.d.ts.map +1 -0
- package/esm/engine/snapshot.test.d.ts.map +1 -0
- package/esm/engine/{__tests__/snapshot.test.js → snapshot.test.js} +3 -3
- package/esm/profiles/client.test.d.ts.map +1 -0
- package/esm/profiles/{__tests__/client.test.js → client.test.js} +1 -1
- package/package.json +5 -5
- package/esm/engine/__tests__/anchors.test.d.ts.map +0 -1
- package/esm/engine/__tests__/copyTemplate.test.d.ts.map +0 -1
- package/esm/engine/__tests__/derived.test.d.ts.map +0 -1
- package/esm/engine/__tests__/jsonAnchors.test.d.ts.map +0 -1
- package/esm/engine/__tests__/repoDetection.test.d.ts.map +0 -1
- package/esm/engine/__tests__/scrubPackageJsonVersions.d.ts.map +0 -1
- package/esm/engine/__tests__/scrubPackageJsonVersions.test.d.ts.map +0 -1
- package/esm/engine/__tests__/snapshot.test.d.ts.map +0 -1
- package/esm/profiles/__tests__/client.test.d.ts.map +0 -1
- /package/esm/engine/{__tests__/anchors.test.d.ts → anchors.test.d.ts} +0 -0
- /package/esm/engine/{__tests__/copyTemplate.test.d.ts → copyTemplate.test.d.ts} +0 -0
- /package/esm/engine/{__tests__/derived.test.d.ts → derived.test.d.ts} +0 -0
- /package/esm/engine/{__tests__/jsonAnchors.test.d.ts → jsonAnchors.test.d.ts} +0 -0
- /package/esm/engine/{__tests__/repoDetection.test.d.ts → repoDetection.test.d.ts} +0 -0
- /package/esm/engine/{__tests__/scrubPackageJsonVersions.d.ts → scrubPackageJsonVersions.d.ts} +0 -0
- /package/esm/engine/{__tests__/scrubPackageJsonVersions.js → scrubPackageJsonVersions.js} +0 -0
- /package/esm/engine/{__tests__/scrubPackageJsonVersions.test.d.ts → scrubPackageJsonVersions.test.d.ts} +0 -0
- /package/esm/engine/{__tests__/scrubPackageJsonVersions.test.js → scrubPackageJsonVersions.test.js} +0 -0
- /package/esm/engine/{__tests__/snapshot.test.d.ts → snapshot.test.d.ts} +0 -0
- /package/esm/profiles/{__tests__/client.test.d.ts → client.test.d.ts} +0 -0
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Standalone development harness for **gdc-app-template-name-module**.
|
|
4
4
|
|
|
5
|
-
This is a template. Run `rush init-pluggable-app` to scaffold a new application from it.
|
|
6
|
-
|
|
7
5
|
## What this does
|
|
8
6
|
|
|
9
7
|
The harness runs the pluggable application module outside of the full host shell. It provides:
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
Pluggable application module for **gdc-app-template-name**.
|
|
4
4
|
|
|
5
|
-
This is a template. Run `rush init-pluggable-app` to scaffold a new application from it.
|
|
6
|
-
|
|
7
5
|
## Structure
|
|
8
6
|
|
|
9
7
|
- `src/pluggableApp.tsx` — mount/unmount lifecycle, forwards `onEvent` and `onTelemetryEvent` callbacks
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"anchors.test.d.ts","sourceRoot":"","sources":["../../src/engine/anchors.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { describe, expect, it } from "vitest";
|
|
3
|
-
import { findAnchorLineIdx, fullAnchor, insertBeforeAnchor } from "
|
|
3
|
+
import { findAnchorLineIdx, fullAnchor, insertBeforeAnchor } from "./anchors.js";
|
|
4
4
|
describe("fullAnchor", () => {
|
|
5
5
|
it("returns the bare keyword when no suffix is given", () => {
|
|
6
6
|
expect(fullAnchor()).toBe("PLUGGABLE_APP_SCAFFOLD_ANCHOR");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"copyTemplate.test.d.ts","sourceRoot":"","sources":["../../src/engine/copyTemplate.test.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import { mkdirSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "fs"
|
|
|
3
3
|
import { tmpdir } from "os";
|
|
4
4
|
import { join } from "path";
|
|
5
5
|
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
6
|
-
import { copyTemplate } from "
|
|
6
|
+
import { copyTemplate } from "./copyTemplate.js";
|
|
7
7
|
describe("copyTemplate", () => {
|
|
8
8
|
let src;
|
|
9
9
|
let dest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"derived.test.d.ts","sourceRoot":"","sources":["../../src/engine/derived.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { describe, expect, it } from "vitest";
|
|
3
|
-
import { computeFederationName, computeRemoteUrlEnvVar, computeRoute } from "
|
|
3
|
+
import { computeFederationName, computeRemoteUrlEnvVar, computeRoute } from "./derived.js";
|
|
4
4
|
describe("computeRoute", () => {
|
|
5
5
|
it("strips the gdc- prefix and prepends a slash", () => {
|
|
6
6
|
expect(computeRoute("gdc-foo")).toBe("/foo");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsonAnchors.test.d.ts","sourceRoot":"","sources":["../../src/engine/jsonAnchors.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { describe, expect, it } from "vitest";
|
|
3
|
-
import { ensureTrailingCommaBeforeAnchor } from "
|
|
3
|
+
import { ensureTrailingCommaBeforeAnchor } from "./jsonAnchors.js";
|
|
4
4
|
describe("ensureTrailingCommaBeforeAnchor", () => {
|
|
5
5
|
it("adds a comma to a code line that lacks one", () => {
|
|
6
6
|
const input = `[
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repoDetection.test.d.ts","sourceRoot":"","sources":["../../src/engine/repoDetection.test.ts"],"names":[],"mappings":""}
|
|
@@ -3,7 +3,7 @@ import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "fs";
|
|
|
3
3
|
import { tmpdir } from "os";
|
|
4
4
|
import { join } from "path";
|
|
5
5
|
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
|
6
|
-
import { detectRepo, findUp } from "
|
|
6
|
+
import { detectRepo, findUp } from "./repoDetection.js";
|
|
7
7
|
describe("findUp", () => {
|
|
8
8
|
let root;
|
|
9
9
|
beforeEach(() => {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrubPackageJsonVersions.d.ts","sourceRoot":"","sources":["../../src/engine/scrubPackageJsonVersions.ts"],"names":[],"mappings":"AAmBA,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAiBhE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scrubPackageJsonVersions.test.d.ts","sourceRoot":"","sources":["../../src/engine/scrubPackageJsonVersions.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"snapshot.test.d.ts","sourceRoot":"","sources":["../../src/engine/snapshot.test.ts"],"names":[],"mappings":""}
|
|
@@ -4,9 +4,9 @@ import { createRequire } from "module";
|
|
|
4
4
|
import { tmpdir } from "os";
|
|
5
5
|
import { dirname, join, relative } from "path";
|
|
6
6
|
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
|
|
7
|
-
import { clientProfile } from "
|
|
8
|
-
import { BINARY_EXTENSIONS } from "
|
|
9
|
-
import { runProfileWithAnswers } from "
|
|
7
|
+
import { clientProfile } from "../profiles/client.js";
|
|
8
|
+
import { BINARY_EXTENSIONS } from "./copyTemplate.js";
|
|
9
|
+
import { runProfileWithAnswers } from "./runProfile.js";
|
|
10
10
|
import { scrubPackageJsonVersions } from "./scrubPackageJsonVersions.js";
|
|
11
11
|
// Resolve workspace template paths via pnpm's symlinks. The template packages
|
|
12
12
|
// are devDependencies of @gooddata/create-pluggable-module — pnpm symlinks
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.test.d.ts","sourceRoot":"","sources":["../../src/profiles/client.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
import { describe, expect, it } from "vitest";
|
|
3
|
-
import { clientProfile } from "
|
|
3
|
+
import { clientProfile } from "./client.js";
|
|
4
4
|
function mockCtx(overrides = {}) {
|
|
5
5
|
return {
|
|
6
6
|
answers: { appName: "gdc-mock", title: "Mock", scope: "workspace", maintainer: "team@gooddata.com" },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/create-pluggable-module",
|
|
3
|
-
"version": "11.54.0-alpha.
|
|
3
|
+
"version": "11.54.0-alpha.6",
|
|
4
4
|
"description": "Scaffolder for GoodData pluggable applications. Invoked via `npm init @gooddata/pluggable-module`.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "GoodData Corporation",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"typescript": "5.9.3",
|
|
51
51
|
"vite": "8.0.16",
|
|
52
52
|
"vitest": "4.1.8",
|
|
53
|
-
"@gooddata/eslint-config": "11.54.0-alpha.
|
|
54
|
-
"gdc-app-template-name-
|
|
55
|
-
"
|
|
56
|
-
"
|
|
53
|
+
"@gooddata/eslint-config": "11.54.0-alpha.6",
|
|
54
|
+
"gdc-app-template-name-harness": "11.54.0-alpha.6",
|
|
55
|
+
"@gooddata/oxlint-config": "11.54.0-alpha.6",
|
|
56
|
+
"gdc-app-template-name-module": "11.54.0-alpha.6"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=24.12.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"anchors.test.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/anchors.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"copyTemplate.test.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/copyTemplate.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"derived.test.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/derived.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jsonAnchors.test.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/jsonAnchors.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"repoDetection.test.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/repoDetection.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scrubPackageJsonVersions.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/scrubPackageJsonVersions.ts"],"names":[],"mappings":"AAmBA,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAiBhE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scrubPackageJsonVersions.test.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/scrubPackageJsonVersions.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"snapshot.test.d.ts","sourceRoot":"","sources":["../../../src/engine/__tests__/snapshot.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.test.d.ts","sourceRoot":"","sources":["../../../src/profiles/__tests__/client.test.ts"],"names":[],"mappings":""}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/esm/engine/{__tests__/scrubPackageJsonVersions.d.ts → scrubPackageJsonVersions.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/esm/engine/{__tests__/scrubPackageJsonVersions.test.js → scrubPackageJsonVersions.test.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|