@hexagen-monaco/sync 0.7.1 → 0.9.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/dist/cli.js +744 -25
- package/dist/cli.js.map +1 -1
- package/dist/commands/add/index.d.ts +6 -0
- package/dist/commands/add/index.d.ts.map +1 -1
- package/dist/generators/apps-framework-templates.d.ts.map +1 -1
- package/dist/generators/apps.d.ts.map +1 -1
- package/dist/generators/eslint.d.ts +2 -0
- package/dist/generators/eslint.d.ts.map +1 -1
- package/dist/generators/package-json.d.ts.map +1 -1
- package/dist/index.js +722 -20
- package/dist/index.js.map +1 -1
- package/dist/templates/agents-md/files/.agents/tech-stack.md +3 -4
- package/dist/templates/agents-md/files/.agents/testing.md +9 -9
- package/dist/templates/bedrock-agentcore-runtime/files/.github/workflows/deploy-agentcore.yml +1 -1
- package/dist/templates/ci-github-actions/files/.github/workflows/ci.yml +3 -3
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-fly.yml +1 -1
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-railway.yml +1 -1
- package/dist/templates/ci-github-actions/files/.github/workflows/deploy-vercel.yml +2 -2
- package/dist/templates/ci-github-actions/files/.github/workflows/preview.yml +2 -2
- package/dist/templates/docker/files/.github/workflows/docker-build.yml +1 -1
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/registry/tool-registry.test.ts +1 -1
- package/dist/templates/mcp-server/files/src/infrastructure/mcp/tools/example.tool.test.ts +1 -1
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/bearer.test.ts +1 -1
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/auth/oauth.test.ts +1 -1
- package/dist/templates/mcp-server-http/files/src/infrastructure/mcp/guard.test.ts +1 -1
- package/dist/types/manifest/apps.d.ts +1 -1
- package/dist/types/manifest/apps.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -907,6 +907,12 @@ async function generatePackageJson(modulePath, moduleName, config, report) {
|
|
|
907
907
|
build: "tsc",
|
|
908
908
|
lint: "eslint . --ext .ts,.tsx",
|
|
909
909
|
typecheck: "tsc --noEmit",
|
|
910
|
+
// Vitest runner (ADR-0044), scaffolded only for *external* (generated)
|
|
911
|
+
// projects — paired with the vitest.config.ts emitted below. This repo's
|
|
912
|
+
// own packages (self-regen) keep their shared-base setup untouched.
|
|
913
|
+
// `--passWithNoTests` so a freshly scaffolded module passes before any test
|
|
914
|
+
// is written.
|
|
915
|
+
...config.mode === "external" ? { test: "vitest run --passWithNoTests" } : {},
|
|
910
916
|
...defaults.scripts ?? {},
|
|
911
917
|
...moduleOverrides.scripts ?? {}
|
|
912
918
|
},
|
|
@@ -923,6 +929,7 @@ async function generatePackageJson(modulePath, moduleName, config, report) {
|
|
|
923
929
|
...Object.keys(dependencies).length > 0 ? { dependencies } : {},
|
|
924
930
|
devDependencies: {
|
|
925
931
|
typescript: "^5.0.0",
|
|
932
|
+
...config.mode === "external" ? { vitest: "^4.1.9" } : {},
|
|
926
933
|
...defaults.devDependencies ?? {},
|
|
927
934
|
...moduleOverrides.devDependencies ?? {}
|
|
928
935
|
}
|
|
@@ -970,6 +977,39 @@ async function generatePackageJson(modulePath, moduleName, config, report) {
|
|
|
970
977
|
true
|
|
971
978
|
);
|
|
972
979
|
recordWriteStatus(result, pkgPath, status);
|
|
980
|
+
if (config.mode === "external") {
|
|
981
|
+
const vitestConfigPath = path7.join(modulePath, "vitest.config.ts");
|
|
982
|
+
if (isInScope(vitestConfigPath, config)) {
|
|
983
|
+
let vitestConfigExists = false;
|
|
984
|
+
try {
|
|
985
|
+
await fs5.stat(vitestConfigPath);
|
|
986
|
+
vitestConfigExists = true;
|
|
987
|
+
} catch (e) {
|
|
988
|
+
if (!(e instanceof Error && "code" in e && e.code === "ENOENT")) {
|
|
989
|
+
throw e;
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
if (!vitestConfigExists) {
|
|
993
|
+
const vitestConfigContent = `import { defineConfig } from "vitest/config";
|
|
994
|
+
|
|
995
|
+
export default defineConfig({
|
|
996
|
+
test: {
|
|
997
|
+
environment: "node",
|
|
998
|
+
exclude: ["**/node_modules/**", "**/dist/**"],
|
|
999
|
+
},
|
|
1000
|
+
});
|
|
1001
|
+
`;
|
|
1002
|
+
const vitestStatus = await safeWriteFileAtomic(
|
|
1003
|
+
vitestConfigPath,
|
|
1004
|
+
vitestConfigContent,
|
|
1005
|
+
config,
|
|
1006
|
+
report,
|
|
1007
|
+
false
|
|
1008
|
+
);
|
|
1009
|
+
recordWriteStatus(result, vitestConfigPath, vitestStatus);
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
973
1013
|
return result;
|
|
974
1014
|
}
|
|
975
1015
|
var BUILTIN_FALLBACK_TEMPLATE = {
|
|
@@ -5336,7 +5376,7 @@ function assertValidToolchainVersion(version, source) {
|
|
|
5336
5376
|
function resolveToolchainVersion() {
|
|
5337
5377
|
{
|
|
5338
5378
|
return assertValidToolchainVersion(
|
|
5339
|
-
"0.
|
|
5379
|
+
"0.9.0",
|
|
5340
5380
|
"build-injected __HEXAGEN_TOOLCHAIN_VERSION__"
|
|
5341
5381
|
);
|
|
5342
5382
|
}
|
|
@@ -5858,24 +5898,36 @@ var NEXTJS_PACKAGE_JSON_TEMPLATE = `{
|
|
|
5858
5898
|
"react-dom": "^19.0.0"
|
|
5859
5899
|
},
|
|
5860
5900
|
"devDependencies": {
|
|
5901
|
+
"@types/react": "^19.0.0",
|
|
5902
|
+
"@types/react-dom": "^19.0.0",
|
|
5861
5903
|
"typescript": "^5.5.4",
|
|
5862
5904
|
"eslint": "^9.0.0",
|
|
5863
|
-
"@
|
|
5864
|
-
"
|
|
5905
|
+
"@eslint/js": "^9.0.0",
|
|
5906
|
+
"typescript-eslint": "^8.0.0"
|
|
5865
5907
|
}
|
|
5866
5908
|
}
|
|
5867
5909
|
`;
|
|
5868
5910
|
var NEXTJS_TSCONFIG = {
|
|
5869
5911
|
extends: "../../tsconfig.base.json",
|
|
5870
5912
|
compilerOptions: {
|
|
5871
|
-
rootDir: "
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
jsx: "
|
|
5913
|
+
rootDir: ".",
|
|
5914
|
+
composite: false,
|
|
5915
|
+
declaration: false,
|
|
5916
|
+
emitDeclarationOnly: false,
|
|
5917
|
+
noEmit: true,
|
|
5918
|
+
jsx: "preserve",
|
|
5919
|
+
plugins: [{ name: "next" }]
|
|
5877
5920
|
},
|
|
5878
|
-
include: [
|
|
5921
|
+
include: [
|
|
5922
|
+
"next-env.d.ts",
|
|
5923
|
+
"src/**/*.ts",
|
|
5924
|
+
"src/**/*.tsx",
|
|
5925
|
+
".next/types/**/*.ts"
|
|
5926
|
+
],
|
|
5927
|
+
// NOT excluding `.next` — `exclude` filters the `include` matches, so listing
|
|
5928
|
+
// `.next` here would cancel the `.next/types/**` include above (the generated
|
|
5929
|
+
// route types). `include` is already an allowlist, so the rest of `.next/`
|
|
5930
|
+
// (cache/server/static) never enters the program regardless.
|
|
5879
5931
|
exclude: ["node_modules", "dist"]
|
|
5880
5932
|
};
|
|
5881
5933
|
var NEXTJS_ENTRY_TEMPLATE = `// Auto-generated Next.js application
|
|
@@ -5883,6 +5935,16 @@ export default function HomePage() {
|
|
|
5883
5935
|
return <div>Welcome to {system}</div>;
|
|
5884
5936
|
}
|
|
5885
5937
|
`;
|
|
5938
|
+
var NEXTJS_LAYOUT_TEMPLATE = `import type { ReactNode } from "react";
|
|
5939
|
+
|
|
5940
|
+
export default function RootLayout({ children }: { children: ReactNode }) {
|
|
5941
|
+
return (
|
|
5942
|
+
<html lang="en">
|
|
5943
|
+
<body>{{children}}</body>
|
|
5944
|
+
</html>
|
|
5945
|
+
);
|
|
5946
|
+
}
|
|
5947
|
+
`;
|
|
5886
5948
|
var FASTIFY_PACKAGE_JSON_TEMPLATE = `{
|
|
5887
5949
|
"name": "@{scope}/{appName}",
|
|
5888
5950
|
"version": "0.0.0",
|
|
@@ -5900,8 +5962,8 @@ var FASTIFY_PACKAGE_JSON_TEMPLATE = `{
|
|
|
5900
5962
|
"devDependencies": {
|
|
5901
5963
|
"typescript": "^5.5.4",
|
|
5902
5964
|
"eslint": "^9.0.0",
|
|
5903
|
-
"@
|
|
5904
|
-
"
|
|
5965
|
+
"@eslint/js": "^9.0.0",
|
|
5966
|
+
"typescript-eslint": "^8.0.0"
|
|
5905
5967
|
}
|
|
5906
5968
|
}
|
|
5907
5969
|
`;
|
|
@@ -5943,8 +6005,8 @@ var PLAIN_TS_PACKAGE_JSON_TEMPLATE = `{
|
|
|
5943
6005
|
"devDependencies": {
|
|
5944
6006
|
"typescript": "^5.5.4",
|
|
5945
6007
|
"eslint": "^9.0.0",
|
|
5946
|
-
"@
|
|
5947
|
-
"
|
|
6008
|
+
"@eslint/js": "^9.0.0",
|
|
6009
|
+
"typescript-eslint": "^8.0.0"
|
|
5948
6010
|
}
|
|
5949
6011
|
}
|
|
5950
6012
|
`;
|
|
@@ -5984,8 +6046,8 @@ var NITRO_PACKAGE_JSON_TEMPLATE = `{
|
|
|
5984
6046
|
"devDependencies": {
|
|
5985
6047
|
"typescript": "^5.5.4",
|
|
5986
6048
|
"eslint": "^9.0.0",
|
|
5987
|
-
"@
|
|
5988
|
-
"
|
|
6049
|
+
"@eslint/js": "^9.0.0",
|
|
6050
|
+
"typescript-eslint": "^8.0.0"
|
|
5989
6051
|
}
|
|
5990
6052
|
}
|
|
5991
6053
|
`;
|
|
@@ -6009,6 +6071,538 @@ var NITRO_ROUTE_TEMPLATE = `// Auto-generated Nitro route — GET /
|
|
|
6009
6071
|
// \`defineEventHandler\` is auto-imported by Nitro (see ./.nitro/types).
|
|
6010
6072
|
export default defineEventHandler(() => ({ status: "ok", app: "{appName}" }));
|
|
6011
6073
|
`;
|
|
6074
|
+
var EXPRESS_PACKAGE_JSON_TEMPLATE = `{
|
|
6075
|
+
"name": "@{scope}/{appName}",
|
|
6076
|
+
"version": "0.0.0",
|
|
6077
|
+
"private": true,
|
|
6078
|
+
"type": "module",
|
|
6079
|
+
"scripts": {
|
|
6080
|
+
"build": "tsc",
|
|
6081
|
+
"dev": "tsc --watch",
|
|
6082
|
+
"lint": "eslint src --ext .ts",
|
|
6083
|
+
"typecheck": "tsc --noEmit"
|
|
6084
|
+
},
|
|
6085
|
+
"dependencies": {
|
|
6086
|
+
"express": "^5.0.0"
|
|
6087
|
+
},
|
|
6088
|
+
"devDependencies": {
|
|
6089
|
+
"@types/express": "^5.0.0",
|
|
6090
|
+
"typescript": "^5.5.4",
|
|
6091
|
+
"eslint": "^9.0.0",
|
|
6092
|
+
"@eslint/js": "^9.0.0",
|
|
6093
|
+
"typescript-eslint": "^8.0.0"
|
|
6094
|
+
}
|
|
6095
|
+
}
|
|
6096
|
+
`;
|
|
6097
|
+
var EXPRESS_TSCONFIG = {
|
|
6098
|
+
extends: "../../tsconfig.base.json",
|
|
6099
|
+
compilerOptions: {
|
|
6100
|
+
rootDir: "src",
|
|
6101
|
+
outDir: "dist",
|
|
6102
|
+
// Emit runnable JS (declaration alongside) — the app's `build: tsc` must
|
|
6103
|
+
// produce dist/*.js to run; NOT declaration-only.
|
|
6104
|
+
composite: true,
|
|
6105
|
+
declaration: true
|
|
6106
|
+
},
|
|
6107
|
+
include: ["src/**/*"],
|
|
6108
|
+
exclude: ["node_modules", "dist"]
|
|
6109
|
+
};
|
|
6110
|
+
var EXPRESS_ENTRY_TEMPLATE = `// Auto-generated Express application
|
|
6111
|
+
import express from "express";
|
|
6112
|
+
|
|
6113
|
+
const app = express();
|
|
6114
|
+
|
|
6115
|
+
app.get("/", (_req, res) => {
|
|
6116
|
+
res.json({ status: "ok", app: "{appName}" });
|
|
6117
|
+
});
|
|
6118
|
+
|
|
6119
|
+
const port = Number(process.env.PORT ?? 3000);
|
|
6120
|
+
app.listen(port);
|
|
6121
|
+
|
|
6122
|
+
export default app;
|
|
6123
|
+
`;
|
|
6124
|
+
var NESTJS_PACKAGE_JSON_TEMPLATE = `{
|
|
6125
|
+
"name": "@{scope}/{appName}",
|
|
6126
|
+
"version": "0.0.0",
|
|
6127
|
+
"private": true,
|
|
6128
|
+
"type": "module",
|
|
6129
|
+
"scripts": {
|
|
6130
|
+
"build": "nest build",
|
|
6131
|
+
"dev": "nest start --watch",
|
|
6132
|
+
"lint": "eslint src --ext .ts",
|
|
6133
|
+
"typecheck": "tsc --noEmit"
|
|
6134
|
+
},
|
|
6135
|
+
"dependencies": {
|
|
6136
|
+
"@nestjs/common": "^11.0.0",
|
|
6137
|
+
"@nestjs/core": "^11.0.0",
|
|
6138
|
+
"@nestjs/platform-express": "^11.0.0",
|
|
6139
|
+
"reflect-metadata": "^0.2.0",
|
|
6140
|
+
"rxjs": "^7.8.0"
|
|
6141
|
+
},
|
|
6142
|
+
"devDependencies": {
|
|
6143
|
+
"@nestjs/cli": "^11.0.0",
|
|
6144
|
+
"@nestjs/schematics": "^11.0.0",
|
|
6145
|
+
"@types/node": "^22.0.0",
|
|
6146
|
+
"typescript": "^5.5.4",
|
|
6147
|
+
"eslint": "^9.0.0",
|
|
6148
|
+
"@eslint/js": "^9.0.0",
|
|
6149
|
+
"typescript-eslint": "^8.0.0"
|
|
6150
|
+
}
|
|
6151
|
+
}
|
|
6152
|
+
`;
|
|
6153
|
+
var NESTJS_TSCONFIG = {
|
|
6154
|
+
extends: "../../tsconfig.base.json",
|
|
6155
|
+
compilerOptions: {
|
|
6156
|
+
rootDir: "src",
|
|
6157
|
+
outDir: "dist",
|
|
6158
|
+
// Emit runnable JS (not declaration-only): `nest build` falls back to this
|
|
6159
|
+
// tsconfig when there's no tsconfig.build.json, so it must produce dist/*.js.
|
|
6160
|
+
composite: true,
|
|
6161
|
+
declaration: true,
|
|
6162
|
+
// NestJS relies on decorator metadata for dependency injection.
|
|
6163
|
+
experimentalDecorators: true,
|
|
6164
|
+
emitDecoratorMetadata: true
|
|
6165
|
+
},
|
|
6166
|
+
include: ["src/**/*"],
|
|
6167
|
+
exclude: ["node_modules", "dist"]
|
|
6168
|
+
};
|
|
6169
|
+
var NESTJS_ENTRY_TEMPLATE = `// Auto-generated NestJS application entry point
|
|
6170
|
+
import "reflect-metadata";
|
|
6171
|
+
import { NestFactory } from "@nestjs/core";
|
|
6172
|
+
import { AppModule } from "./app.module.js";
|
|
6173
|
+
|
|
6174
|
+
async function bootstrap(): Promise<void> {
|
|
6175
|
+
const app = await NestFactory.create(AppModule);
|
|
6176
|
+
await app.listen(process.env.PORT ?? 3000);
|
|
6177
|
+
}
|
|
6178
|
+
|
|
6179
|
+
void bootstrap();
|
|
6180
|
+
`;
|
|
6181
|
+
var NESTJS_MODULE_TEMPLATE = `import { Module } from "@nestjs/common";
|
|
6182
|
+
import { AppController } from "./app.controller.js";
|
|
6183
|
+
|
|
6184
|
+
@Module({
|
|
6185
|
+
controllers: [AppController],
|
|
6186
|
+
})
|
|
6187
|
+
export class AppModule {}
|
|
6188
|
+
`;
|
|
6189
|
+
var NESTJS_CONTROLLER_TEMPLATE = `import { Controller, Get } from "@nestjs/common";
|
|
6190
|
+
|
|
6191
|
+
@Controller()
|
|
6192
|
+
export class AppController {
|
|
6193
|
+
@Get()
|
|
6194
|
+
getStatus(): { status: string; app: string } {
|
|
6195
|
+
return { status: "ok", app: "{appName}" };
|
|
6196
|
+
}
|
|
6197
|
+
}
|
|
6198
|
+
`;
|
|
6199
|
+
var NESTJS_CLI_TEMPLATE = `{
|
|
6200
|
+
"$schema": "https://json.schemastore.org/nest-cli",
|
|
6201
|
+
"collection": "@nestjs/schematics",
|
|
6202
|
+
"sourceRoot": "src"
|
|
6203
|
+
}
|
|
6204
|
+
`;
|
|
6205
|
+
var SERVERLESS_PACKAGE_JSON_TEMPLATE = `{
|
|
6206
|
+
"name": "@{scope}/{appName}",
|
|
6207
|
+
"version": "0.0.0",
|
|
6208
|
+
"private": true,
|
|
6209
|
+
"type": "module",
|
|
6210
|
+
"scripts": {
|
|
6211
|
+
"build": "tsc",
|
|
6212
|
+
"deploy": "tsc && serverless deploy",
|
|
6213
|
+
"lint": "eslint src --ext .ts",
|
|
6214
|
+
"typecheck": "tsc --noEmit"
|
|
6215
|
+
},
|
|
6216
|
+
"devDependencies": {
|
|
6217
|
+
"@types/aws-lambda": "^8.10.0",
|
|
6218
|
+
"serverless": "^4.0.0",
|
|
6219
|
+
"typescript": "^5.5.4",
|
|
6220
|
+
"eslint": "^9.0.0",
|
|
6221
|
+
"@eslint/js": "^9.0.0",
|
|
6222
|
+
"typescript-eslint": "^8.0.0"
|
|
6223
|
+
}
|
|
6224
|
+
}
|
|
6225
|
+
`;
|
|
6226
|
+
var SERVERLESS_TSCONFIG = {
|
|
6227
|
+
extends: "../../tsconfig.base.json",
|
|
6228
|
+
compilerOptions: {
|
|
6229
|
+
rootDir: "src",
|
|
6230
|
+
outDir: "dist",
|
|
6231
|
+
// Emit runnable JS to dist/ — the Lambda handler must exist as JS for deploy
|
|
6232
|
+
// (serverless.yml points at dist/handler.handler).
|
|
6233
|
+
composite: true,
|
|
6234
|
+
declaration: true
|
|
6235
|
+
},
|
|
6236
|
+
include: ["src/**/*"],
|
|
6237
|
+
exclude: ["node_modules", "dist"]
|
|
6238
|
+
};
|
|
6239
|
+
var SERVERLESS_ENTRY_TEMPLATE = `// Auto-generated AWS Lambda handler (Serverless Framework)
|
|
6240
|
+
import type {
|
|
6241
|
+
APIGatewayProxyEventV2,
|
|
6242
|
+
APIGatewayProxyResultV2,
|
|
6243
|
+
} from "aws-lambda";
|
|
6244
|
+
|
|
6245
|
+
export const handler = async (
|
|
6246
|
+
_event: APIGatewayProxyEventV2,
|
|
6247
|
+
): Promise<APIGatewayProxyResultV2> => {
|
|
6248
|
+
return {
|
|
6249
|
+
statusCode: 200,
|
|
6250
|
+
body: JSON.stringify({ status: "ok", app: "{appName}" }),
|
|
6251
|
+
};
|
|
6252
|
+
};
|
|
6253
|
+
`;
|
|
6254
|
+
var SERVERLESS_CONFIG_TEMPLATE = `service: {appName}
|
|
6255
|
+
frameworkVersion: "4"
|
|
6256
|
+
|
|
6257
|
+
provider:
|
|
6258
|
+
name: aws
|
|
6259
|
+
runtime: nodejs20.x
|
|
6260
|
+
|
|
6261
|
+
functions:
|
|
6262
|
+
api:
|
|
6263
|
+
handler: dist/handler.handler
|
|
6264
|
+
events:
|
|
6265
|
+
- httpApi:
|
|
6266
|
+
path: /
|
|
6267
|
+
method: get
|
|
6268
|
+
`;
|
|
6269
|
+
var VUE_PACKAGE_JSON_TEMPLATE = `{
|
|
6270
|
+
"name": "@{scope}/{appName}",
|
|
6271
|
+
"version": "0.0.0",
|
|
6272
|
+
"private": true,
|
|
6273
|
+
"type": "module",
|
|
6274
|
+
"scripts": {
|
|
6275
|
+
"dev": "vite",
|
|
6276
|
+
"build": "vue-tsc -b && vite build",
|
|
6277
|
+
"preview": "vite preview",
|
|
6278
|
+
"lint": "eslint src --ext .ts,.vue",
|
|
6279
|
+
"typecheck": "vue-tsc --noEmit"
|
|
6280
|
+
},
|
|
6281
|
+
"dependencies": {
|
|
6282
|
+
"vue": "^3.5.0"
|
|
6283
|
+
},
|
|
6284
|
+
"devDependencies": {
|
|
6285
|
+
"@vitejs/plugin-vue": "^5.2.0",
|
|
6286
|
+
"vite": "^6.0.0",
|
|
6287
|
+
"vue-tsc": "^2.1.0",
|
|
6288
|
+
"typescript": "^5.5.4",
|
|
6289
|
+
"eslint": "^9.0.0",
|
|
6290
|
+
"eslint-plugin-vue": "^9.30.0",
|
|
6291
|
+
"vue-eslint-parser": "^9.4.3",
|
|
6292
|
+
"@eslint/js": "^9.0.0",
|
|
6293
|
+
"typescript-eslint": "^8.0.0"
|
|
6294
|
+
}
|
|
6295
|
+
}
|
|
6296
|
+
`;
|
|
6297
|
+
var VUE_TSCONFIG = {
|
|
6298
|
+
extends: "../../tsconfig.base.json",
|
|
6299
|
+
compilerOptions: {
|
|
6300
|
+
rootDir: "src",
|
|
6301
|
+
outDir: "dist",
|
|
6302
|
+
composite: true,
|
|
6303
|
+
declaration: true,
|
|
6304
|
+
emitDeclarationOnly: true,
|
|
6305
|
+
jsx: "preserve"
|
|
6306
|
+
},
|
|
6307
|
+
include: ["src/**/*"],
|
|
6308
|
+
exclude: ["node_modules", "dist"]
|
|
6309
|
+
};
|
|
6310
|
+
var VUE_ENTRY_TEMPLATE = `import { createApp } from "vue";
|
|
6311
|
+
import App from "./App.vue.js";
|
|
6312
|
+
|
|
6313
|
+
createApp(App).mount("#app");
|
|
6314
|
+
`;
|
|
6315
|
+
var VUE_APP_TEMPLATE = `<script setup lang="ts"></script>
|
|
6316
|
+
|
|
6317
|
+
<template>
|
|
6318
|
+
<main>Welcome to {system}</main>
|
|
6319
|
+
</template>
|
|
6320
|
+
`;
|
|
6321
|
+
var VUE_INDEX_HTML_TEMPLATE = `<!doctype html>
|
|
6322
|
+
<html lang="en">
|
|
6323
|
+
<head>
|
|
6324
|
+
<meta charset="UTF-8" />
|
|
6325
|
+
<title>{system}</title>
|
|
6326
|
+
</head>
|
|
6327
|
+
<body>
|
|
6328
|
+
<div id="app"></div>
|
|
6329
|
+
<script type="module" src="/src/main.ts"></script>
|
|
6330
|
+
</body>
|
|
6331
|
+
</html>
|
|
6332
|
+
`;
|
|
6333
|
+
var VUE_VITE_CONFIG_TEMPLATE = `import { defineConfig } from "vite";
|
|
6334
|
+
import vue from "@vitejs/plugin-vue";
|
|
6335
|
+
|
|
6336
|
+
export default defineConfig({ plugins: [vue()] });
|
|
6337
|
+
`;
|
|
6338
|
+
var REACT_ROUTER_PACKAGE_JSON_TEMPLATE = `{
|
|
6339
|
+
"name": "@{scope}/{appName}",
|
|
6340
|
+
"version": "0.0.0",
|
|
6341
|
+
"private": true,
|
|
6342
|
+
"type": "module",
|
|
6343
|
+
"scripts": {
|
|
6344
|
+
"dev": "vite",
|
|
6345
|
+
"build": "tsc && vite build",
|
|
6346
|
+
"preview": "vite preview",
|
|
6347
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
6348
|
+
"typecheck": "tsc --noEmit"
|
|
6349
|
+
},
|
|
6350
|
+
"dependencies": {
|
|
6351
|
+
"react": "^19.0.0",
|
|
6352
|
+
"react-dom": "^19.0.0",
|
|
6353
|
+
"react-router-dom": "^7.0.0"
|
|
6354
|
+
},
|
|
6355
|
+
"devDependencies": {
|
|
6356
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
6357
|
+
"vite": "^6.0.0",
|
|
6358
|
+
"@types/react": "^19.0.0",
|
|
6359
|
+
"@types/react-dom": "^19.0.0",
|
|
6360
|
+
"typescript": "^5.5.4",
|
|
6361
|
+
"eslint": "^9.0.0",
|
|
6362
|
+
"@eslint/js": "^9.0.0",
|
|
6363
|
+
"typescript-eslint": "^8.0.0"
|
|
6364
|
+
}
|
|
6365
|
+
}
|
|
6366
|
+
`;
|
|
6367
|
+
var REACT_ROUTER_TSCONFIG = {
|
|
6368
|
+
extends: "../../tsconfig.base.json",
|
|
6369
|
+
compilerOptions: {
|
|
6370
|
+
rootDir: "src",
|
|
6371
|
+
outDir: "dist",
|
|
6372
|
+
composite: true,
|
|
6373
|
+
declaration: true,
|
|
6374
|
+
emitDeclarationOnly: true,
|
|
6375
|
+
jsx: "react-jsx"
|
|
6376
|
+
},
|
|
6377
|
+
include: ["src/**/*"],
|
|
6378
|
+
exclude: ["node_modules", "dist"]
|
|
6379
|
+
};
|
|
6380
|
+
var REACT_ROUTER_ENTRY_TEMPLATE = `import { StrictMode } from "react";
|
|
6381
|
+
import { createRoot } from "react-dom/client";
|
|
6382
|
+
import { createBrowserRouter, RouterProvider } from "react-router-dom";
|
|
6383
|
+
import App from "./App.js";
|
|
6384
|
+
|
|
6385
|
+
const router = createBrowserRouter([{ path: "/", element: <App /> }]);
|
|
6386
|
+
|
|
6387
|
+
createRoot(document.getElementById("root")!).render(
|
|
6388
|
+
<StrictMode>
|
|
6389
|
+
<RouterProvider router={router} />
|
|
6390
|
+
</StrictMode>,
|
|
6391
|
+
);
|
|
6392
|
+
`;
|
|
6393
|
+
var REACT_ROUTER_APP_TEMPLATE = `export default function App() {
|
|
6394
|
+
return <main>Welcome to {system}</main>;
|
|
6395
|
+
}
|
|
6396
|
+
`;
|
|
6397
|
+
var REACT_ROUTER_INDEX_HTML_TEMPLATE = `<!doctype html>
|
|
6398
|
+
<html lang="en">
|
|
6399
|
+
<head>
|
|
6400
|
+
<meta charset="UTF-8" />
|
|
6401
|
+
<title>{system}</title>
|
|
6402
|
+
</head>
|
|
6403
|
+
<body>
|
|
6404
|
+
<div id="root"></div>
|
|
6405
|
+
<script type="module" src="/src/main.tsx"></script>
|
|
6406
|
+
</body>
|
|
6407
|
+
</html>
|
|
6408
|
+
`;
|
|
6409
|
+
var REACT_ROUTER_VITE_CONFIG_TEMPLATE = `import { defineConfig } from "vite";
|
|
6410
|
+
import react from "@vitejs/plugin-react";
|
|
6411
|
+
|
|
6412
|
+
export default defineConfig({ plugins: [react()] });
|
|
6413
|
+
`;
|
|
6414
|
+
var REMIX_PACKAGE_JSON_TEMPLATE = `{
|
|
6415
|
+
"name": "@{scope}/{appName}",
|
|
6416
|
+
"version": "0.0.0",
|
|
6417
|
+
"private": true,
|
|
6418
|
+
"type": "module",
|
|
6419
|
+
"scripts": {
|
|
6420
|
+
"dev": "remix vite:dev",
|
|
6421
|
+
"build": "remix vite:build",
|
|
6422
|
+
"start": "remix-serve ./build/server/index.js",
|
|
6423
|
+
"lint": "eslint app --ext .ts,.tsx",
|
|
6424
|
+
"typecheck": "tsc --noEmit"
|
|
6425
|
+
},
|
|
6426
|
+
"dependencies": {
|
|
6427
|
+
"@remix-run/node": "^2.15.0",
|
|
6428
|
+
"@remix-run/react": "^2.15.0",
|
|
6429
|
+
"@remix-run/serve": "^2.15.0",
|
|
6430
|
+
"isbot": "^5.1.0",
|
|
6431
|
+
"react": "^18.2.0",
|
|
6432
|
+
"react-dom": "^18.2.0"
|
|
6433
|
+
},
|
|
6434
|
+
"devDependencies": {
|
|
6435
|
+
"@remix-run/dev": "^2.15.0",
|
|
6436
|
+
"vite": "^6.0.0",
|
|
6437
|
+
"@types/react": "^18.2.0",
|
|
6438
|
+
"@types/react-dom": "^18.2.0",
|
|
6439
|
+
"typescript": "^5.5.4",
|
|
6440
|
+
"eslint": "^9.0.0",
|
|
6441
|
+
"@eslint/js": "^9.0.0",
|
|
6442
|
+
"typescript-eslint": "^8.0.0"
|
|
6443
|
+
}
|
|
6444
|
+
}
|
|
6445
|
+
`;
|
|
6446
|
+
var REMIX_TSCONFIG = {
|
|
6447
|
+
extends: "../../tsconfig.base.json",
|
|
6448
|
+
compilerOptions: {
|
|
6449
|
+
rootDir: ".",
|
|
6450
|
+
outDir: "dist",
|
|
6451
|
+
composite: true,
|
|
6452
|
+
declaration: true,
|
|
6453
|
+
emitDeclarationOnly: true,
|
|
6454
|
+
jsx: "react-jsx"
|
|
6455
|
+
},
|
|
6456
|
+
include: ["app/**/*"],
|
|
6457
|
+
exclude: ["node_modules", "dist", "build"]
|
|
6458
|
+
};
|
|
6459
|
+
var REMIX_ROOT_TEMPLATE = `import { Links, Meta, Outlet, Scripts } from "@remix-run/react";
|
|
6460
|
+
|
|
6461
|
+
export default function App() {
|
|
6462
|
+
return (
|
|
6463
|
+
<html lang="en">
|
|
6464
|
+
<head>
|
|
6465
|
+
<meta charSet="utf-8" />
|
|
6466
|
+
<Meta />
|
|
6467
|
+
<Links />
|
|
6468
|
+
</head>
|
|
6469
|
+
<body>
|
|
6470
|
+
<Outlet />
|
|
6471
|
+
<Scripts />
|
|
6472
|
+
</body>
|
|
6473
|
+
</html>
|
|
6474
|
+
);
|
|
6475
|
+
}
|
|
6476
|
+
`;
|
|
6477
|
+
var REMIX_INDEX_ROUTE_TEMPLATE = `export default function Index() {
|
|
6478
|
+
return <main>Welcome to {system}</main>;
|
|
6479
|
+
}
|
|
6480
|
+
`;
|
|
6481
|
+
var REMIX_VITE_CONFIG_TEMPLATE = `import { vitePlugin as remix } from "@remix-run/dev";
|
|
6482
|
+
import { defineConfig } from "vite";
|
|
6483
|
+
|
|
6484
|
+
export default defineConfig({ plugins: [remix()] });
|
|
6485
|
+
`;
|
|
6486
|
+
var ANGULAR_PACKAGE_JSON_TEMPLATE = `{
|
|
6487
|
+
"name": "@{scope}/{appName}",
|
|
6488
|
+
"version": "0.0.0",
|
|
6489
|
+
"private": true,
|
|
6490
|
+
"type": "module",
|
|
6491
|
+
"scripts": {
|
|
6492
|
+
"dev": "ng serve",
|
|
6493
|
+
"build": "ng build",
|
|
6494
|
+
"lint": "eslint src --ext .ts",
|
|
6495
|
+
"typecheck": "tsc -p tsconfig.app.json --noEmit"
|
|
6496
|
+
},
|
|
6497
|
+
"dependencies": {
|
|
6498
|
+
"@angular/common": "^19.0.0",
|
|
6499
|
+
"@angular/compiler": "^19.0.0",
|
|
6500
|
+
"@angular/core": "^19.0.0",
|
|
6501
|
+
"@angular/platform-browser": "^19.0.0",
|
|
6502
|
+
"rxjs": "^7.8.0",
|
|
6503
|
+
"tslib": "^2.7.0",
|
|
6504
|
+
"zone.js": "^0.15.0"
|
|
6505
|
+
},
|
|
6506
|
+
"devDependencies": {
|
|
6507
|
+
"@angular/cli": "^19.0.0",
|
|
6508
|
+
"@angular/compiler-cli": "^19.0.0",
|
|
6509
|
+
"@angular-devkit/build-angular": "^19.0.0",
|
|
6510
|
+
"typescript": "^5.5.4",
|
|
6511
|
+
"eslint": "^9.0.0",
|
|
6512
|
+
"@eslint/js": "^9.0.0",
|
|
6513
|
+
"typescript-eslint": "^8.0.0"
|
|
6514
|
+
}
|
|
6515
|
+
}
|
|
6516
|
+
`;
|
|
6517
|
+
var ANGULAR_TSCONFIG = {
|
|
6518
|
+
extends: "../../tsconfig.base.json",
|
|
6519
|
+
compilerOptions: {
|
|
6520
|
+
// `rootDir: "src"` mirrors every other app template. Without it the app
|
|
6521
|
+
// inherits the monorepo base's `rootDir` (the repo root's `src`), and
|
|
6522
|
+
// `tsc -p tsconfig.app.json --noEmit` fails with "src/main.ts is not under
|
|
6523
|
+
// rootDir". tsconfig.app.json extends this file, so it inherits the override.
|
|
6524
|
+
rootDir: "src",
|
|
6525
|
+
outDir: "dist",
|
|
6526
|
+
experimentalDecorators: true,
|
|
6527
|
+
emitDecoratorMetadata: true,
|
|
6528
|
+
lib: ["ES2022", "DOM"],
|
|
6529
|
+
skipLibCheck: true
|
|
6530
|
+
},
|
|
6531
|
+
// The app build/typecheck uses tsconfig.app.json (it carries Angular's
|
|
6532
|
+
// angularCompilerOptions); this base just establishes shared compiler options.
|
|
6533
|
+
include: [],
|
|
6534
|
+
references: [{ path: "./tsconfig.app.json" }]
|
|
6535
|
+
};
|
|
6536
|
+
var ANGULAR_MAIN_TEMPLATE = `// zone.js powers Angular's default (zone-based) change detection — it must be
|
|
6537
|
+
// imported before bootstrap or async updates won't trigger a re-render.
|
|
6538
|
+
import "zone.js";
|
|
6539
|
+
import { bootstrapApplication } from "@angular/platform-browser";
|
|
6540
|
+
import { AppComponent } from "./app/app.component.js";
|
|
6541
|
+
|
|
6542
|
+
bootstrapApplication(AppComponent).catch((err) => console.error(err));
|
|
6543
|
+
`;
|
|
6544
|
+
var ANGULAR_COMPONENT_TEMPLATE = `import { Component } from "@angular/core";
|
|
6545
|
+
|
|
6546
|
+
@Component({
|
|
6547
|
+
selector: "app-root",
|
|
6548
|
+
standalone: true,
|
|
6549
|
+
template: "<main>Welcome to {system}</main>",
|
|
6550
|
+
})
|
|
6551
|
+
export class AppComponent {}
|
|
6552
|
+
`;
|
|
6553
|
+
var ANGULAR_INDEX_HTML_TEMPLATE = `<!doctype html>
|
|
6554
|
+
<html lang="en">
|
|
6555
|
+
<head>
|
|
6556
|
+
<meta charset="UTF-8" />
|
|
6557
|
+
<title>{system}</title>
|
|
6558
|
+
</head>
|
|
6559
|
+
<body>
|
|
6560
|
+
<app-root></app-root>
|
|
6561
|
+
</body>
|
|
6562
|
+
</html>
|
|
6563
|
+
`;
|
|
6564
|
+
var ANGULAR_APP_TSCONFIG_TEMPLATE = `{
|
|
6565
|
+
"extends": "./tsconfig.json",
|
|
6566
|
+
"compilerOptions": {
|
|
6567
|
+
"outDir": "./dist/app",
|
|
6568
|
+
"composite": false,
|
|
6569
|
+
"declaration": false,
|
|
6570
|
+
"types": []
|
|
6571
|
+
},
|
|
6572
|
+
"files": ["src/main.ts"],
|
|
6573
|
+
"include": ["src/**/*.ts"],
|
|
6574
|
+
"angularCompilerOptions": {
|
|
6575
|
+
"strictTemplates": true
|
|
6576
|
+
}
|
|
6577
|
+
}
|
|
6578
|
+
`;
|
|
6579
|
+
var ANGULAR_JSON_TEMPLATE = `{
|
|
6580
|
+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
|
|
6581
|
+
"version": 1,
|
|
6582
|
+
"projects": {
|
|
6583
|
+
"{appName}": {
|
|
6584
|
+
"projectType": "application",
|
|
6585
|
+
"root": "",
|
|
6586
|
+
"sourceRoot": "src",
|
|
6587
|
+
"architect": {
|
|
6588
|
+
"build": {
|
|
6589
|
+
"builder": "@angular-devkit/build-angular:application",
|
|
6590
|
+
"options": {
|
|
6591
|
+
"outputPath": "dist",
|
|
6592
|
+
"index": "src/index.html",
|
|
6593
|
+
"browser": "src/main.ts",
|
|
6594
|
+
"tsConfig": "tsconfig.app.json"
|
|
6595
|
+
}
|
|
6596
|
+
},
|
|
6597
|
+
"serve": {
|
|
6598
|
+
"builder": "@angular-devkit/build-angular:dev-server",
|
|
6599
|
+
"options": { "buildTarget": "{appName}:build" }
|
|
6600
|
+
}
|
|
6601
|
+
}
|
|
6602
|
+
}
|
|
6603
|
+
}
|
|
6604
|
+
}
|
|
6605
|
+
`;
|
|
6012
6606
|
var BUILTIN_FRAMEWORK_TEMPLATES = {
|
|
6013
6607
|
"next.js": {
|
|
6014
6608
|
packageJson: { template: NEXTJS_PACKAGE_JSON_TEMPLATE },
|
|
@@ -6016,7 +6610,10 @@ var BUILTIN_FRAMEWORK_TEMPLATES = {
|
|
|
6016
6610
|
entryPoint: {
|
|
6017
6611
|
path: "src/app/page.tsx",
|
|
6018
6612
|
template: NEXTJS_ENTRY_TEMPLATE
|
|
6019
|
-
}
|
|
6613
|
+
},
|
|
6614
|
+
extraFiles: [
|
|
6615
|
+
{ path: "src/app/layout.tsx", template: NEXTJS_LAYOUT_TEMPLATE }
|
|
6616
|
+
]
|
|
6020
6617
|
},
|
|
6021
6618
|
fastify: {
|
|
6022
6619
|
packageJson: { template: FASTIFY_PACKAGE_JSON_TEMPLATE },
|
|
@@ -6042,6 +6639,72 @@ var BUILTIN_FRAMEWORK_TEMPLATES = {
|
|
|
6042
6639
|
template: NITRO_ROUTE_TEMPLATE
|
|
6043
6640
|
},
|
|
6044
6641
|
extraFiles: [{ path: "nitro.config.ts", template: NITRO_CONFIG_TEMPLATE }]
|
|
6642
|
+
},
|
|
6643
|
+
express: {
|
|
6644
|
+
packageJson: { template: EXPRESS_PACKAGE_JSON_TEMPLATE },
|
|
6645
|
+
tsConfig: EXPRESS_TSCONFIG,
|
|
6646
|
+
entryPoint: { path: "src/index.ts", template: EXPRESS_ENTRY_TEMPLATE }
|
|
6647
|
+
},
|
|
6648
|
+
nestjs: {
|
|
6649
|
+
packageJson: { template: NESTJS_PACKAGE_JSON_TEMPLATE },
|
|
6650
|
+
tsConfig: NESTJS_TSCONFIG,
|
|
6651
|
+
entryPoint: { path: "src/main.ts", template: NESTJS_ENTRY_TEMPLATE },
|
|
6652
|
+
extraFiles: [
|
|
6653
|
+
{ path: "src/app.module.ts", template: NESTJS_MODULE_TEMPLATE },
|
|
6654
|
+
{ path: "src/app.controller.ts", template: NESTJS_CONTROLLER_TEMPLATE },
|
|
6655
|
+
{ path: "nest-cli.json", template: NESTJS_CLI_TEMPLATE }
|
|
6656
|
+
]
|
|
6657
|
+
},
|
|
6658
|
+
serverless: {
|
|
6659
|
+
packageJson: { template: SERVERLESS_PACKAGE_JSON_TEMPLATE },
|
|
6660
|
+
tsConfig: SERVERLESS_TSCONFIG,
|
|
6661
|
+
entryPoint: { path: "src/handler.ts", template: SERVERLESS_ENTRY_TEMPLATE },
|
|
6662
|
+
extraFiles: [
|
|
6663
|
+
{ path: "serverless.yml", template: SERVERLESS_CONFIG_TEMPLATE }
|
|
6664
|
+
]
|
|
6665
|
+
},
|
|
6666
|
+
vue: {
|
|
6667
|
+
packageJson: { template: VUE_PACKAGE_JSON_TEMPLATE },
|
|
6668
|
+
tsConfig: VUE_TSCONFIG,
|
|
6669
|
+
entryPoint: { path: "src/main.ts", template: VUE_ENTRY_TEMPLATE },
|
|
6670
|
+
extraFiles: [
|
|
6671
|
+
{ path: "src/App.vue", template: VUE_APP_TEMPLATE },
|
|
6672
|
+
{ path: "index.html", template: VUE_INDEX_HTML_TEMPLATE },
|
|
6673
|
+
{ path: "vite.config.ts", template: VUE_VITE_CONFIG_TEMPLATE }
|
|
6674
|
+
]
|
|
6675
|
+
},
|
|
6676
|
+
"react-router": {
|
|
6677
|
+
packageJson: { template: REACT_ROUTER_PACKAGE_JSON_TEMPLATE },
|
|
6678
|
+
tsConfig: REACT_ROUTER_TSCONFIG,
|
|
6679
|
+
entryPoint: { path: "src/main.tsx", template: REACT_ROUTER_ENTRY_TEMPLATE },
|
|
6680
|
+
extraFiles: [
|
|
6681
|
+
{ path: "src/App.tsx", template: REACT_ROUTER_APP_TEMPLATE },
|
|
6682
|
+
{ path: "index.html", template: REACT_ROUTER_INDEX_HTML_TEMPLATE },
|
|
6683
|
+
{ path: "vite.config.ts", template: REACT_ROUTER_VITE_CONFIG_TEMPLATE }
|
|
6684
|
+
]
|
|
6685
|
+
},
|
|
6686
|
+
remix: {
|
|
6687
|
+
packageJson: { template: REMIX_PACKAGE_JSON_TEMPLATE },
|
|
6688
|
+
tsConfig: REMIX_TSCONFIG,
|
|
6689
|
+
entryPoint: { path: "app/root.tsx", template: REMIX_ROOT_TEMPLATE },
|
|
6690
|
+
extraFiles: [
|
|
6691
|
+
{ path: "app/routes/_index.tsx", template: REMIX_INDEX_ROUTE_TEMPLATE },
|
|
6692
|
+
{ path: "vite.config.ts", template: REMIX_VITE_CONFIG_TEMPLATE }
|
|
6693
|
+
]
|
|
6694
|
+
},
|
|
6695
|
+
angular: {
|
|
6696
|
+
packageJson: { template: ANGULAR_PACKAGE_JSON_TEMPLATE },
|
|
6697
|
+
tsConfig: ANGULAR_TSCONFIG,
|
|
6698
|
+
entryPoint: { path: "src/main.ts", template: ANGULAR_MAIN_TEMPLATE },
|
|
6699
|
+
extraFiles: [
|
|
6700
|
+
{
|
|
6701
|
+
path: "src/app/app.component.ts",
|
|
6702
|
+
template: ANGULAR_COMPONENT_TEMPLATE
|
|
6703
|
+
},
|
|
6704
|
+
{ path: "src/index.html", template: ANGULAR_INDEX_HTML_TEMPLATE },
|
|
6705
|
+
{ path: "tsconfig.app.json", template: ANGULAR_APP_TSCONFIG_TEMPLATE },
|
|
6706
|
+
{ path: "angular.json", template: ANGULAR_JSON_TEMPLATE }
|
|
6707
|
+
]
|
|
6045
6708
|
}
|
|
6046
6709
|
};
|
|
6047
6710
|
var GENERATED_MARKER_LINE = "// @generated by @hexagen/sync";
|
|
@@ -6062,7 +6725,32 @@ export default tseslint.config(
|
|
|
6062
6725
|
},
|
|
6063
6726
|
);
|
|
6064
6727
|
`;
|
|
6065
|
-
|
|
6728
|
+
var VUE_FALLBACK_TEMPLATE = `import eslint from '@eslint/js';
|
|
6729
|
+
import tseslint from 'typescript-eslint';
|
|
6730
|
+
import pluginVue from 'eslint-plugin-vue';
|
|
6731
|
+
|
|
6732
|
+
export default tseslint.config(
|
|
6733
|
+
eslint.configs.recommended,
|
|
6734
|
+
...tseslint.configs.recommended,
|
|
6735
|
+
...pluginVue.configs['flat/recommended'],
|
|
6736
|
+
{
|
|
6737
|
+
files: ['**/*.vue'],
|
|
6738
|
+
languageOptions: {
|
|
6739
|
+
parserOptions: { parser: tseslint.parser },
|
|
6740
|
+
},
|
|
6741
|
+
},
|
|
6742
|
+
{
|
|
6743
|
+
rules: {
|
|
6744
|
+
'@typescript-eslint/no-explicit-any': 'warn',
|
|
6745
|
+
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
6746
|
+
},
|
|
6747
|
+
},
|
|
6748
|
+
{
|
|
6749
|
+
ignores: ['dist/**', 'node_modules/**'],
|
|
6750
|
+
},
|
|
6751
|
+
);
|
|
6752
|
+
`;
|
|
6753
|
+
function resolveTemplate3(manifest, moduleName, usePerContextOverride, framework) {
|
|
6066
6754
|
const contextOverride = usePerContextOverride ? manifest.bounded_contexts?.find((c) => c.name === moduleName)?.generator?.eslint : void 0;
|
|
6067
6755
|
if (contextOverride?.template !== void 0) {
|
|
6068
6756
|
return { template: contextOverride.template, source: "per-context" };
|
|
@@ -6075,6 +6763,9 @@ function resolveTemplate3(manifest, moduleName, usePerContextOverride) {
|
|
|
6075
6763
|
if (monorepoLevel?.template !== void 0) {
|
|
6076
6764
|
return { template: monorepoLevel.template, source: "workspace" };
|
|
6077
6765
|
}
|
|
6766
|
+
if (framework === "vue") {
|
|
6767
|
+
return { template: VUE_FALLBACK_TEMPLATE, source: "fallback" };
|
|
6768
|
+
}
|
|
6078
6769
|
return { template: BUILTIN_FALLBACK_TEMPLATE2, source: "fallback" };
|
|
6079
6770
|
}
|
|
6080
6771
|
function withGeneratedMarker(content) {
|
|
@@ -6091,7 +6782,8 @@ async function generateEslintConfig(moduleDir, moduleName, config, report, optio
|
|
|
6091
6782
|
const { template, source } = resolveTemplate3(
|
|
6092
6783
|
config.manifest,
|
|
6093
6784
|
moduleName,
|
|
6094
|
-
options.usePerContextOverride ?? true
|
|
6785
|
+
options.usePerContextOverride ?? true,
|
|
6786
|
+
options.framework
|
|
6095
6787
|
);
|
|
6096
6788
|
if (typeof template !== "string" || template.length === 0) {
|
|
6097
6789
|
const message = `No eslint template resolved for ${moduleName} (source: ${source}); skipping`;
|
|
@@ -6369,7 +7061,7 @@ async function generateApps(config, report) {
|
|
|
6369
7061
|
app.name,
|
|
6370
7062
|
config,
|
|
6371
7063
|
report,
|
|
6372
|
-
{ usePerContextOverride: false }
|
|
7064
|
+
{ usePerContextOverride: false, framework }
|
|
6373
7065
|
);
|
|
6374
7066
|
mergeResult(result, eslintResult);
|
|
6375
7067
|
}
|
|
@@ -7778,6 +8470,16 @@ var ManifestSchema = external_exports.object({
|
|
|
7778
8470
|
description: external_exports.string().optional(),
|
|
7779
8471
|
system: external_exports.string().optional(),
|
|
7780
8472
|
scope: external_exports.string().optional(),
|
|
8473
|
+
// Structured workspace metadata (the canonical `workspace:` block, also the
|
|
8474
|
+
// first block in the few-shot examples). `system`/`scope` above are derived
|
|
8475
|
+
// from `workspace.name`; `workspace.description` is the only carrier of the
|
|
8476
|
+
// human-readable intent. Emitted by `draftToManifest` so the generated
|
|
8477
|
+
// manifest survives `parseManifestToWizardData`'s strict parse on the
|
|
8478
|
+
// "Use this manifest" path. Optional — legacy/hand-written manifests omit it.
|
|
8479
|
+
workspace: external_exports.object({
|
|
8480
|
+
name: external_exports.string(),
|
|
8481
|
+
description: external_exports.string()
|
|
8482
|
+
}).optional(),
|
|
7781
8483
|
architecture: external_exports.string().optional(),
|
|
7782
8484
|
// The wizard records the chosen workspace template (e.g. "strict-enterprise")
|
|
7783
8485
|
// alongside `architecture`; persisted into .architecture/manifest.yaml.
|