Aktueller Stand

This commit is contained in:
2026-01-23 01:33:35 +01:00
parent 082dc5e110
commit 2766dd12c5
10109 changed files with 1578841 additions and 77685 deletions

112
backend/node_modules/giget/dist/cli.mjs generated vendored Executable file
View File

@@ -0,0 +1,112 @@
#!/usr/bin/env node
import { relative } from 'node:path';
import { defineCommand, runMain } from 'citty';
import { consola } from 'consola';
import { d as downloadTemplate, s as startShell } from './shared/giget.OCaTp9b-.mjs';
import 'node:fs/promises';
import 'node:fs';
import 'assert';
import 'path';
import 'events';
import 'stream';
import 'string_decoder';
import 'buffer';
import 'zlib';
import 'process';
import 'fs';
import 'util';
import 'crypto';
import 'pathe';
import 'defu';
import 'nypm';
import 'node:stream';
import 'node:child_process';
import 'node:os';
import 'node:util';
import 'node-fetch-native/proxy';
const name = "giget";
const version = "2.0.0";
const description = "Download templates and git repositories with pleasure!";
const pkg = {
name: name,
version: version,
description: description};
const mainCommand = defineCommand({
meta: {
name: pkg.name,
version: pkg.version,
description: pkg.description
},
args: {
// TODO: Make it `-t` in the next major version
template: {
type: "positional",
description: "Template name or a a URI describing provider, repository, subdir, and branch/ref"
},
dir: {
type: "positional",
description: "A relative or absolute path where to extract the template",
required: false
},
auth: {
type: "string",
description: "Custom Authorization token to use for downloading template. (Can be overriden with `GIGET_AUTH` environment variable)"
},
cwd: {
type: "string",
description: "Set current working directory to resolve dirs relative to it"
},
force: {
type: "boolean",
description: "Clone to existing directory even if exists"
},
forceClean: {
type: "boolean",
description: "Remove any existing directory or file recusively before cloning"
},
offline: {
type: "boolean",
description: "o not attempt to download and use cached version"
},
preferOffline: {
type: "boolean",
description: "Use cache if exists otherwise try to download"
},
shell: {
type: "boolean",
description: "Open a new shell with current working "
},
install: {
type: "boolean",
description: "Install dependencies after cloning"
},
verbose: {
type: "boolean",
description: "Show verbose debugging info"
}
},
run: async ({ args }) => {
if (args.verbose) {
process.env.DEBUG = process.env.DEBUG || "true";
}
const r = await downloadTemplate(args.template, {
dir: args.dir,
force: args.force,
forceClean: args.forceClean,
offline: args.offline,
preferOffline: args.preferOffline,
auth: args.auth,
install: args.install
});
const _from = r.name || r.url;
const _to = relative(process.cwd(), r.dir) || "./";
consola.log(`\u2728 Successfully cloned \`${_from}\` to \`${_to}\`
`);
if (args.shell) {
startShell(r.dir);
}
}
});
runMain(mainCommand);

49
backend/node_modules/giget/dist/index.d.mts generated vendored Normal file
View File

@@ -0,0 +1,49 @@
interface GitInfo {
provider: "github" | "gitlab" | "bitbucket" | "sourcehut";
repo: string;
subdir: string;
ref: string;
}
interface TemplateInfo {
name: string;
tar: string;
version?: string;
subdir?: string;
url?: string;
defaultDir?: string;
headers?: Record<string, string | undefined>;
source?: never;
dir?: never;
[key: string]: any;
}
type TemplateProvider = (input: string, options: {
auth?: string;
}) => TemplateInfo | Promise<TemplateInfo> | null;
interface DownloadTemplateOptions {
provider?: string;
force?: boolean;
forceClean?: boolean;
offline?: boolean;
preferOffline?: boolean;
providers?: Record<string, TemplateProvider>;
dir?: string;
registry?: false | string;
cwd?: string;
auth?: string;
install?: boolean;
silent?: boolean;
}
type DownloadTemplateResult = Omit<TemplateInfo, "dir" | "source"> & {
dir: string;
source: string;
};
declare function downloadTemplate(input: string, options?: DownloadTemplateOptions): Promise<DownloadTemplateResult>;
declare const registryProvider: (registryEndpoint?: string, options?: {
auth?: string;
}) => TemplateProvider;
declare function startShell(cwd: string): void;
export { type DownloadTemplateOptions, type DownloadTemplateResult, type GitInfo, type TemplateInfo, type TemplateProvider, downloadTemplate, registryProvider, startShell };

22
backend/node_modules/giget/dist/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,22 @@
export { d as downloadTemplate, r as registryProvider, s as startShell } from './shared/giget.OCaTp9b-.mjs';
import 'node:fs/promises';
import 'node:fs';
import 'assert';
import 'path';
import 'events';
import 'stream';
import 'string_decoder';
import 'buffer';
import 'zlib';
import 'process';
import 'fs';
import 'util';
import 'crypto';
import 'pathe';
import 'defu';
import 'nypm';
import 'node:stream';
import 'node:child_process';
import 'node:os';
import 'node:util';
import 'node-fetch-native/proxy';

File diff suppressed because one or more lines are too long