@gooddata/create-pluggable-module 11.40.0 → 11.41.0-alpha.1
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/.oxlintrc.json +25 -0
- package/dist/templates/harness/eslint.config.ts +1 -1
- package/dist/templates/harness/package.json +1 -2
- package/dist/templates/harness/vite.config.ts +5 -3
- package/dist/templates/module/.oxlintrc.json +25 -0
- package/dist/templates/module/eslint.config.ts +1 -1
- package/dist/templates/module/package.json +1 -1
- package/dist/templates/module/src/App.test.tsx +1 -1
- package/dist/templates/module/src/index.ts +2 -0
- package/dist/templates/module/src/pluggableApp.tsx +4 -4
- package/dist/templates/module/vite.config.ts +2 -2
- package/package.json +5 -5
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
+
"extends": ["node_modules/@gooddata/oxlint-config/dist/react.json"],
|
|
4
|
+
"options": {
|
|
5
|
+
"typeAware": true
|
|
6
|
+
},
|
|
7
|
+
"ignorePatterns": ["typings.d.ts", "dist/**", "esm/**"],
|
|
8
|
+
"rules": {
|
|
9
|
+
"import/no-unassigned-import": "warn"
|
|
10
|
+
},
|
|
11
|
+
"overrides": [
|
|
12
|
+
{
|
|
13
|
+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
14
|
+
"rules": {
|
|
15
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
16
|
+
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
17
|
+
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
18
|
+
"@typescript-eslint/no-unsafe-call": "warn",
|
|
19
|
+
"@typescript-eslint/no-unsafe-member-access": "warn",
|
|
20
|
+
"@typescript-eslint/no-unsafe-return": "warn",
|
|
21
|
+
"@typescript-eslint/restrict-template-expressions": "warn"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gdc-app-template-name-harness",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.41.0-alpha.1",
|
|
4
4
|
"private": true,
|
|
5
5
|
"description": "Standalone harness for gdc-app-template-name module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -57,7 +57,6 @@
|
|
|
57
57
|
"eslint-plugin-import-x": "4.16.1",
|
|
58
58
|
"eslint-plugin-jsdoc": "62.1.0",
|
|
59
59
|
"eslint-plugin-no-barrel-files": "1.2.2",
|
|
60
|
-
"eslint-plugin-no-only-tests": "3.3.0",
|
|
61
60
|
"eslint-plugin-react": "7.37.5",
|
|
62
61
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
63
62
|
"eslint-plugin-sonarjs": "3.0.6",
|
|
@@ -5,7 +5,7 @@ import type { ClientRequest } from "http";
|
|
|
5
5
|
import { join, resolve } from "path";
|
|
6
6
|
|
|
7
7
|
import react from "@vitejs/plugin-react";
|
|
8
|
-
import { type UserConfig, defaultClientConditions, defineConfig, loadEnv } from "vite";
|
|
8
|
+
import { type ServerOptions, type UserConfig, defaultClientConditions, defineConfig, loadEnv } from "vite";
|
|
9
9
|
|
|
10
10
|
// Strip `origin` (Tiger backend rejects cross-origin) and force identity
|
|
11
11
|
// encoding (so the vite proxy can read the response without decompressing).
|
|
@@ -15,7 +15,7 @@ function applyProxyRequestHeaders(proxyReq: ClientRequest): void {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
const certDir = join(process.env["HOME"] || process.env["USERPROFILE"] || "", ".gooddata", "certs");
|
|
18
|
-
let httpsConfig:
|
|
18
|
+
let httpsConfig: ServerOptions["https"] | undefined;
|
|
19
19
|
|
|
20
20
|
try {
|
|
21
21
|
httpsConfig = {
|
|
@@ -73,7 +73,9 @@ export default defineConfig(({ mode }): UserConfig => {
|
|
|
73
73
|
// resolution. Without "browser", packages like react-textarea-autosize fall
|
|
74
74
|
// through to their node-targeted default export (a stub that ignores
|
|
75
75
|
// minRows/maxRows).
|
|
76
|
-
|
|
76
|
+
// `source` is added only in dev so production builds use the published
|
|
77
|
+
// artifacts of workspace deps, not their TS source.
|
|
78
|
+
conditions: [...defaultClientConditions, ...(isProduction ? [] : ["source"])],
|
|
77
79
|
dedupe: ["react", "react-dom"],
|
|
78
80
|
},
|
|
79
81
|
server: {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
+
"extends": ["node_modules/@gooddata/oxlint-config/dist/react-vitest.json"],
|
|
4
|
+
"options": {
|
|
5
|
+
"typeAware": true
|
|
6
|
+
},
|
|
7
|
+
"ignorePatterns": ["typings.d.ts", "dist/**", "esm/**"],
|
|
8
|
+
"rules": {
|
|
9
|
+
"import/no-unassigned-import": "warn"
|
|
10
|
+
},
|
|
11
|
+
"overrides": [
|
|
12
|
+
{
|
|
13
|
+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
|
|
14
|
+
"rules": {
|
|
15
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
16
|
+
"@typescript-eslint/no-unsafe-argument": "warn",
|
|
17
|
+
"@typescript-eslint/no-unsafe-assignment": "warn",
|
|
18
|
+
"@typescript-eslint/no-unsafe-call": "warn",
|
|
19
|
+
"@typescript-eslint/no-unsafe-member-access": "warn",
|
|
20
|
+
"@typescript-eslint/no-unsafe-return": "warn",
|
|
21
|
+
"@typescript-eslint/restrict-template-expressions": "warn"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
]
|
|
25
|
+
}
|
|
@@ -5,7 +5,7 @@ import { IntlProvider } from "react-intl";
|
|
|
5
5
|
import { describe, expect, it } from "vitest";
|
|
6
6
|
|
|
7
7
|
import { BackendProvider } from "@gooddata/sdk-ui";
|
|
8
|
-
import {
|
|
8
|
+
import { type IClientPlatformContext, PlatformContextProvider } from "@gooddata/sdk-ui-pluggable-application";
|
|
9
9
|
|
|
10
10
|
import { App } from "./App.js";
|
|
11
11
|
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// (C) 2026 GoodData Corporation
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { type Root, createRoot } from "react-dom/client";
|
|
4
4
|
|
|
5
5
|
import {
|
|
6
|
+
type IPlatformContext,
|
|
6
7
|
type IPluggableApp,
|
|
7
|
-
type IPluggableApplicationMountHandle,
|
|
8
|
-
type IPluggableApplicationMountOptions,
|
|
9
8
|
type IPluggableAppEvent,
|
|
10
9
|
type IPluggableAppTelemetryCallbacks,
|
|
11
|
-
type
|
|
10
|
+
type IPluggableApplicationMountHandle,
|
|
11
|
+
type IPluggableApplicationMountOptions,
|
|
12
12
|
} from "@gooddata/sdk-pluggable-application-model";
|
|
13
13
|
|
|
14
14
|
import { App } from "./App.js";
|
|
@@ -24,7 +24,7 @@ import { join, resolve } from "path";
|
|
|
24
24
|
|
|
25
25
|
import { federation } from "@module-federation/vite";
|
|
26
26
|
import react from "@vitejs/plugin-react";
|
|
27
|
-
import { type UserConfig, defaultClientConditions, defineConfig, loadEnv } from "vite";
|
|
27
|
+
import { type ServerOptions, type UserConfig, defaultClientConditions, defineConfig, loadEnv } from "vite";
|
|
28
28
|
|
|
29
29
|
function tryExecSync(command: string, fallback: string): string {
|
|
30
30
|
try {
|
|
@@ -50,7 +50,7 @@ function gitRevisionPlugin() {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
const certDir = join(process.env["HOME"] || process.env["USERPROFILE"] || "", ".gooddata", "certs");
|
|
53
|
-
let httpsConfig:
|
|
53
|
+
let httpsConfig: ServerOptions["https"] | undefined;
|
|
54
54
|
|
|
55
55
|
try {
|
|
56
56
|
httpsConfig = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gooddata/create-pluggable-module",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.41.0-alpha.1",
|
|
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
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"gdc-app-template-name-
|
|
53
|
+
"@gooddata/eslint-config": "11.41.0-alpha.1",
|
|
54
|
+
"gdc-app-template-name-harness": "11.41.0-alpha.1",
|
|
55
|
+
"@gooddata/oxlint-config": "11.41.0-alpha.1",
|
|
56
|
+
"gdc-app-template-name-module": "11.41.0-alpha.1"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
59
59
|
"node": ">=24.12.0"
|