zudojs-cli 2.0.0 → 2.1.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/README.md +69 -9
- package/dist/src/adapters/frontend/angular.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/angular.adapter.js +14 -97
- package/dist/src/adapters/frontend/astro.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/astro.adapter.js +4 -64
- package/dist/src/adapters/frontend/fallback/fallback.helper.d.ts +41 -0
- package/dist/src/adapters/frontend/fallback/fallback.helper.js +57 -0
- package/dist/src/adapters/frontend/fallback/framework/angular/angular.fallback.d.ts +18 -0
- package/dist/src/adapters/frontend/fallback/framework/angular/angular.fallback.js +107 -0
- package/dist/src/adapters/frontend/fallback/framework/angular/angularWorkspace.fallback.d.ts +23 -0
- package/dist/src/adapters/frontend/fallback/framework/angular/angularWorkspace.fallback.js +125 -0
- package/dist/src/adapters/frontend/fallback/framework/angular/index.d.ts +8 -0
- package/dist/src/adapters/frontend/fallback/framework/angular/index.js +8 -0
- package/dist/src/adapters/frontend/fallback/framework/astro.fallback.d.ts +14 -0
- package/dist/src/adapters/frontend/fallback/framework/astro.fallback.js +76 -0
- package/dist/src/adapters/frontend/fallback/framework/index.d.ts +13 -0
- package/dist/src/adapters/frontend/fallback/framework/index.js +13 -0
- package/dist/src/adapters/frontend/fallback/framework/next.fallback.d.ts +13 -0
- package/dist/src/adapters/frontend/fallback/framework/next.fallback.js +105 -0
- package/dist/src/adapters/frontend/fallback/framework/nuxt.fallback.d.ts +14 -0
- package/dist/src/adapters/frontend/fallback/framework/nuxt.fallback.js +56 -0
- package/dist/src/adapters/frontend/fallback/framework/sveltekit.fallback.d.ts +15 -0
- package/dist/src/adapters/frontend/fallback/framework/sveltekit.fallback.js +94 -0
- package/dist/src/adapters/frontend/fallback/index.d.ts +12 -0
- package/dist/src/adapters/frontend/fallback/index.js +12 -0
- package/dist/src/adapters/frontend/fallback/vite/index.d.ts +11 -0
- package/dist/src/adapters/frontend/fallback/vite/index.js +11 -0
- package/dist/src/adapters/frontend/fallback/vite/react.fallback.d.ts +13 -0
- package/dist/src/adapters/frontend/fallback/vite/react.fallback.js +77 -0
- package/dist/src/adapters/frontend/fallback/vite/svelte.fallback.d.ts +14 -0
- package/dist/src/adapters/frontend/fallback/vite/svelte.fallback.js +95 -0
- package/dist/src/adapters/frontend/fallback/vite/vanilla.fallback.d.ts +13 -0
- package/dist/src/adapters/frontend/fallback/vite/vanilla.fallback.js +71 -0
- package/dist/src/adapters/frontend/fallback/vite/vue.fallback.d.ts +14 -0
- package/dist/src/adapters/frontend/fallback/vite/vue.fallback.js +78 -0
- package/dist/src/adapters/frontend/next.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/next.adapter.js +16 -95
- package/dist/src/adapters/frontend/nuxt.adapter.d.ts +1 -2
- package/dist/src/adapters/frontend/nuxt.adapter.js +32 -43
- package/dist/src/adapters/frontend/react-native.adapter.js +1 -1
- package/dist/src/adapters/frontend/react.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/react.adapter.js +7 -89
- package/dist/src/adapters/frontend/svelte.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/svelte.adapter.js +4 -86
- package/dist/src/adapters/frontend/sveltekit.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/sveltekit.adapter.js +4 -57
- package/dist/src/adapters/frontend/vanilla.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/vanilla.adapter.js +4 -47
- package/dist/src/adapters/frontend/vue.adapter.d.ts +0 -1
- package/dist/src/adapters/frontend/vue.adapter.js +4 -76
- package/dist/src/bin/bin.menu.d.ts +22 -0
- package/dist/src/bin/bin.menu.js +40 -0
- package/dist/src/bin/bin.runner.d.ts +38 -0
- package/dist/src/bin/bin.runner.js +51 -0
- package/dist/src/bin/index.d.ts +9 -0
- package/dist/src/bin/index.js +9 -0
- package/dist/src/bin/zudojs.js +15 -4
- package/dist/src/cliApplication/cliApplication.core.d.ts +4 -2
- package/dist/src/cliApplication/cliApplication.core.js +48 -36
- package/dist/src/cliApplication/cliApplication.logger.d.ts +5 -0
- package/dist/src/cliApplication/cliApplication.logger.js +5 -3
- package/dist/src/cliApplication/invocation/index.d.ts +12 -0
- package/dist/src/cliApplication/invocation/index.js +12 -0
- package/dist/src/cliApplication/invocation/invocation.hint.d.ts +30 -0
- package/dist/src/cliApplication/invocation/invocation.hint.js +74 -0
- package/dist/src/cliApplication/invocation/invocation.locate.d.ts +34 -0
- package/dist/src/cliApplication/invocation/invocation.locate.js +53 -0
- package/dist/src/cliApplication/invocation/invocation.name.d.ts +37 -0
- package/dist/src/cliApplication/invocation/invocation.name.js +69 -0
- package/dist/src/cliApplication/invocation/invocation.sanitize.d.ts +19 -0
- package/dist/src/cliApplication/invocation/invocation.sanitize.js +32 -0
- package/dist/src/cliParser/cliParser.core.js +3 -1
- package/dist/src/cliParser/cliParser.helper.d.ts +7 -0
- package/dist/src/cliParser/cliParser.helper.js +19 -2
- package/dist/src/cliParser/cliParser.longOption.js +2 -2
- package/dist/src/commands/add.command.d.ts +7 -3
- package/dist/src/commands/add.command.js +96 -57
- package/dist/src/commands/create.command.js +29 -42
- package/dist/src/commands/doctor.command.d.ts +2 -1
- package/dist/src/commands/doctor.command.js +52 -4
- package/dist/src/commands/generate.command.js +31 -16
- package/dist/src/commands/info.command.js +11 -1
- package/dist/src/constants/index.d.ts +21 -3
- package/dist/src/constants/index.js +40 -5
- package/dist/src/constants/zudojsVersions.generated.d.ts +9 -0
- package/dist/src/constants/zudojsVersions.generated.js +48 -0
- package/dist/src/constants/zudojsVersions.helper.d.ts +21 -0
- package/dist/src/constants/zudojsVersions.helper.js +29 -0
- package/dist/src/generators/frontend/frontendGenerator.core.js +9 -10
- package/dist/src/generators/frontend/frontendPipeline.d.ts +6 -1
- package/dist/src/generators/frontend/frontendPipeline.js +9 -1
- package/dist/src/generators/fullstack/fullstackComposer.core.js +7 -1
- package/dist/src/generators/index.d.ts +1 -2
- package/dist/src/generators/index.js +1 -2
- package/dist/src/generators/infrastructure/infrastructure.generator.js +13 -5
- package/dist/src/generators/integration/integrationGenerator.core.d.ts +2 -0
- package/dist/src/generators/integration/integrationGenerator.core.js +31 -2
- package/dist/src/generators/module/module.generator.js +36 -4
- package/dist/src/generators/resource/index.d.ts +8 -0
- package/dist/src/generators/resource/index.js +8 -0
- package/dist/src/generators/resource/resource.generator.d.ts +27 -0
- package/dist/src/generators/resource/resource.generator.js +87 -0
- package/dist/src/generators/resource/resource.layout.d.ts +26 -0
- package/dist/src/generators/resource/resource.layout.js +46 -0
- package/dist/src/generators/resource/resource.plan.d.ts +27 -0
- package/dist/src/generators/resource/resource.plan.js +46 -0
- package/dist/src/generators/resource/resource.run.d.ts +25 -0
- package/dist/src/generators/resource/resource.run.js +52 -0
- package/dist/src/prompts/cancel.prompt.d.ts +5 -1
- package/dist/src/prompts/cancel.prompt.js +4 -0
- package/dist/src/prompts/menu/index.d.ts +13 -0
- package/dist/src/prompts/menu/index.js +13 -0
- package/dist/src/prompts/menu/menu.adapter.d.ts +16 -0
- package/dist/src/prompts/menu/menu.adapter.js +56 -0
- package/dist/src/prompts/menu/menu.constant.d.ts +20 -0
- package/dist/src/prompts/menu/menu.constant.js +29 -0
- package/dist/src/prompts/menu/menu.flow.d.ts +18 -0
- package/dist/src/prompts/menu/menu.flow.js +82 -0
- package/dist/src/prompts/menu/menu.select.d.ts +26 -0
- package/dist/src/prompts/menu/menu.select.js +118 -0
- package/dist/src/prompts/menu/menu.type.d.ts +66 -0
- package/dist/src/prompts/menu/menu.type.js +8 -0
- package/dist/src/recipes/apply/index.d.ts +9 -0
- package/dist/src/recipes/apply/index.js +9 -0
- package/dist/src/recipes/apply/recipeApply.app.d.ts +20 -0
- package/dist/src/recipes/apply/recipeApply.app.js +79 -0
- package/dist/src/recipes/apply/recipeApply.context.d.ts +14 -0
- package/dist/src/recipes/apply/recipeApply.context.js +76 -0
- package/dist/src/recipes/apply/recipeApply.files.d.ts +39 -0
- package/dist/src/recipes/apply/recipeApply.files.js +84 -0
- package/dist/src/recipes/apply/recipeApply.project.d.ts +11 -0
- package/dist/src/recipes/apply/recipeApply.project.js +50 -0
- package/dist/src/recipes/apply/recipeApply.report.d.ts +20 -0
- package/dist/src/recipes/apply/recipeApply.report.js +51 -0
- package/dist/src/recipes/catalog/database/database.files.d.ts +15 -0
- package/dist/src/recipes/catalog/database/database.files.js +98 -0
- package/dist/src/recipes/catalog/database/database.recipe.d.ts +9 -0
- package/dist/src/recipes/catalog/database/database.recipe.js +50 -0
- package/dist/src/recipes/catalog/database/index.d.ts +6 -0
- package/dist/src/recipes/catalog/database/index.js +6 -0
- package/dist/src/recipes/catalog/email.recipe.d.ts +9 -0
- package/dist/src/recipes/catalog/email.recipe.js +122 -0
- package/dist/src/recipes/catalog/index.d.ts +11 -0
- package/dist/src/recipes/catalog/index.js +11 -0
- package/dist/src/recipes/catalog/openapi.recipe.d.ts +8 -0
- package/dist/src/recipes/catalog/openapi.recipe.js +25 -0
- package/dist/src/recipes/catalog/platform/cache.recipe.d.ts +7 -0
- package/dist/src/recipes/catalog/platform/cache.recipe.js +55 -0
- package/dist/src/recipes/catalog/platform/index.d.ts +9 -0
- package/dist/src/recipes/catalog/platform/index.js +9 -0
- package/dist/src/recipes/catalog/platform/messaging.recipe.d.ts +7 -0
- package/dist/src/recipes/catalog/platform/messaging.recipe.js +46 -0
- package/dist/src/recipes/catalog/platform/observability.recipe.d.ts +8 -0
- package/dist/src/recipes/catalog/platform/observability.recipe.js +49 -0
- package/dist/src/recipes/catalog/platform/queue.recipe.d.ts +7 -0
- package/dist/src/recipes/catalog/platform/queue.recipe.js +61 -0
- package/dist/src/recipes/catalog/platform/scheduler.recipe.d.ts +7 -0
- package/dist/src/recipes/catalog/platform/scheduler.recipe.js +56 -0
- package/dist/src/recipes/catalog/redis.recipe.d.ts +8 -0
- package/dist/src/recipes/catalog/redis.recipe.js +79 -0
- package/dist/src/recipes/catalog/storage.recipe.d.ts +7 -0
- package/dist/src/recipes/catalog/storage.recipe.js +49 -0
- package/dist/src/recipes/catalog/websockets.recipe.d.ts +10 -0
- package/dist/src/recipes/catalog/websockets.recipe.js +84 -0
- package/dist/src/recipes/docker/docker.compose.d.ts +19 -0
- package/dist/src/recipes/docker/docker.compose.js +90 -0
- package/dist/src/recipes/docker/docker.recipe.d.ts +10 -0
- package/dist/src/recipes/docker/docker.recipe.js +51 -0
- package/dist/src/recipes/docker/docker.refresh.d.ts +13 -0
- package/dist/src/recipes/docker/docker.refresh.js +37 -0
- package/dist/src/recipes/docker/index.d.ts +7 -0
- package/dist/src/recipes/docker/index.js +7 -0
- package/dist/src/recipes/index.d.ts +8 -0
- package/dist/src/recipes/index.js +8 -0
- package/dist/src/recipes/recipe.registry.d.ts +17 -0
- package/dist/src/recipes/recipe.registry.js +46 -0
- package/dist/src/recipes/recipe.type.d.ts +93 -0
- package/dist/src/recipes/recipe.type.js +12 -0
- package/dist/src/resolvers/dependency/dependencyVersions.constant.d.ts +100 -5
- package/dist/src/resolvers/dependency/dependencyVersions.constant.js +103 -34
- package/dist/src/resolvers/dependency/index.d.ts +1 -1
- package/dist/src/resolvers/dependency/index.js +1 -1
- package/dist/src/resolvers/project.resolver.d.ts +14 -1
- package/dist/src/resolvers/project.resolver.js +11 -3
- package/dist/src/scaffolders/scaffolder.helper.js +12 -1
- package/dist/src/templates/backendApp/backendApp.core.d.ts +45 -0
- package/dist/src/templates/backendApp/backendApp.core.js +66 -0
- package/dist/src/templates/backendApp/backendApp.modules.d.ts +26 -0
- package/dist/src/templates/backendApp/backendApp.modules.js +25 -0
- package/dist/src/templates/backendApp/backendApp.project.d.ts +26 -0
- package/dist/src/templates/backendApp/backendApp.project.js +87 -0
- package/dist/src/templates/backendApp/index.d.ts +8 -0
- package/dist/src/templates/backendApp/index.js +8 -0
- package/dist/src/templates/backendApp/parts/config.template.d.ts +28 -0
- package/dist/src/templates/backendApp/parts/config.template.js +118 -0
- package/dist/src/templates/backendApp/parts/httpUtils.template.d.ts +10 -0
- package/dist/src/templates/backendApp/parts/httpUtils.template.js +103 -0
- package/dist/src/templates/backendApp/parts/index.d.ts +9 -0
- package/dist/src/templates/backendApp/parts/index.js +9 -0
- package/dist/src/templates/backendApp/parts/integrations.template.d.ts +16 -0
- package/dist/src/templates/backendApp/parts/integrations.template.js +115 -0
- package/dist/src/templates/backendApp/parts/wiring.template.d.ts +26 -0
- package/dist/src/templates/backendApp/parts/wiring.template.js +111 -0
- package/dist/src/templates/microservice/microservice.template.d.ts +4 -1
- package/dist/src/templates/microservice/microservice.template.js +74 -90
- package/dist/src/templates/modular-monolith/modularMonolith.template.js +25 -77
- package/dist/src/templates/monolith/monolith.template.d.ts +11 -26
- package/dist/src/templates/monolith/monolith.template.js +49 -146
- package/dist/src/templates/resource/index.d.ts +9 -0
- package/dist/src/templates/resource/index.js +9 -0
- package/dist/src/templates/resource/layers/index.d.ts +9 -0
- package/dist/src/templates/resource/layers/index.js +9 -0
- package/dist/src/templates/resource/layers/resourceData.template.d.ts +9 -0
- package/dist/src/templates/resource/layers/resourceData.template.js +108 -0
- package/dist/src/templates/resource/layers/resourcePrisma.template.d.ts +15 -0
- package/dist/src/templates/resource/layers/resourcePrisma.template.js +89 -0
- package/dist/src/templates/resource/layers/resourceRoutes.template.d.ts +13 -0
- package/dist/src/templates/resource/layers/resourceRoutes.template.js +128 -0
- package/dist/src/templates/resource/layers/resourceService.template.d.ts +13 -0
- package/dist/src/templates/resource/layers/resourceService.template.js +95 -0
- package/dist/src/templates/resource/resource.files.d.ts +33 -0
- package/dist/src/templates/resource/resource.files.js +99 -0
- package/dist/src/templates/resource/resource.names.d.ts +38 -0
- package/dist/src/templates/resource/resource.names.js +60 -0
- package/dist/src/templates/resource/resource.type.d.ts +19 -0
- package/dist/src/templates/resource/resource.type.js +15 -0
- package/dist/src/templates/shared/appRuntime.template.js +28 -11
- package/dist/src/templates/shared/capability.template.d.ts +13 -4
- package/dist/src/templates/shared/capability.template.js +21 -5
- package/dist/src/templates/shared/dockerfile.template.d.ts +12 -4
- package/dist/src/templates/shared/dockerfile.template.js +68 -29
- package/dist/src/templates/shared/pnpm.template.d.ts +8 -2
- package/dist/src/templates/shared/pnpm.template.js +9 -1
- package/dist/src/templates/shared/server.template.d.ts +23 -22
- package/dist/src/templates/shared/server.template.js +79 -53
- package/dist/src/types/scaffold.type.d.ts +6 -0
- package/dist/src/types/scaffold.type.js +2 -1
- package/dist/src/utils/utils.name.js +6 -0
- package/dist/src/utils/utils.writeGuard.d.ts +5 -0
- package/dist/src/utils/utils.writeGuard.js +23 -0
- package/dist/src/wiring/index.d.ts +10 -0
- package/dist/src/wiring/index.js +10 -0
- package/dist/src/wiring/wiring.dependencies.d.ts +29 -0
- package/dist/src/wiring/wiring.dependencies.js +83 -0
- package/dist/src/wiring/wiring.edits.d.ts +51 -0
- package/dist/src/wiring/wiring.edits.js +90 -0
- package/dist/src/wiring/wiring.markers.d.ts +53 -0
- package/dist/src/wiring/wiring.markers.js +87 -0
- package/package.json +20 -15
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace configuration (`angular.json`, tsconfigs) for the built-in
|
|
3
|
+
* Angular fallback.
|
|
4
|
+
*
|
|
5
|
+
* @module adapters/frontend/fallback/framework/angular/workspace
|
|
6
|
+
*/
|
|
7
|
+
import { renderJsonFile } from "../../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the Angular CLI workspace file `ng new` 22 writes. Builds, the dev
|
|
10
|
+
* server and unit tests all go through `@angular/build`; the deprecated
|
|
11
|
+
* `@angular-devkit/build-angular` and its Karma/Jasmine test runner are no
|
|
12
|
+
* longer used.
|
|
13
|
+
*
|
|
14
|
+
* @param projectName - The normalised project name used as the project key.
|
|
15
|
+
* @param packageManager - Recorded as the CLI's package manager.
|
|
16
|
+
*/
|
|
17
|
+
export function renderAngularWorkspace(projectName, packageManager) {
|
|
18
|
+
return renderJsonFile({
|
|
19
|
+
$schema: "./node_modules/@angular/cli/lib/config/schema.json",
|
|
20
|
+
version: 1,
|
|
21
|
+
cli: { packageManager },
|
|
22
|
+
newProjectRoot: "projects",
|
|
23
|
+
projects: {
|
|
24
|
+
[projectName]: {
|
|
25
|
+
projectType: "application",
|
|
26
|
+
schematics: {},
|
|
27
|
+
root: "",
|
|
28
|
+
sourceRoot: "src",
|
|
29
|
+
prefix: "app",
|
|
30
|
+
architect: {
|
|
31
|
+
build: {
|
|
32
|
+
builder: "@angular/build:application",
|
|
33
|
+
options: {
|
|
34
|
+
browser: "src/main.ts",
|
|
35
|
+
tsConfig: "tsconfig.app.json",
|
|
36
|
+
assets: [{ glob: "**/*", input: "public" }],
|
|
37
|
+
styles: ["src/styles.css"],
|
|
38
|
+
},
|
|
39
|
+
configurations: {
|
|
40
|
+
production: {
|
|
41
|
+
budgets: [
|
|
42
|
+
{
|
|
43
|
+
type: "initial",
|
|
44
|
+
maximumWarning: "500kB",
|
|
45
|
+
maximumError: "1MB",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
type: "anyComponentStyle",
|
|
49
|
+
maximumWarning: "4kB",
|
|
50
|
+
maximumError: "8kB",
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
outputHashing: "all",
|
|
54
|
+
},
|
|
55
|
+
development: {
|
|
56
|
+
optimization: false,
|
|
57
|
+
extractLicenses: false,
|
|
58
|
+
sourceMap: true,
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
defaultConfiguration: "production",
|
|
62
|
+
},
|
|
63
|
+
serve: {
|
|
64
|
+
builder: "@angular/build:dev-server",
|
|
65
|
+
configurations: {
|
|
66
|
+
production: { buildTarget: `${projectName}:build:production` },
|
|
67
|
+
development: { buildTarget: `${projectName}:build:development` },
|
|
68
|
+
},
|
|
69
|
+
defaultConfiguration: "development",
|
|
70
|
+
},
|
|
71
|
+
test: {
|
|
72
|
+
builder: "@angular/build:unit-test",
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Renders the solution-style tsconfigs `ng new` 22 writes: a base config
|
|
81
|
+
* referencing an app config and a Vitest spec config.
|
|
82
|
+
*/
|
|
83
|
+
export function renderAngularTsconfigs() {
|
|
84
|
+
return {
|
|
85
|
+
"tsconfig.json": renderJsonFile({
|
|
86
|
+
compileOnSave: false,
|
|
87
|
+
compilerOptions: {
|
|
88
|
+
noImplicitOverride: true,
|
|
89
|
+
noPropertyAccessFromIndexSignature: true,
|
|
90
|
+
noImplicitReturns: true,
|
|
91
|
+
noFallthroughCasesInSwitch: true,
|
|
92
|
+
skipLibCheck: true,
|
|
93
|
+
isolatedModules: true,
|
|
94
|
+
experimentalDecorators: true,
|
|
95
|
+
importHelpers: true,
|
|
96
|
+
strict: true,
|
|
97
|
+
target: "ES2022",
|
|
98
|
+
module: "preserve",
|
|
99
|
+
},
|
|
100
|
+
angularCompilerOptions: {
|
|
101
|
+
enableI18nLegacyMessageIdFormat: false,
|
|
102
|
+
strictInjectionParameters: true,
|
|
103
|
+
strictInputAccessModifiers: true,
|
|
104
|
+
strictTemplates: true,
|
|
105
|
+
},
|
|
106
|
+
files: [],
|
|
107
|
+
references: [
|
|
108
|
+
{ path: "./tsconfig.app.json" },
|
|
109
|
+
{ path: "./tsconfig.spec.json" },
|
|
110
|
+
],
|
|
111
|
+
}),
|
|
112
|
+
"tsconfig.app.json": renderJsonFile({
|
|
113
|
+
extends: "./tsconfig.json",
|
|
114
|
+
compilerOptions: { types: [] },
|
|
115
|
+
include: ["src/**/*.ts"],
|
|
116
|
+
exclude: ["src/**/*.spec.ts"],
|
|
117
|
+
}),
|
|
118
|
+
"tsconfig.spec.json": renderJsonFile({
|
|
119
|
+
extends: "./tsconfig.json",
|
|
120
|
+
compilerOptions: { types: ["vitest/globals"] },
|
|
121
|
+
include: ["src/**/*.d.ts", "src/**/*.spec.ts"],
|
|
122
|
+
}),
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
//# sourceMappingURL=angularWorkspace.fallback.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Angular fallback template, used when `ng new` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/angular
|
|
5
|
+
*/
|
|
6
|
+
export { renderAngularFallback } from "./angular.fallback.js";
|
|
7
|
+
export { renderAngularTsconfigs, renderAngularWorkspace, } from "./angularWorkspace.fallback.js";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Angular fallback template, used when `ng new` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/angular
|
|
5
|
+
*/
|
|
6
|
+
export { renderAngularFallback } from "./angular.fallback.js";
|
|
7
|
+
export { renderAngularTsconfigs, renderAngularWorkspace, } from "./angularWorkspace.fallback.js";
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Astro template, written when `create-astro` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/astro
|
|
5
|
+
*/
|
|
6
|
+
import type { FrontendGenerationContext } from "../../frontendAdapter.type.js";
|
|
7
|
+
import { type FallbackFileTree } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the Astro fallback project, matching `create-astro --template
|
|
10
|
+
* minimal` plus a layout. `astro check` needs `@astrojs/check` and a
|
|
11
|
+
* TypeScript 6 compiler.
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderAstroFallback(context: FrontendGenerationContext): FallbackFileTree;
|
|
14
|
+
//# sourceMappingURL=astro.fallback.d.ts.map
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Astro template, written when `create-astro` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/astro
|
|
5
|
+
*/
|
|
6
|
+
import { DEPENDENCY_VERSION_RANGES as V, TYPESCRIPT_VERSION_RANGES, } from "../../../../resolvers/dependency/dependencyVersions.constant.js";
|
|
7
|
+
import { renderJsonFile } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the Astro fallback project, matching `create-astro --template
|
|
10
|
+
* minimal` plus a layout. `astro check` needs `@astrojs/check` and a
|
|
11
|
+
* TypeScript 6 compiler.
|
|
12
|
+
*/
|
|
13
|
+
export function renderAstroFallback(context) {
|
|
14
|
+
return {
|
|
15
|
+
"package.json": renderJsonFile({
|
|
16
|
+
name: context.project.name,
|
|
17
|
+
version: "0.1.0",
|
|
18
|
+
private: true,
|
|
19
|
+
type: "module",
|
|
20
|
+
scripts: {
|
|
21
|
+
dev: "astro dev",
|
|
22
|
+
build: "astro build",
|
|
23
|
+
preview: "astro preview",
|
|
24
|
+
check: "astro check",
|
|
25
|
+
astro: "astro",
|
|
26
|
+
},
|
|
27
|
+
dependencies: {
|
|
28
|
+
astro: V.astro,
|
|
29
|
+
},
|
|
30
|
+
devDependencies: {
|
|
31
|
+
"@astrojs/check": V["@astrojs/check"],
|
|
32
|
+
typescript: TYPESCRIPT_VERSION_RANGES.frontend,
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
35
|
+
"astro.config.mjs": `// @ts-check
|
|
36
|
+
import { defineConfig } from "astro/config";
|
|
37
|
+
|
|
38
|
+
export default defineConfig({});
|
|
39
|
+
`,
|
|
40
|
+
"tsconfig.json": renderJsonFile({
|
|
41
|
+
extends: "astro/tsconfigs/strict",
|
|
42
|
+
include: [".astro/types.d.ts", "**/*"],
|
|
43
|
+
exclude: ["dist"],
|
|
44
|
+
}),
|
|
45
|
+
"src/layouts/Layout.astro": `---
|
|
46
|
+
interface Props {
|
|
47
|
+
title: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
const { title } = Astro.props;
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
<!doctype html>
|
|
54
|
+
<html lang="en">
|
|
55
|
+
<head>
|
|
56
|
+
<meta charset="utf-8" />
|
|
57
|
+
<meta name="viewport" content="width=device-width" />
|
|
58
|
+
<meta name="generator" content={Astro.generator} />
|
|
59
|
+
<title>{title}</title>
|
|
60
|
+
</head>
|
|
61
|
+
<body>
|
|
62
|
+
<slot />
|
|
63
|
+
</body>
|
|
64
|
+
</html>
|
|
65
|
+
`,
|
|
66
|
+
"src/pages/index.astro": `---
|
|
67
|
+
import Layout from "../layouts/Layout.astro";
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
<Layout title=${JSON.stringify(context.project.name)}>
|
|
71
|
+
<h1>Hello from Zudojs</h1>
|
|
72
|
+
</Layout>
|
|
73
|
+
`,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
//# sourceMappingURL=astro.fallback.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in fallback templates for the frontends that ship their own
|
|
3
|
+
* toolchain (Next.js, Nuxt, SvelteKit, Astro, Angular), used when the
|
|
4
|
+
* official scaffolder cannot run.
|
|
5
|
+
*
|
|
6
|
+
* @module adapters/frontend/fallback/framework
|
|
7
|
+
*/
|
|
8
|
+
export { renderAngularFallback } from "./angular/index.js";
|
|
9
|
+
export { renderAstroFallback } from "./astro.fallback.js";
|
|
10
|
+
export { renderNextFallback } from "./next.fallback.js";
|
|
11
|
+
export { renderNuxtFallback } from "./nuxt.fallback.js";
|
|
12
|
+
export { renderSvelteKitFallback } from "./sveltekit.fallback.js";
|
|
13
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in fallback templates for the frontends that ship their own
|
|
3
|
+
* toolchain (Next.js, Nuxt, SvelteKit, Astro, Angular), used when the
|
|
4
|
+
* official scaffolder cannot run.
|
|
5
|
+
*
|
|
6
|
+
* @module adapters/frontend/fallback/framework
|
|
7
|
+
*/
|
|
8
|
+
export { renderAngularFallback } from "./angular/index.js";
|
|
9
|
+
export { renderAstroFallback } from "./astro.fallback.js";
|
|
10
|
+
export { renderNextFallback } from "./next.fallback.js";
|
|
11
|
+
export { renderNuxtFallback } from "./nuxt.fallback.js";
|
|
12
|
+
export { renderSvelteKitFallback } from "./sveltekit.fallback.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Next.js template, written when `create-next-app` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/next
|
|
5
|
+
*/
|
|
6
|
+
import type { FrontendGenerationContext } from "../../frontendAdapter.type.js";
|
|
7
|
+
import { type FallbackFileTree } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the Next.js 16 App Router fallback project under `src/`, matching
|
|
10
|
+
* `create-next-app --typescript --app --src-dir`.
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderNextFallback(context: FrontendGenerationContext): FallbackFileTree;
|
|
13
|
+
//# sourceMappingURL=next.fallback.d.ts.map
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Next.js template, written when `create-next-app` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/next
|
|
5
|
+
*/
|
|
6
|
+
import { DEPENDENCY_VERSION_RANGES as V, TYPESCRIPT_VERSION_RANGES, } from "../../../../resolvers/dependency/dependencyVersions.constant.js";
|
|
7
|
+
import { renderJsonFile } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the Next.js 16 App Router fallback project under `src/`, matching
|
|
10
|
+
* `create-next-app --typescript --app --src-dir`.
|
|
11
|
+
*/
|
|
12
|
+
export function renderNextFallback(context) {
|
|
13
|
+
return {
|
|
14
|
+
"package.json": renderJsonFile({
|
|
15
|
+
name: context.project.name,
|
|
16
|
+
version: "0.1.0",
|
|
17
|
+
private: true,
|
|
18
|
+
scripts: {
|
|
19
|
+
dev: "next dev",
|
|
20
|
+
build: "next build",
|
|
21
|
+
start: "next start",
|
|
22
|
+
},
|
|
23
|
+
dependencies: {
|
|
24
|
+
next: V.next,
|
|
25
|
+
react: V.react,
|
|
26
|
+
"react-dom": V["react-dom"],
|
|
27
|
+
},
|
|
28
|
+
devDependencies: {
|
|
29
|
+
typescript: TYPESCRIPT_VERSION_RANGES.frontend,
|
|
30
|
+
"@types/node": V["@types/node"],
|
|
31
|
+
"@types/react": V["@types/react"],
|
|
32
|
+
"@types/react-dom": V["@types/react-dom"],
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
35
|
+
"next.config.ts": `import type { NextConfig } from "next";
|
|
36
|
+
|
|
37
|
+
const nextConfig: NextConfig = {
|
|
38
|
+
reactStrictMode: true,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default nextConfig;
|
|
42
|
+
`,
|
|
43
|
+
"tsconfig.json": renderJsonFile({
|
|
44
|
+
compilerOptions: {
|
|
45
|
+
target: "ES2017",
|
|
46
|
+
lib: ["dom", "dom.iterable", "esnext"],
|
|
47
|
+
allowJs: true,
|
|
48
|
+
skipLibCheck: true,
|
|
49
|
+
strict: true,
|
|
50
|
+
noEmit: true,
|
|
51
|
+
esModuleInterop: true,
|
|
52
|
+
module: "esnext",
|
|
53
|
+
moduleResolution: "bundler",
|
|
54
|
+
resolveJsonModule: true,
|
|
55
|
+
isolatedModules: true,
|
|
56
|
+
jsx: "react-jsx",
|
|
57
|
+
incremental: true,
|
|
58
|
+
plugins: [{ name: "next" }],
|
|
59
|
+
paths: { "@/*": ["./src/*"] },
|
|
60
|
+
},
|
|
61
|
+
include: [
|
|
62
|
+
"next-env.d.ts",
|
|
63
|
+
"**/*.ts",
|
|
64
|
+
"**/*.tsx",
|
|
65
|
+
".next/types/**/*.ts",
|
|
66
|
+
".next/dev/types/**/*.ts",
|
|
67
|
+
"**/*.mts",
|
|
68
|
+
],
|
|
69
|
+
exclude: ["node_modules"],
|
|
70
|
+
}),
|
|
71
|
+
"src/app/layout.tsx": `import type { Metadata } from "next";
|
|
72
|
+
import type { ReactNode } from "react";
|
|
73
|
+
import "./globals.css";
|
|
74
|
+
|
|
75
|
+
export const metadata: Metadata = {
|
|
76
|
+
title: ${JSON.stringify(context.project.name)},
|
|
77
|
+
description: "Generated by Zudojs",
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
export default function RootLayout({
|
|
81
|
+
children,
|
|
82
|
+
}: Readonly<{ children: ReactNode }>) {
|
|
83
|
+
return (
|
|
84
|
+
<html lang="en">
|
|
85
|
+
<body>{children}</body>
|
|
86
|
+
</html>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
`,
|
|
90
|
+
"src/app/page.tsx": `export default function Home() {
|
|
91
|
+
return (
|
|
92
|
+
<main>
|
|
93
|
+
<h1>Hello from Zudojs</h1>
|
|
94
|
+
</main>
|
|
95
|
+
);
|
|
96
|
+
}
|
|
97
|
+
`,
|
|
98
|
+
"src/app/globals.css": `body {
|
|
99
|
+
margin: 0;
|
|
100
|
+
font-family: system-ui, -apple-system, sans-serif;
|
|
101
|
+
}
|
|
102
|
+
`,
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
//# sourceMappingURL=next.fallback.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Nuxt template, written when `nuxi init` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/nuxt
|
|
5
|
+
*/
|
|
6
|
+
import type { FrontendGenerationContext } from "../../frontendAdapter.type.js";
|
|
7
|
+
import { type FallbackFileTree } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the Nuxt 4 fallback project, matching `nuxi init --template
|
|
10
|
+
* minimal`: application code lives in `app/`, and the TypeScript project
|
|
11
|
+
* references point at the configs `nuxt prepare` generates in `.nuxt/`.
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderNuxtFallback(context: FrontendGenerationContext): FallbackFileTree;
|
|
14
|
+
//# sourceMappingURL=nuxt.fallback.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in Nuxt template, written when `nuxi init` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/nuxt
|
|
5
|
+
*/
|
|
6
|
+
import { DEPENDENCY_VERSION_RANGES as V } from "../../../../resolvers/dependency/dependencyVersions.constant.js";
|
|
7
|
+
import { renderJsonFile } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the Nuxt 4 fallback project, matching `nuxi init --template
|
|
10
|
+
* minimal`: application code lives in `app/`, and the TypeScript project
|
|
11
|
+
* references point at the configs `nuxt prepare` generates in `.nuxt/`.
|
|
12
|
+
*/
|
|
13
|
+
export function renderNuxtFallback(context) {
|
|
14
|
+
return {
|
|
15
|
+
"package.json": renderJsonFile({
|
|
16
|
+
name: context.project.name,
|
|
17
|
+
version: "0.1.0",
|
|
18
|
+
private: true,
|
|
19
|
+
type: "module",
|
|
20
|
+
scripts: {
|
|
21
|
+
build: "nuxt build",
|
|
22
|
+
dev: "nuxt dev",
|
|
23
|
+
generate: "nuxt generate",
|
|
24
|
+
preview: "nuxt preview",
|
|
25
|
+
postinstall: "nuxt prepare",
|
|
26
|
+
},
|
|
27
|
+
dependencies: {
|
|
28
|
+
nuxt: V.nuxt,
|
|
29
|
+
vue: V.vue,
|
|
30
|
+
"vue-router": V["vue-router"],
|
|
31
|
+
},
|
|
32
|
+
}),
|
|
33
|
+
"nuxt.config.ts": `// https://nuxt.com/docs/api/configuration/nuxt-config
|
|
34
|
+
export default defineNuxtConfig({
|
|
35
|
+
compatibilityDate: "2025-07-15",
|
|
36
|
+
devtools: { enabled: true },
|
|
37
|
+
});
|
|
38
|
+
`,
|
|
39
|
+
"tsconfig.json": renderJsonFile({
|
|
40
|
+
files: [],
|
|
41
|
+
references: [
|
|
42
|
+
{ path: "./.nuxt/tsconfig.app.json" },
|
|
43
|
+
{ path: "./.nuxt/tsconfig.server.json" },
|
|
44
|
+
{ path: "./.nuxt/tsconfig.shared.json" },
|
|
45
|
+
{ path: "./.nuxt/tsconfig.node.json" },
|
|
46
|
+
],
|
|
47
|
+
}),
|
|
48
|
+
"app/app.vue": `<template>
|
|
49
|
+
<div>
|
|
50
|
+
<h1>Hello from Zudojs</h1>
|
|
51
|
+
</div>
|
|
52
|
+
</template>
|
|
53
|
+
`,
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
//# sourceMappingURL=nuxt.fallback.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in SvelteKit template, written when `sv create` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/sveltekit
|
|
5
|
+
*/
|
|
6
|
+
import type { FrontendGenerationContext } from "../../frontendAdapter.type.js";
|
|
7
|
+
import { type FallbackFileTree } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the SvelteKit fallback project, matching `sv create --template
|
|
10
|
+
* minimal --types ts`. The previous fallback had an `app.html` without the
|
|
11
|
+
* `%sveltekit.head%`/`%sveltekit.body%` placeholders and imported
|
|
12
|
+
* `@sveltejs/adapter-auto` without depending on it, so it could not build.
|
|
13
|
+
*/
|
|
14
|
+
export declare function renderSvelteKitFallback(context: FrontendGenerationContext): FallbackFileTree;
|
|
15
|
+
//# sourceMappingURL=sveltekit.fallback.d.ts.map
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in SvelteKit template, written when `sv create` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/framework/sveltekit
|
|
5
|
+
*/
|
|
6
|
+
import { DEPENDENCY_VERSION_RANGES as V, TYPESCRIPT_VERSION_RANGES, } from "../../../../resolvers/dependency/dependencyVersions.constant.js";
|
|
7
|
+
import { renderJsonFile } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the SvelteKit fallback project, matching `sv create --template
|
|
10
|
+
* minimal --types ts`. The previous fallback had an `app.html` without the
|
|
11
|
+
* `%sveltekit.head%`/`%sveltekit.body%` placeholders and imported
|
|
12
|
+
* `@sveltejs/adapter-auto` without depending on it, so it could not build.
|
|
13
|
+
*/
|
|
14
|
+
export function renderSvelteKitFallback(context) {
|
|
15
|
+
return {
|
|
16
|
+
"package.json": renderJsonFile({
|
|
17
|
+
name: context.project.name,
|
|
18
|
+
version: "0.1.0",
|
|
19
|
+
private: true,
|
|
20
|
+
type: "module",
|
|
21
|
+
scripts: {
|
|
22
|
+
dev: "vite dev",
|
|
23
|
+
build: "vite build",
|
|
24
|
+
preview: "vite preview",
|
|
25
|
+
prepare: "svelte-kit sync || echo ''",
|
|
26
|
+
check: "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
|
|
27
|
+
},
|
|
28
|
+
devDependencies: {
|
|
29
|
+
"@sveltejs/adapter-auto": V["@sveltejs/adapter-auto"],
|
|
30
|
+
"@sveltejs/kit": V["@sveltejs/kit"],
|
|
31
|
+
"@sveltejs/vite-plugin-svelte": V["@sveltejs/vite-plugin-svelte"],
|
|
32
|
+
svelte: V.svelte,
|
|
33
|
+
"svelte-check": V["svelte-check"],
|
|
34
|
+
typescript: TYPESCRIPT_VERSION_RANGES.frontend,
|
|
35
|
+
vite: V.vite,
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
"vite.config.ts": `import adapter from "@sveltejs/adapter-auto";
|
|
39
|
+
import { sveltekit } from "@sveltejs/kit/vite";
|
|
40
|
+
import { defineConfig } from "vite";
|
|
41
|
+
|
|
42
|
+
export default defineConfig({
|
|
43
|
+
plugins: [sveltekit({ adapter: adapter() })],
|
|
44
|
+
});
|
|
45
|
+
`,
|
|
46
|
+
"tsconfig.json": renderJsonFile({
|
|
47
|
+
extends: "./.svelte-kit/tsconfig.json",
|
|
48
|
+
compilerOptions: {
|
|
49
|
+
rewriteRelativeImportExtensions: true,
|
|
50
|
+
allowJs: true,
|
|
51
|
+
checkJs: true,
|
|
52
|
+
esModuleInterop: true,
|
|
53
|
+
forceConsistentCasingInFileNames: true,
|
|
54
|
+
resolveJsonModule: true,
|
|
55
|
+
skipLibCheck: true,
|
|
56
|
+
sourceMap: true,
|
|
57
|
+
strict: true,
|
|
58
|
+
moduleResolution: "bundler",
|
|
59
|
+
},
|
|
60
|
+
}),
|
|
61
|
+
"src/app.html": `<!doctype html>
|
|
62
|
+
<html lang="en">
|
|
63
|
+
<head>
|
|
64
|
+
<meta charset="utf-8" />
|
|
65
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
66
|
+
%sveltekit.head%
|
|
67
|
+
</head>
|
|
68
|
+
<body data-sveltekit-preload-data="hover">
|
|
69
|
+
<div style="display: contents">%sveltekit.body%</div>
|
|
70
|
+
</body>
|
|
71
|
+
</html>
|
|
72
|
+
`,
|
|
73
|
+
"src/app.d.ts": `// See https://svelte.dev/docs/kit/types#app.d.ts
|
|
74
|
+
declare global {
|
|
75
|
+
namespace App {}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export {};
|
|
79
|
+
`,
|
|
80
|
+
"src/routes/+layout.svelte": `<script lang="ts">
|
|
81
|
+
let { children } = $props();
|
|
82
|
+
</script>
|
|
83
|
+
|
|
84
|
+
<svelte:head>
|
|
85
|
+
<title>${context.project.name}</title>
|
|
86
|
+
</svelte:head>
|
|
87
|
+
|
|
88
|
+
{@render children()}
|
|
89
|
+
`,
|
|
90
|
+
"src/routes/+page.svelte": `<h1>Hello from Zudojs</h1>
|
|
91
|
+
`,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=sveltekit.fallback.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in fallback templates the frontend adapters write when the
|
|
3
|
+
* framework's official scaffolder cannot run (offline, registry errors,
|
|
4
|
+
* timeouts). Every dependency range they write comes from
|
|
5
|
+
* `resolvers/dependency/dependencyVersions.constant.ts`.
|
|
6
|
+
*
|
|
7
|
+
* @module adapters/frontend/fallback
|
|
8
|
+
*/
|
|
9
|
+
export { renderJsonFile, renderViteIndexHtml, versionFromRange, VITE_TSCONFIG_COMPILER_OPTIONS, type FallbackFileTree, } from "./fallback.helper.js";
|
|
10
|
+
export { renderAngularFallback, renderAstroFallback, renderNextFallback, renderNuxtFallback, renderSvelteKitFallback, } from "./framework/index.js";
|
|
11
|
+
export { renderReactFallback, renderSvelteFallback, renderVanillaFallback, renderVueFallback, } from "./vite/index.js";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in fallback templates the frontend adapters write when the
|
|
3
|
+
* framework's official scaffolder cannot run (offline, registry errors,
|
|
4
|
+
* timeouts). Every dependency range they write comes from
|
|
5
|
+
* `resolvers/dependency/dependencyVersions.constant.ts`.
|
|
6
|
+
*
|
|
7
|
+
* @module adapters/frontend/fallback
|
|
8
|
+
*/
|
|
9
|
+
export { renderJsonFile, renderViteIndexHtml, versionFromRange, VITE_TSCONFIG_COMPILER_OPTIONS, } from "./fallback.helper.js";
|
|
10
|
+
export { renderAngularFallback, renderAstroFallback, renderNextFallback, renderNuxtFallback, renderSvelteKitFallback, } from "./framework/index.js";
|
|
11
|
+
export { renderReactFallback, renderSvelteFallback, renderVanillaFallback, renderVueFallback, } from "./vite/index.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in fallback templates for the Vite-based frontends (React, Vue,
|
|
3
|
+
* Svelte, vanilla), used when `create-vite` cannot run.
|
|
4
|
+
*
|
|
5
|
+
* @module adapters/frontend/fallback/vite
|
|
6
|
+
*/
|
|
7
|
+
export { renderReactFallback } from "./react.fallback.js";
|
|
8
|
+
export { renderSvelteFallback } from "./svelte.fallback.js";
|
|
9
|
+
export { renderVanillaFallback } from "./vanilla.fallback.js";
|
|
10
|
+
export { renderVueFallback } from "./vue.fallback.js";
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in fallback templates for the Vite-based frontends (React, Vue,
|
|
3
|
+
* Svelte, vanilla), used when `create-vite` cannot run.
|
|
4
|
+
*
|
|
5
|
+
* @module adapters/frontend/fallback/vite
|
|
6
|
+
*/
|
|
7
|
+
export { renderReactFallback } from "./react.fallback.js";
|
|
8
|
+
export { renderSvelteFallback } from "./svelte.fallback.js";
|
|
9
|
+
export { renderVanillaFallback } from "./vanilla.fallback.js";
|
|
10
|
+
export { renderVueFallback } from "./vue.fallback.js";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Built-in React + Vite template, written when `create-vite` cannot run.
|
|
3
|
+
*
|
|
4
|
+
* @module adapters/frontend/fallback/vite/react
|
|
5
|
+
*/
|
|
6
|
+
import type { FrontendGenerationContext } from "../../frontendAdapter.type.js";
|
|
7
|
+
import { type FallbackFileTree } from "../fallback.helper.js";
|
|
8
|
+
/**
|
|
9
|
+
* Renders the React fallback project, mirroring `create-vite`'s `react-ts`
|
|
10
|
+
* (or `react`) template.
|
|
11
|
+
*/
|
|
12
|
+
export declare function renderReactFallback(context: FrontendGenerationContext): FallbackFileTree;
|
|
13
|
+
//# sourceMappingURL=react.fallback.d.ts.map
|