diff --git a/apps/events/src/routeTree.gen.ts b/apps/events/src/routeTree.gen.ts index db6d0dab..8eb6ef37 100644 --- a/apps/events/src/routeTree.gen.ts +++ b/apps/events/src/routeTree.gen.ts @@ -1,3 +1,5 @@ +/* eslint-disable */ + // @ts-nocheck // noinspection JSUnusedGlobalSymbols @@ -6,20 +8,20 @@ // You should NOT make any changes in this file as it will be overwritten. // Additionally, you should also exclude this file from your linter and/or formatter to prevent it from being checked or modified. -import { createFileRoute } from '@tanstack/react-router'; +import { createFileRoute } from '@tanstack/react-router' // Import Routes -import { Route as rootRoute } from './routes/__root'; -import { Route as IndexImport } from './routes/index'; -import { Route as PlaygroundImport } from './routes/playground'; -import { Route as Schema2Import } from './routes/schema2'; -import { Route as SpaceSpaceIdImport } from './routes/space/$spaceId'; +import { Route as rootRoute } from './routes/__root' +import { Route as Schema2Import } from './routes/schema2' +import { Route as PlaygroundImport } from './routes/playground' +import { Route as IndexImport } from './routes/index' +import { Route as SpaceSpaceIdImport } from './routes/space/$spaceId' // Create Virtual Routes -const Login2LazyImport = createFileRoute('/login2')(); -const LoginLazyImport = createFileRoute('/login')(); +const Login2LazyImport = createFileRoute('/login2')() +const LoginLazyImport = createFileRoute('/login')() // Create/Update Routes @@ -27,133 +29,152 @@ const Login2LazyRoute = Login2LazyImport.update({ id: '/login2', path: '/login2', getParentRoute: () => rootRoute, -} as any).lazy(() => import('./routes/login2.lazy').then((d) => d.Route)); +} as any).lazy(() => import('./routes/login2.lazy').then((d) => d.Route)) const LoginLazyRoute = LoginLazyImport.update({ id: '/login', path: '/login', getParentRoute: () => rootRoute, -} as any).lazy(() => import('./routes/login.lazy').then((d) => d.Route)); +} as any).lazy(() => import('./routes/login.lazy').then((d) => d.Route)) const Schema2Route = Schema2Import.update({ id: '/schema2', path: '/schema2', getParentRoute: () => rootRoute, -} as any); +} as any) const PlaygroundRoute = PlaygroundImport.update({ id: '/playground', path: '/playground', getParentRoute: () => rootRoute, -} as any); +} as any) const IndexRoute = IndexImport.update({ id: '/', path: '/', getParentRoute: () => rootRoute, -} as any); +} as any) const SpaceSpaceIdRoute = SpaceSpaceIdImport.update({ id: '/space/$spaceId', path: '/space/$spaceId', getParentRoute: () => rootRoute, -} as any); +} as any) // Populate the FileRoutesByPath interface declare module '@tanstack/react-router' { interface FileRoutesByPath { '/': { - id: '/'; - path: '/'; - fullPath: '/'; - preLoaderRoute: typeof IndexImport; - parentRoute: typeof rootRoute; - }; + id: '/' + path: '/' + fullPath: '/' + preLoaderRoute: typeof IndexImport + parentRoute: typeof rootRoute + } '/playground': { - id: '/playground'; - path: '/playground'; - fullPath: '/playground'; - preLoaderRoute: typeof PlaygroundImport; - parentRoute: typeof rootRoute; - }; + id: '/playground' + path: '/playground' + fullPath: '/playground' + preLoaderRoute: typeof PlaygroundImport + parentRoute: typeof rootRoute + } '/schema2': { - id: '/schema2'; - path: '/schema2'; - fullPath: '/schema2'; - preLoaderRoute: typeof Schema2Import; - parentRoute: typeof rootRoute; - }; + id: '/schema2' + path: '/schema2' + fullPath: '/schema2' + preLoaderRoute: typeof Schema2Import + parentRoute: typeof rootRoute + } '/login': { - id: '/login'; - path: '/login'; - fullPath: '/login'; - preLoaderRoute: typeof LoginLazyImport; - parentRoute: typeof rootRoute; - }; + id: '/login' + path: '/login' + fullPath: '/login' + preLoaderRoute: typeof LoginLazyImport + parentRoute: typeof rootRoute + } '/login2': { - id: '/login2'; - path: '/login2'; - fullPath: '/login2'; - preLoaderRoute: typeof Login2LazyImport; - parentRoute: typeof rootRoute; - }; + id: '/login2' + path: '/login2' + fullPath: '/login2' + preLoaderRoute: typeof Login2LazyImport + parentRoute: typeof rootRoute + } '/space/$spaceId': { - id: '/space/$spaceId'; - path: '/space/$spaceId'; - fullPath: '/space/$spaceId'; - preLoaderRoute: typeof SpaceSpaceIdImport; - parentRoute: typeof rootRoute; - }; + id: '/space/$spaceId' + path: '/space/$spaceId' + fullPath: '/space/$spaceId' + preLoaderRoute: typeof SpaceSpaceIdImport + parentRoute: typeof rootRoute + } } } // Create and export the route tree export interface FileRoutesByFullPath { - '/': typeof IndexRoute; - '/playground': typeof PlaygroundRoute; - '/schema2': typeof Schema2Route; - '/login': typeof LoginLazyRoute; - '/login2': typeof Login2LazyRoute; - '/space/$spaceId': typeof SpaceSpaceIdRoute; + '/': typeof IndexRoute + '/playground': typeof PlaygroundRoute + '/schema2': typeof Schema2Route + '/login': typeof LoginLazyRoute + '/login2': typeof Login2LazyRoute + '/space/$spaceId': typeof SpaceSpaceIdRoute } export interface FileRoutesByTo { - '/': typeof IndexRoute; - '/playground': typeof PlaygroundRoute; - '/schema2': typeof Schema2Route; - '/login': typeof LoginLazyRoute; - '/login2': typeof Login2LazyRoute; - '/space/$spaceId': typeof SpaceSpaceIdRoute; + '/': typeof IndexRoute + '/playground': typeof PlaygroundRoute + '/schema2': typeof Schema2Route + '/login': typeof LoginLazyRoute + '/login2': typeof Login2LazyRoute + '/space/$spaceId': typeof SpaceSpaceIdRoute } export interface FileRoutesById { - __root__: typeof rootRoute; - '/': typeof IndexRoute; - '/playground': typeof PlaygroundRoute; - '/schema2': typeof Schema2Route; - '/login': typeof LoginLazyRoute; - '/login2': typeof Login2LazyRoute; - '/space/$spaceId': typeof SpaceSpaceIdRoute; + __root__: typeof rootRoute + '/': typeof IndexRoute + '/playground': typeof PlaygroundRoute + '/schema2': typeof Schema2Route + '/login': typeof LoginLazyRoute + '/login2': typeof Login2LazyRoute + '/space/$spaceId': typeof SpaceSpaceIdRoute } export interface FileRouteTypes { - fileRoutesByFullPath: FileRoutesByFullPath; - fullPaths: '/' | '/playground' | '/schema2' | '/login' | '/login2' | '/space/$spaceId'; - fileRoutesByTo: FileRoutesByTo; - to: '/' | '/playground' | '/schema2' | '/login' | '/login2' | '/space/$spaceId'; - id: '__root__' | '/' | '/playground' | '/schema2' | '/login' | '/login2' | '/space/$spaceId'; - fileRoutesById: FileRoutesById; + fileRoutesByFullPath: FileRoutesByFullPath + fullPaths: + | '/' + | '/playground' + | '/schema2' + | '/login' + | '/login2' + | '/space/$spaceId' + fileRoutesByTo: FileRoutesByTo + to: + | '/' + | '/playground' + | '/schema2' + | '/login' + | '/login2' + | '/space/$spaceId' + id: + | '__root__' + | '/' + | '/playground' + | '/schema2' + | '/login' + | '/login2' + | '/space/$spaceId' + fileRoutesById: FileRoutesById } export interface RootRouteChildren { - IndexRoute: typeof IndexRoute; - PlaygroundRoute: typeof PlaygroundRoute; - Schema2Route: typeof Schema2Route; - LoginLazyRoute: typeof LoginLazyRoute; - Login2LazyRoute: typeof Login2LazyRoute; - SpaceSpaceIdRoute: typeof SpaceSpaceIdRoute; + IndexRoute: typeof IndexRoute + PlaygroundRoute: typeof PlaygroundRoute + Schema2Route: typeof Schema2Route + LoginLazyRoute: typeof LoginLazyRoute + Login2LazyRoute: typeof Login2LazyRoute + SpaceSpaceIdRoute: typeof SpaceSpaceIdRoute } const rootRouteChildren: RootRouteChildren = { @@ -163,9 +184,11 @@ const rootRouteChildren: RootRouteChildren = { LoginLazyRoute: LoginLazyRoute, Login2LazyRoute: Login2LazyRoute, SpaceSpaceIdRoute: SpaceSpaceIdRoute, -}; +} -export const routeTree = rootRoute._addFileChildren(rootRouteChildren)._addFileTypes(); +export const routeTree = rootRoute + ._addFileChildren(rootRouteChildren) + ._addFileTypes() /* ROUTE_MANIFEST_START { diff --git a/biome.jsonc b/biome.jsonc index e83e9619..bf1b2dee 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -7,7 +7,7 @@ }, "files": { "ignoreUnknown": false, - "ignore": ["node_modules/", "**/node_modules", "**/dist"] + "ignore": ["node_modules/", "**/node_modules", "**/dist", "routeTree.gen.ts"] }, "formatter": { "enabled": true, diff --git a/package.json b/package.json index 1853879a..5ca60bbf 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "escape-string-regexp": "^5.0.0", "typescript": "^5.6.3", "vite": "^5.4.10", - "vitest": "^2.1.4" + "vitest": "^2.1.4", + "vite-plugin-dts": "^4.3.0" }, "scripts": { "build": "pnpm --filter graph-framework-utils build", diff --git a/packages/graph-framework-identity/tsconfig.build.json b/packages/graph-framework-identity/tsconfig.build.json new file mode 100644 index 00000000..9f8c8762 --- /dev/null +++ b/packages/graph-framework-identity/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.options.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["./src"], + "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"] +} diff --git a/packages/graph-framework-identity/tsconfig.json b/packages/graph-framework-identity/tsconfig.json index ce5d7bdb..2ffc3dc0 100644 --- a/packages/graph-framework-identity/tsconfig.json +++ b/packages/graph-framework-identity/tsconfig.json @@ -1,27 +1,10 @@ { + "extends": "../../tsconfig.options.json", "compilerOptions": { - "strict": true, - "exactOptionalPropertyTypes": true, - "noUncheckedIndexedAccess": true, - "esModuleInterop": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "strictNullChecks": true, - "incremental": true, - "composite": true, - "allowJs": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, - "noErrorTruncation": true, - "isolatedModules": true, - "target": "ESNext", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "outDir": "./dist", - "rootDir": "./src", - "jsx": "react-jsx" + "baseUrl": ".", + "rootDir": ".", + "noEmit": true }, - "include": ["./src"] + "include": ["**/*", "vite.config.mts"], + "exclude": ["**/node_modules", "**/dist"] } diff --git a/packages/graph-framework-schema/tsconfig.build.json b/packages/graph-framework-schema/tsconfig.build.json new file mode 100644 index 00000000..9f8c8762 --- /dev/null +++ b/packages/graph-framework-schema/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.options.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["./src"], + "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"] +} diff --git a/packages/graph-framework-schema/tsconfig.json b/packages/graph-framework-schema/tsconfig.json index ce5d7bdb..2ffc3dc0 100644 --- a/packages/graph-framework-schema/tsconfig.json +++ b/packages/graph-framework-schema/tsconfig.json @@ -1,27 +1,10 @@ { + "extends": "../../tsconfig.options.json", "compilerOptions": { - "strict": true, - "exactOptionalPropertyTypes": true, - "noUncheckedIndexedAccess": true, - "esModuleInterop": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "strictNullChecks": true, - "incremental": true, - "composite": true, - "allowJs": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, - "noErrorTruncation": true, - "isolatedModules": true, - "target": "ESNext", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "outDir": "./dist", - "rootDir": "./src", - "jsx": "react-jsx" + "baseUrl": ".", + "rootDir": ".", + "noEmit": true }, - "include": ["./src"] + "include": ["**/*", "vite.config.mts"], + "exclude": ["**/node_modules", "**/dist"] } diff --git a/packages/graph-framework-space-events/tsconfig.build.json b/packages/graph-framework-space-events/tsconfig.build.json new file mode 100644 index 00000000..9f8c8762 --- /dev/null +++ b/packages/graph-framework-space-events/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.options.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["./src"], + "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"] +} diff --git a/packages/graph-framework-space-events/tsconfig.json b/packages/graph-framework-space-events/tsconfig.json index ce5d7bdb..2ffc3dc0 100644 --- a/packages/graph-framework-space-events/tsconfig.json +++ b/packages/graph-framework-space-events/tsconfig.json @@ -1,27 +1,10 @@ { + "extends": "../../tsconfig.options.json", "compilerOptions": { - "strict": true, - "exactOptionalPropertyTypes": true, - "noUncheckedIndexedAccess": true, - "esModuleInterop": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "strictNullChecks": true, - "incremental": true, - "composite": true, - "allowJs": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, - "noErrorTruncation": true, - "isolatedModules": true, - "target": "ESNext", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "outDir": "./dist", - "rootDir": "./src", - "jsx": "react-jsx" + "baseUrl": ".", + "rootDir": ".", + "noEmit": true }, - "include": ["./src"] + "include": ["**/*", "vite.config.mts"], + "exclude": ["**/node_modules", "**/dist"] } diff --git a/packages/graph-framework-utils/tsconfig.build.json b/packages/graph-framework-utils/tsconfig.build.json index c20fae86..9f8c8762 100644 --- a/packages/graph-framework-utils/tsconfig.build.json +++ b/packages/graph-framework-utils/tsconfig.build.json @@ -1,28 +1,8 @@ { + "extends": "../../tsconfig.options.json", "compilerOptions": { - "strict": true, - "exactOptionalPropertyTypes": true, - "noUncheckedIndexedAccess": true, - "esModuleInterop": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "strictNullChecks": true, - "incremental": true, - "composite": true, - "allowJs": true, - "skipLibCheck": true, - "strictFunctionTypes": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, - "noErrorTruncation": true, - "isolatedModules": true, - "target": "ESNext", - "module": "NodeNext", - "moduleResolution": "NodeNext", "outDir": "./dist", - "rootDir": "./src", - "jsx": "react-jsx" + "rootDir": "./src" }, "include": ["./src"], "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"] diff --git a/packages/graph-framework-utils/tsconfig.json b/packages/graph-framework-utils/tsconfig.json index 23760c30..e71c5154 100644 --- a/packages/graph-framework-utils/tsconfig.json +++ b/packages/graph-framework-utils/tsconfig.json @@ -1,10 +1,9 @@ { - "extends": "./tsconfig.build.json", + "extends": "../../tsconfig.options.json", "compilerOptions": { "baseUrl": ".", - "rootDir": ".", "noEmit": true }, - "include": ["**/*", "vite.config.mts"], + "include": ["**/*", "vite.config.mts", "../../shared/*.ts"], "exclude": ["**/node_modules", "**/dist"] } diff --git a/packages/graph-framework-utils/vite.config.mts b/packages/graph-framework-utils/vite.config.mts index 89e35fa3..cb41057d 100644 --- a/packages/graph-framework-utils/vite.config.mts +++ b/packages/graph-framework-utils/vite.config.mts @@ -1,7 +1,7 @@ import { defineConfig } from 'vite'; import dts from 'vite-plugin-dts'; -import { vitePluginExternalizeDependencies } from './vitePluginExternalizeDependencies.js'; +import { vitePluginExternalizeDependencies } from '../../shared/vitePluginExternalizeDependencies.js'; // https://vitejs.dev/config/ export default defineConfig({ diff --git a/packages/graph-framework/tsconfig.build.json b/packages/graph-framework/tsconfig.build.json new file mode 100644 index 00000000..9f8c8762 --- /dev/null +++ b/packages/graph-framework/tsconfig.build.json @@ -0,0 +1,9 @@ +{ + "extends": "../../tsconfig.options.json", + "compilerOptions": { + "outDir": "./dist", + "rootDir": "./src" + }, + "include": ["./src"], + "exclude": ["node_modules", "src/**/*.test.ts", "src/**/*.spec.ts", "dist"] +} diff --git a/packages/graph-framework/tsconfig.json b/packages/graph-framework/tsconfig.json index ce5d7bdb..2ffc3dc0 100644 --- a/packages/graph-framework/tsconfig.json +++ b/packages/graph-framework/tsconfig.json @@ -1,27 +1,10 @@ { + "extends": "../../tsconfig.options.json", "compilerOptions": { - "strict": true, - "exactOptionalPropertyTypes": true, - "noUncheckedIndexedAccess": true, - "esModuleInterop": true, - "sourceMap": true, - "declarationMap": true, - "declaration": true, - "strictNullChecks": true, - "incremental": true, - "composite": true, - "allowJs": true, - "skipLibCheck": true, - "forceConsistentCasingInFileNames": true, - "noFallthroughCasesInSwitch": true, - "noErrorTruncation": true, - "isolatedModules": true, - "target": "ESNext", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "outDir": "./dist", - "rootDir": "./src", - "jsx": "react-jsx" + "baseUrl": ".", + "rootDir": ".", + "noEmit": true }, - "include": ["./src"] + "include": ["**/*", "vite.config.mts"], + "exclude": ["**/node_modules", "**/dist"] } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4da6a99e..3c38d792 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,6 +20,9 @@ importers: vite: specifier: ^5.4.10 version: 5.4.10(@types/node@22.9.0) + vite-plugin-dts: + specifier: ^4.3.0 + version: 4.3.0(@types/node@22.9.0)(rollup@4.21.3)(typescript@5.6.3)(vite@5.4.10(@types/node@22.9.0)) vitest: specifier: ^2.1.4 version: 2.1.4(@types/node@22.9.0)(jsdom@25.0.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)) diff --git a/packages/graph-framework-utils/vitePluginExternalizeDependencies.ts b/shared/vitePluginExternalizeDependencies.ts similarity index 100% rename from packages/graph-framework-utils/vitePluginExternalizeDependencies.ts rename to shared/vitePluginExternalizeDependencies.ts diff --git a/tsconfig.json b/tsconfig.json index 58c95a09..16a79720 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,22 +1,10 @@ { + "extends": "./tsconfig.options.json", "compilerOptions": { - "strict": true, - "exactOptionalPropertyTypes": true, - "target": "ESNext", - "module": "NodeNext", - "moduleResolution": "NodeNext", - "sourceMap": true, - "declaration": true, - "declarationMap": true, - "noEmitOnError": true, - "skipLibCheck": true, - "esModuleInterop": true, - "types": [], - "jsx": "react-jsx", - "baseUrl": ".", - "paths": {}, - "noEmit": true + "noEmit": true, + "noUncheckedIndexedAccess": true }, - "exclude": ["node_modules", "dist"] + "include": ["**/*"], + "exclude": ["**/node_modules", "**/packages"] } diff --git a/tsconfig.options.json b/tsconfig.options.json new file mode 100644 index 00000000..9ff799eb --- /dev/null +++ b/tsconfig.options.json @@ -0,0 +1,30 @@ +{ + "compilerOptions": { + "strict": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "exactOptionalPropertyTypes": true, + "skipLibCheck": true, + "noUncheckedIndexedAccess": true, + + "esModuleInterop": true, + "allowJs": true, + "isolatedModules": true, + + "sourceMap": true, + "declarationMap": true, + "declaration": true, + "incremental": true, + "composite": true, + + "forceConsistentCasingInFileNames": true, + "noFallthroughCasesInSwitch": true, + "noErrorTruncation": true, + + "target": "ESNext", + "module": "NodeNext", + "moduleResolution": "NodeNext", + + "jsx": "react-jsx" + } +} diff --git a/vitest.workspace.mts b/vitest.workspace.mts new file mode 100644 index 00000000..82a3216f --- /dev/null +++ b/vitest.workspace.mts @@ -0,0 +1,10 @@ +import { defineWorkspace } from "vitest/config"; + +export default defineWorkspace([ + "./packages/graph-framework-utils/vite.config.mts", + "./packages/graph-framework-space-events/vite.config.js", + "./packages/graph-framework-schema/vite.config.js", + "./packages/graph-framework-identity/vite.config.js", + "./packages/graph-framework/vite.config.js", + "./apps/events/vite.config.ts", +]);