create-origo-app 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +315 -0
- package/dist/base/backend/express/.env +3 -0
- package/dist/base/backend/express/javascript/src/app.js +25 -0
- package/dist/base/backend/express/javascript/src/config/env.js +10 -0
- package/dist/base/backend/express/javascript/src/routes/index.js +18 -0
- package/dist/base/backend/express/javascript/src/server.js +28 -0
- package/dist/base/backend/express/manifest.js +61 -0
- package/dist/base/backend/express/typescript/src/app.ts +25 -0
- package/dist/base/backend/express/typescript/src/config/env.ts +10 -0
- package/dist/base/backend/express/typescript/src/routes/index.ts +18 -0
- package/dist/base/backend/express/typescript/src/server.ts +28 -0
- package/dist/base/backend/express/typescript/tsconfig.server.json +16 -0
- package/dist/base/backend/fastify/javascript/src/app.js +16 -0
- package/dist/base/backend/fastify/javascript/src/routes/index.js +18 -0
- package/dist/base/backend/fastify/javascript/src/server.js +27 -0
- package/dist/base/backend/fastify/manifest.js +61 -0
- package/dist/base/backend/fastify/typescript/src/app.ts +16 -0
- package/dist/base/backend/fastify/typescript/src/routes/index.ts +20 -0
- package/dist/base/backend/fastify/typescript/src/server.ts +27 -0
- package/dist/base/frontend/react/app/App.css +308 -0
- package/dist/base/frontend/react/app/App.tsx +59 -0
- package/dist/base/frontend/react/app/assets/react.svg +1 -0
- package/dist/base/frontend/react/app/assets/vite.svg +1 -0
- package/dist/base/frontend/react/app/components/Counter.tsx +16 -0
- package/dist/base/frontend/react/app/components/OrigoLogo.tsx +32 -0
- package/dist/base/frontend/react/app/components/PingButton.tsx +45 -0
- package/dist/base/frontend/react/app/index.css +27 -0
- package/dist/base/frontend/react/app/main.tsx +17 -0
- package/dist/base/frontend/react/app/vite-env.d.ts +2 -0
- package/dist/base/frontend/react/html/index.html +23 -0
- package/dist/base/frontend/react/manifest.js +180 -0
- package/dist/base/frontend/react/styles/bootstrap/App.tsx +61 -0
- package/dist/base/frontend/react/styles/bootstrap/Counter.tsx +16 -0
- package/dist/base/frontend/react/styles/bootstrap/PingButton.tsx +52 -0
- package/dist/base/frontend/react/styles/bootstrap/index.css +174 -0
- package/dist/base/frontend/react/styles/sass/App.scss +231 -0
- package/dist/base/frontend/react/styles/sass/App.tsx +59 -0
- package/dist/base/frontend/react/styles/sass/PingButton.scss +33 -0
- package/dist/base/frontend/react/styles/sass/PingButton.tsx +47 -0
- package/dist/base/frontend/react/styles/sass/index.scss +30 -0
- package/dist/base/frontend/react/styles/sass/main.tsx +17 -0
- package/dist/base/frontend/react/styles/tailwind/App.tsx +66 -0
- package/dist/base/frontend/react/styles/tailwind/Counter.tsx +16 -0
- package/dist/base/frontend/react/styles/tailwind/PingButton.tsx +52 -0
- package/dist/base/frontend/shared/favicon.ico +0 -0
- package/dist/base/frontend/shared/origo-logo.svg +6 -0
- package/dist/commands/create.js +195 -10
- package/dist/commands/index.js +6 -1
- package/dist/composer/ast/arrays.js +12 -0
- package/dist/composer/ast/config.js +13 -0
- package/dist/composer/ast/context.js +73 -0
- package/dist/composer/ast/expressions.js +6 -0
- package/dist/composer/ast/imports.js +33 -0
- package/dist/composer/ast/index.js +6 -0
- package/dist/composer/ast/objects.js +32 -0
- package/dist/config/architectures.js +5 -0
- package/dist/config/backend.js +9 -0
- package/dist/config/frontend.js +17 -0
- package/dist/config/fullstack.js +30 -0
- package/dist/core/copy-template.js +57 -0
- package/dist/core/dependency-resolver.js +43 -0
- package/dist/core/install-dependencies.js +10 -0
- package/dist/core/path-safety.js +22 -0
- package/dist/core/project-target.js +40 -0
- package/dist/core/version-resolver.js +137 -0
- package/dist/features/frontend/styling/tailwind/dependencies.js +10 -0
- package/dist/features/frontend/styling/tailwind/feature.js +11 -0
- package/dist/features/frontend/styling/tailwind/generator.js +13 -0
- package/dist/features/frontend/styling/tailwind/index.js +3 -0
- package/dist/features/frontend/styling/tailwind/integrations/index.js +11 -0
- package/dist/features/frontend/styling/tailwind/integrations/rsbuild.js +3 -0
- package/dist/features/frontend/styling/tailwind/integrations/vite.js +17 -0
- package/dist/features/frontend/styling/tailwind/integrations/webpack.js +3 -0
- package/dist/features/frontend/styling/tailwind/templates/tailwind-css.js +1 -0
- package/dist/features/frontend/styling/tailwind/templates/theme.js +39 -0
- package/dist/features/frontend/styling/tailwind/versions/v3.js +19 -0
- package/dist/features/frontend/styling/tailwind/versions/v4.js +11 -0
- package/dist/features/frontend/ui/shadcn/dependencies.js +8 -0
- package/dist/features/frontend/ui/shadcn/feature.js +11 -0
- package/dist/features/frontend/ui/shadcn/generator.js +13 -0
- package/dist/features/frontend/ui/shadcn/index.js +3 -0
- package/dist/features/frontend/ui/shadcn/patches/tsconfig.js +22 -0
- package/dist/features/frontend/ui/shadcn/patches/vite-config.js +35 -0
- package/dist/features/frontend/ui/shadcn/templates/components-json.js +23 -0
- package/dist/features/frontend/ui/shadcn/templates/lib-utils.js +14 -0
- package/dist/features/index.js +29 -0
- package/dist/generators/backend/base-loader.js +33 -0
- package/dist/generators/backend/context.js +54 -0
- package/dist/generators/backend/generate.js +72 -0
- package/dist/generators/backend/index.js +4 -0
- package/dist/generators/backend/resolvers/database.js +1277 -0
- package/dist/generators/frontend/base-loader.js +23 -0
- package/dist/generators/frontend/context.js +118 -0
- package/dist/generators/frontend/css.js +34 -0
- package/dist/generators/frontend/file-writer.js +37 -0
- package/dist/generators/frontend/generate.js +46 -0
- package/dist/generators/frontend/index.js +4 -0
- package/dist/generators/frontend/resolvers/base.js +24 -0
- package/dist/generators/frontend/resolvers/bundler.js +13 -0
- package/dist/generators/frontend/resolvers/index.js +5 -0
- package/dist/generators/frontend/resolvers/language.js +55 -0
- package/dist/generators/frontend/resolvers/profile.js +41 -0
- package/dist/generators/frontend/resolvers/typescript.js +29 -0
- package/dist/generators/frontend/template.js +3 -0
- package/dist/generators/frontend/validate.js +31 -0
- package/dist/generators/package-json/build-package-json.js +33 -0
- package/dist/generators/package-json/index.js +2 -0
- package/dist/generators/package-json/types.js +1 -0
- package/dist/generators/package-json/write-package-json.js +9 -0
- package/dist/prompts/architecture.js +5 -0
- package/dist/prompts/compatibility.js +18 -0
- package/dist/prompts/custom-fullstack.js +10 -0
- package/dist/prompts/custom-stack.js +12 -0
- package/dist/prompts/database-package.js +15 -0
- package/dist/prompts/project-name.js +25 -0
- package/dist/prompts/tech-stack.js +54 -0
- package/dist/registry/bundlers.js +4 -0
- package/dist/registry/databases.js +36 -0
- package/dist/registry/features/development.js +40 -0
- package/dist/registry/features/quality.js +33 -0
- package/dist/registry/features/testing.js +36 -0
- package/dist/registry/features/ui.js +37 -0
- package/dist/registry/frameworks.js +9 -0
- package/dist/registry/packages.js +231 -0
- package/dist/registry/routing.js +12 -0
- package/dist/registry/runtimes.js +7 -0
- package/dist/registry/styling.js +7 -0
- package/dist/types/project.js +1 -0
- package/dist/ui/banner.js +0 -1
- package/dist/ui/checkbox.js +51 -0
- package/package.json +36 -4
- package/dist/cli.js +0 -22
- package/dist/ui/multiselect.js +0 -22
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export function configureShadcnTsConfig(context) {
|
|
2
|
+
const file = context.getFile("tsconfig.json");
|
|
3
|
+
if (!file || typeof file.content !== "string") {
|
|
4
|
+
return;
|
|
5
|
+
}
|
|
6
|
+
let config;
|
|
7
|
+
try {
|
|
8
|
+
config = JSON.parse(file.content);
|
|
9
|
+
}
|
|
10
|
+
catch (error) {
|
|
11
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
12
|
+
throw new Error(`Invalid tsconfig.json: ${reason}`);
|
|
13
|
+
}
|
|
14
|
+
const compilerOptions = config.compilerOptions ?? {};
|
|
15
|
+
delete compilerOptions.baseUrl;
|
|
16
|
+
compilerOptions.paths = {
|
|
17
|
+
...(compilerOptions.paths ?? {}),
|
|
18
|
+
"@/*": ["./src/*"],
|
|
19
|
+
};
|
|
20
|
+
config.compilerOptions = compilerOptions;
|
|
21
|
+
context.addJsonFile("tsconfig.json", config);
|
|
22
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Node } from "ts-morph";
|
|
2
|
+
import { addNamedImport, addObjectProperty, getDefineConfigObject, upsertObjectProperty, } from "../../../../../composer/ast/index.js";
|
|
3
|
+
const ALIAS_VALUE = 'fileURLToPath(new URL("./src", import.meta.url))';
|
|
4
|
+
export function configureShadcnAlias(context, profile) {
|
|
5
|
+
const source = context.getSourceFile(`vite.config.${profile.configExtension}`);
|
|
6
|
+
const object = getDefineConfigObject(source);
|
|
7
|
+
addNamedImport(source, "node:url", "fileURLToPath");
|
|
8
|
+
const resolve = object.getProperty("resolve");
|
|
9
|
+
if (!resolve) {
|
|
10
|
+
addObjectProperty(object, "resolve", `{ alias: { "@": ${ALIAS_VALUE} } }`);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
if (!Node.isPropertyAssignment(resolve)) {
|
|
14
|
+
throw new Error("resolve property must be an object");
|
|
15
|
+
}
|
|
16
|
+
const resolveObject = resolve.getInitializer();
|
|
17
|
+
if (!resolveObject || !Node.isObjectLiteralExpression(resolveObject)) {
|
|
18
|
+
resolve.setInitializer(`{ alias: { "@": ${ALIAS_VALUE} } }`);
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
const alias = resolveObject.getProperty("alias");
|
|
22
|
+
if (!alias) {
|
|
23
|
+
addObjectProperty(resolveObject, "alias", `{ "@": ${ALIAS_VALUE} }`);
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
if (!Node.isPropertyAssignment(alias)) {
|
|
27
|
+
throw new Error("resolve.alias property must be an object");
|
|
28
|
+
}
|
|
29
|
+
const aliasObject = alias.getInitializer();
|
|
30
|
+
if (!aliasObject || !Node.isObjectLiteralExpression(aliasObject)) {
|
|
31
|
+
alias.setInitializer(`{ "@": ${ALIAS_VALUE} }`);
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
upsertObjectProperty(aliasObject, '"@"', ALIAS_VALUE);
|
|
35
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export function createComponentsJson(isTypeScript) {
|
|
2
|
+
const config = {
|
|
3
|
+
$schema: "https://ui.shadcn.com/schema.json",
|
|
4
|
+
style: "new-york",
|
|
5
|
+
rsc: false,
|
|
6
|
+
tsx: isTypeScript,
|
|
7
|
+
tailwind: {
|
|
8
|
+
config: "",
|
|
9
|
+
css: "src/index.css",
|
|
10
|
+
baseColor: "slate",
|
|
11
|
+
cssVariables: true,
|
|
12
|
+
prefix: "",
|
|
13
|
+
},
|
|
14
|
+
aliases: {
|
|
15
|
+
components: "@/components",
|
|
16
|
+
utils: "@/lib/utils",
|
|
17
|
+
ui: "@/components/ui",
|
|
18
|
+
lib: "@/lib",
|
|
19
|
+
hooks: "@/hooks",
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
return `${JSON.stringify(config, null, 2)}\n`;
|
|
23
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export const shadcnUtilsTypeScript = `import { clsx, type ClassValue } from "clsx";
|
|
2
|
+
import { twMerge } from "tailwind-merge";
|
|
3
|
+
|
|
4
|
+
export function cn(...inputs: ClassValue[]) {
|
|
5
|
+
return twMerge(clsx(inputs));
|
|
6
|
+
}
|
|
7
|
+
`;
|
|
8
|
+
export const shadcnUtilsJavaScript = `import { clsx } from "clsx";
|
|
9
|
+
import { twMerge } from "tailwind-merge";
|
|
10
|
+
|
|
11
|
+
export function cn(...inputs) {
|
|
12
|
+
return twMerge(clsx(inputs));
|
|
13
|
+
}
|
|
14
|
+
`;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { tailwindFeature } from "./frontend/styling/tailwind/index.js";
|
|
2
|
+
import { shadcnFeature } from "./frontend/ui/shadcn/index.js";
|
|
3
|
+
export const features = [
|
|
4
|
+
tailwindFeature,
|
|
5
|
+
shadcnFeature,
|
|
6
|
+
];
|
|
7
|
+
export function isFeatureSelected(feature, context) {
|
|
8
|
+
const required = feature.requires.every((technology) => context.has(technology));
|
|
9
|
+
const requiredAny = !feature.requiresAny?.length ||
|
|
10
|
+
feature.requiresAny.some((technology) => context.has(technology));
|
|
11
|
+
return required && requiredAny;
|
|
12
|
+
}
|
|
13
|
+
export function applyFeatures(context) {
|
|
14
|
+
const applied = [];
|
|
15
|
+
for (const feature of features) {
|
|
16
|
+
if (!isFeatureSelected(feature, context)) {
|
|
17
|
+
continue;
|
|
18
|
+
}
|
|
19
|
+
try {
|
|
20
|
+
feature.apply(context);
|
|
21
|
+
applied.push(feature.name);
|
|
22
|
+
}
|
|
23
|
+
catch (error) {
|
|
24
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
25
|
+
throw new Error(`Could not apply ${feature.name}: ${reason}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return applied;
|
|
29
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { readFile } from "node:fs/promises";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { fileURLToPath } from "node:url";
|
|
4
|
+
import { getExpressBaseFiles } from "../../base/backend/express/manifest.js";
|
|
5
|
+
import { getFastifyBaseFiles } from "../../base/backend/fastify/manifest.js";
|
|
6
|
+
export function getBackendBaseDirectory() {
|
|
7
|
+
return path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "..", "base");
|
|
8
|
+
}
|
|
9
|
+
export async function loadBackendBaseFiles(framework, language) {
|
|
10
|
+
const baseDirectory = getBackendBaseDirectory();
|
|
11
|
+
const definitions = framework === "fastify"
|
|
12
|
+
? getFastifyBaseFiles(language)
|
|
13
|
+
: getExpressBaseFiles(language);
|
|
14
|
+
return Promise.all(definitions.map(async (file) => {
|
|
15
|
+
const sourcePath = path.join(baseDirectory, file.source);
|
|
16
|
+
try {
|
|
17
|
+
const content = await readFile(sourcePath, {
|
|
18
|
+
encoding: file.kind === "text" ? "utf8" : undefined,
|
|
19
|
+
});
|
|
20
|
+
return { ...file, content };
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
const reason = error instanceof Error ? error.message : String(error);
|
|
24
|
+
throw new Error(`Could not load base file ${file.source}: ${reason}`);
|
|
25
|
+
}
|
|
26
|
+
}));
|
|
27
|
+
}
|
|
28
|
+
export function loadExpressBaseFiles(language) {
|
|
29
|
+
return loadBackendBaseFiles("express", language);
|
|
30
|
+
}
|
|
31
|
+
export function loadFastifyBaseFiles(language) {
|
|
32
|
+
return loadBackendBaseFiles("fastify", language);
|
|
33
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import path from "node:path";
|
|
2
|
+
import { resolveInsideRoot, toRootRelativePath, } from "../../core/path-safety.js";
|
|
3
|
+
function normalizeRelative(value, label) {
|
|
4
|
+
const normalized = value.replace(/\\/g, "/");
|
|
5
|
+
if (!normalized) {
|
|
6
|
+
return "";
|
|
7
|
+
}
|
|
8
|
+
if (normalized.startsWith("/") ||
|
|
9
|
+
normalized.split("/").includes("..")) {
|
|
10
|
+
throw new Error(`${label} escapes the project root: ${value}`);
|
|
11
|
+
}
|
|
12
|
+
return path.posix.normalize(normalized).replace(/^\.\//, "");
|
|
13
|
+
}
|
|
14
|
+
export class BackendGenerationContext {
|
|
15
|
+
projectDirectory;
|
|
16
|
+
projectName;
|
|
17
|
+
technologies;
|
|
18
|
+
options;
|
|
19
|
+
rootDirectory;
|
|
20
|
+
files = new Map();
|
|
21
|
+
constructor(options) {
|
|
22
|
+
this.projectDirectory = options.projectDirectory;
|
|
23
|
+
this.projectName = options.projectName;
|
|
24
|
+
this.technologies = new Set(options.technologies);
|
|
25
|
+
this.options = options;
|
|
26
|
+
this.rootDirectory = normalizeRelative(options.rootDirectory ?? "", "Backend root directory");
|
|
27
|
+
}
|
|
28
|
+
has(technology) {
|
|
29
|
+
return this.technologies.has(technology);
|
|
30
|
+
}
|
|
31
|
+
addFile(relativePath, content, conflict = "ensure", atProjectRoot = false) {
|
|
32
|
+
const logicalPath = normalizeRelative(relativePath, "Destination path");
|
|
33
|
+
const physicalRelative = atProjectRoot
|
|
34
|
+
? logicalPath
|
|
35
|
+
: path.posix.join(this.rootDirectory, logicalPath);
|
|
36
|
+
const physicalPath = toRootRelativePath(this.projectDirectory, resolveInsideRoot(this.projectDirectory, physicalRelative));
|
|
37
|
+
this.files.set(logicalPath, { path: physicalPath, content, conflict });
|
|
38
|
+
}
|
|
39
|
+
addRootFile(relativePath, content, conflict = "ensure") {
|
|
40
|
+
this.addFile(relativePath, content, conflict, true);
|
|
41
|
+
}
|
|
42
|
+
addRootJsonFile(relativePath, value, conflict = "ensure") {
|
|
43
|
+
this.addRootFile(relativePath, `${JSON.stringify(value, null, 2)}\n`, conflict);
|
|
44
|
+
}
|
|
45
|
+
addTextFile(relativePath, content, conflict = "ensure") {
|
|
46
|
+
this.addFile(relativePath, content, conflict);
|
|
47
|
+
}
|
|
48
|
+
addJsonFile(relativePath, value, conflict = "ensure") {
|
|
49
|
+
this.addTextFile(relativePath, `${JSON.stringify(value, null, 2)}\n`, conflict);
|
|
50
|
+
}
|
|
51
|
+
finalize() {
|
|
52
|
+
return [...this.files.values()].sort((left, right) => left.path.localeCompare(right.path));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { renderTemplate } from "../frontend/template.js";
|
|
2
|
+
import { buildPackageJson } from "../package-json/build-package-json.js";
|
|
3
|
+
import { loadBackendBaseFiles } from "./base-loader.js";
|
|
4
|
+
import { BackendGenerationContext, } from "./context.js";
|
|
5
|
+
import { resolveDatabaseSetup, } from "./resolvers/database.js";
|
|
6
|
+
function serverScripts(language) {
|
|
7
|
+
if (language === "typescript") {
|
|
8
|
+
return {
|
|
9
|
+
dev: "tsx watch src/server.ts",
|
|
10
|
+
build: "tsc -p tsconfig.json",
|
|
11
|
+
start: "node dist/server.js",
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
dev: "node --watch src/server.js",
|
|
16
|
+
build: "node --check src/server.js",
|
|
17
|
+
start: "node src/server.js",
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export function resolveBackendLanguage(context) {
|
|
21
|
+
return context.has("typescript") ? "typescript" : "javascript";
|
|
22
|
+
}
|
|
23
|
+
export function resolveBackendFramework(context) {
|
|
24
|
+
return context.has("fastify") ? "fastify" : "express";
|
|
25
|
+
}
|
|
26
|
+
export async function generateBackendProject(options) {
|
|
27
|
+
const context = new BackendGenerationContext(options);
|
|
28
|
+
const language = resolveBackendLanguage(context);
|
|
29
|
+
const framework = resolveBackendFramework(context);
|
|
30
|
+
const database = resolveDatabaseSetup(language, framework, context.technologies);
|
|
31
|
+
const files = await loadBackendBaseFiles(framework, language);
|
|
32
|
+
for (const file of files) {
|
|
33
|
+
const content = typeof file.content === "string"
|
|
34
|
+
? renderTemplate(file.content, {
|
|
35
|
+
PROJECT_NAME: options.projectName,
|
|
36
|
+
DB_IMPORT: database.serverImport,
|
|
37
|
+
DB_CONNECT: database.serverConnect,
|
|
38
|
+
DB_ROUTE_IMPORT: database.routeImport,
|
|
39
|
+
DB_ROUTE_REGISTER: database.routeRegister,
|
|
40
|
+
})
|
|
41
|
+
: file.content;
|
|
42
|
+
context.addFile(file.destination, content);
|
|
43
|
+
}
|
|
44
|
+
context.addTextFile(".env", `${database.env.join("\n")}\n`);
|
|
45
|
+
for (const file of database.files) {
|
|
46
|
+
context.addTextFile(file.path, file.content);
|
|
47
|
+
}
|
|
48
|
+
if (options.includePackageJson ?? true) {
|
|
49
|
+
const scripts = {
|
|
50
|
+
...serverScripts(language),
|
|
51
|
+
...database.scripts,
|
|
52
|
+
};
|
|
53
|
+
context.addJsonFile("package.json", buildPackageJson({
|
|
54
|
+
name: context.rootDirectory
|
|
55
|
+
? `${options.projectName}-${context.rootDirectory}`
|
|
56
|
+
: options.projectName,
|
|
57
|
+
version: "1.0.0",
|
|
58
|
+
private: true,
|
|
59
|
+
type: "module",
|
|
60
|
+
scripts,
|
|
61
|
+
dependencies: options.dependencies,
|
|
62
|
+
devDependencies: options.devDependencies,
|
|
63
|
+
}));
|
|
64
|
+
}
|
|
65
|
+
return {
|
|
66
|
+
files: context.finalize(),
|
|
67
|
+
language,
|
|
68
|
+
framework,
|
|
69
|
+
database: database.id,
|
|
70
|
+
runtime: "nodejs",
|
|
71
|
+
};
|
|
72
|
+
}
|