create-fs-app 2.0.5 → 3.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.
Files changed (59) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +271 -158
  3. package/dist/cli/output.js +223 -0
  4. package/dist/cli/program.js +403 -0
  5. package/dist/cli/resolve-config.js +264 -0
  6. package/dist/cli/ui/errors.js +27 -0
  7. package/dist/cli/ui/help.js +43 -0
  8. package/dist/cli/ui/hints.js +22 -0
  9. package/dist/cli/ui/layer-log.js +113 -0
  10. package/dist/cli/ui/list.js +115 -0
  11. package/dist/cli/ui/text.js +56 -0
  12. package/dist/cli/wizard.js +275 -0
  13. package/dist/core/auth/jwt.js +478 -0
  14. package/dist/core/download.js +109 -0
  15. package/dist/core/health-check.js +46 -44
  16. package/dist/core/presets.js +75 -117
  17. package/dist/core/registry-fetch.js +101 -81
  18. package/dist/core/registry.fallback.json +904 -0
  19. package/dist/core/scaffold.js +121 -75
  20. package/dist/core/stack.js +109 -0
  21. package/dist/core/template-cache.js +95 -154
  22. package/dist/core/template-clone.js +353 -656
  23. package/dist/core/template-list.js +19 -141
  24. package/dist/core/template-registry.js +116 -216
  25. package/dist/index.js +13 -963
  26. package/dist/types/index.js +30 -82
  27. package/dist/utils/cli-error.js +15 -0
  28. package/dist/utils/exec.js +62 -0
  29. package/dist/utils/logger.js +10 -9
  30. package/dist/utils/theme.js +87 -0
  31. package/dist/utils/validation.js +24 -13
  32. package/package.json +38 -32
  33. package/dist/core/health-check.d.ts +0 -15
  34. package/dist/core/health-check.js.map +0 -1
  35. package/dist/core/presets.d.ts +0 -48
  36. package/dist/core/presets.js.map +0 -1
  37. package/dist/core/registry-fetch.d.ts +0 -20
  38. package/dist/core/registry-fetch.js.map +0 -1
  39. package/dist/core/scaffold.d.ts +0 -40
  40. package/dist/core/scaffold.js.map +0 -1
  41. package/dist/core/template-cache.d.ts +0 -38
  42. package/dist/core/template-cache.js.map +0 -1
  43. package/dist/core/template-clone.d.ts +0 -27
  44. package/dist/core/template-clone.js.map +0 -1
  45. package/dist/core/template-list.d.ts +0 -45
  46. package/dist/core/template-list.js.map +0 -1
  47. package/dist/core/template-registry.d.ts +0 -78
  48. package/dist/core/template-registry.js.map +0 -1
  49. package/dist/index.d.ts +0 -2
  50. package/dist/index.js.map +0 -1
  51. package/dist/types/index.d.ts +0 -102
  52. package/dist/types/index.js.map +0 -1
  53. package/dist/utils/errors.d.ts +0 -15
  54. package/dist/utils/errors.js +0 -50
  55. package/dist/utils/errors.js.map +0 -1
  56. package/dist/utils/logger.d.ts +0 -37
  57. package/dist/utils/logger.js.map +0 -1
  58. package/dist/utils/validation.d.ts +0 -48
  59. package/dist/utils/validation.js.map +0 -1
@@ -1,85 +1,33 @@
1
1
  import { z } from 'zod';
2
- // Available monorepo frameworks
3
- export var MonorepoFramework;
4
- (function (MonorepoFramework) {
5
- MonorepoFramework["Turborepo"] = "turborepo";
6
- MonorepoFramework["Nx"] = "nx";
7
- })(MonorepoFramework || (MonorepoFramework = {}));
8
- // Frontend frameworks
9
- export var FrontendFramework;
10
- (function (FrontendFramework) {
11
- FrontendFramework["React"] = "react";
12
- FrontendFramework["NextJs"] = "next.js";
13
- FrontendFramework["Vue"] = "vue";
14
- FrontendFramework["Nuxt"] = "nuxt";
15
- FrontendFramework["Angular"] = "angular";
16
- })(FrontendFramework || (FrontendFramework = {}));
17
- // Backend frameworks
18
- export var BackendFramework;
19
- (function (BackendFramework) {
20
- BackendFramework["Express"] = "express";
21
- BackendFramework["NestJs"] = "nest.js";
22
- BackendFramework["FastifyTs"] = "fastify-ts";
23
- BackendFramework["Koa"] = "koa";
24
- })(BackendFramework || (BackendFramework = {}));
25
- // Database options
26
- export var Database;
27
- (function (Database) {
28
- Database["MongoDB"] = "mongodb";
29
- Database["PostgreSQL"] = "postgresql";
30
- Database["MySQL"] = "mysql";
31
- Database["SQLite"] = "sqlite";
32
- })(Database || (Database = {}));
33
- // Package managers
34
- export var PackageManager;
35
- (function (PackageManager) {
36
- PackageManager["NPM"] = "npm";
37
- PackageManager["Yarn"] = "yarn";
38
- PackageManager["PNPM"] = "pnpm";
39
- })(PackageManager || (PackageManager = {}));
40
- // API style options
41
- export var ApiStyle;
42
- (function (ApiStyle) {
43
- ApiStyle["REST"] = "rest";
44
- ApiStyle["GraphQL"] = "graphql";
45
- ApiStyle["Both"] = "both";
46
- })(ApiStyle || (ApiStyle = {}));
47
- // Auth strategy options
48
- export var AuthStrategy;
49
- (function (AuthStrategy) {
50
- AuthStrategy["None"] = "none";
51
- AuthStrategy["JWT"] = "jwt";
52
- })(AuthStrategy || (AuthStrategy = {}));
53
- // Zod enum schemas
54
- const MonorepoFrameworkSchema = z.enum(['turborepo', 'nx']);
55
- const FrontendFrameworkSchema = z.enum(['react', 'next.js', 'vue', 'nuxt', 'angular']);
56
- const BackendFrameworkSchema = z.enum(['express', 'nest.js', 'fastify-ts', 'koa']);
57
- const DatabaseSchema = z.enum(['mongodb', 'postgresql', 'mysql', 'sqlite']);
58
- const PackageManagerSchema = z.enum(['npm', 'yarn', 'pnpm']);
59
- const ApiStyleSchema = z.enum(['rest', 'graphql', 'both']);
60
- const AuthStrategySchema = z.enum(['none', 'jwt']);
61
- // Project configuration schema using Zod
62
- export const ProjectConfigSchema = z.object({
63
- name: z.string().min(1),
64
- monorepo: MonorepoFrameworkSchema,
65
- packageManager: PackageManagerSchema,
2
+ /**
3
+ * A template's stack. Values are CLI values from the registry
4
+ * (e.g. frontend "next.js", backend "nest.js"); they are validated against
5
+ * the active registry, not against a hardcoded list.
6
+ */
7
+ export const StackSchema = z.object({
8
+ monorepo: z.string().min(1),
9
+ frontend: z.string().min(1),
10
+ backend: z.string().min(1),
11
+ database: z.string().min(1),
12
+ orm: z.string().min(1),
13
+ });
14
+ export const PACKAGE_MANAGERS = ['npm', 'pnpm', 'yarn'];
15
+ export const PackageManagerSchema = z.enum(PACKAGE_MANAGERS);
16
+ export const AUTH_STRATEGIES = ['none', 'jwt'];
17
+ export const AuthStrategySchema = z.enum(AUTH_STRATEGIES);
18
+ /** Everything about a project except its name (also the shape of a preset). */
19
+ export const ProjectOptionsSchema = z.object({
20
+ /** Undefined for --template-url (custom) templates. */
21
+ stack: StackSchema.optional(),
22
+ packageManager: PackageManagerSchema.default('npm'),
66
23
  ci: z.boolean().default(false), // GitHub Actions CI workflow
67
- apps: z.object({
68
- frontend: z.object({
69
- framework: FrontendFrameworkSchema,
70
- styling: z.enum(['css', 'scss', 'tailwind', 'styled-components']),
71
- eslint: z.boolean().default(true), // ESLint (separate from Prettier)
72
- prettier: z.boolean().default(true), // Prettier (separate from ESLint)
73
- turbopack: z.boolean().default(false), // Next.js only — faster dev bundler
74
- }),
75
- backend: z.object({
76
- framework: BackendFrameworkSchema,
77
- database: DatabaseSchema,
78
- orm: z.enum(['prisma', 'typeorm', 'mongoose', 'drizzle']).optional(),
79
- apiStyle: ApiStyleSchema.default('rest'), // REST / GraphQL / Both
80
- auth: AuthStrategySchema.default('none'), // JWT auth scaffolding
81
- docker: z.boolean().default(true),
82
- })
83
- })
24
+ eslint: z.boolean().default(true),
25
+ prettier: z.boolean().default(true),
26
+ docker: z.boolean().default(true),
27
+ auth: AuthStrategySchema.default('none'),
28
+ git: z.boolean().default(true), // git init + first commit
29
+ install: z.boolean().default(false), // install dependencies after scaffolding
30
+ });
31
+ export const ProjectConfigSchema = ProjectOptionsSchema.extend({
32
+ name: z.string().min(1),
84
33
  });
85
- //# sourceMappingURL=index.js.map
@@ -0,0 +1,15 @@
1
+ /**
2
+ * An error meant for the user: what failed (the message), why (`reason`) and
3
+ * what to run instead (`fix`). The CLI prints it without a stack trace.
4
+ * Core modules throw it too, so it lives outside src/cli/.
5
+ */
6
+ export class CliError extends Error {
7
+ reason;
8
+ fix;
9
+ constructor(message, details = {}) {
10
+ super(message);
11
+ this.name = 'CliError';
12
+ this.reason = details.reason;
13
+ this.fix = details.fix;
14
+ }
15
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * Minimal child-process wrapper (replaces execa).
3
+ */
4
+ import { spawn } from 'node:child_process';
5
+ /** Package managers that are .cmd shims on Windows and need cmd.exe to run. */
6
+ const WINDOWS_SHIMS = new Set(['npm', 'npx', 'pnpm', 'yarn']);
7
+ /** Quote an argument for cmd.exe (only package-manager arguments get here). */
8
+ export function quoteForCmd(arg) {
9
+ return /^[\w.\-/:=@]+$/.test(arg) ? arg : `"${arg.replace(/"/g, '""')}"`;
10
+ }
11
+ /**
12
+ * Run a command without a shell (on Windows, the npm/pnpm/yarn shims run
13
+ * through cmd.exe with quoted arguments). Resolves on exit code 0; rejects
14
+ * with a clear message when the command is missing (ENOENT), times out, or
15
+ * exits non-zero.
16
+ */
17
+ export function run(cmd, args = [], options = {}) {
18
+ const { cwd, stdio = 'pipe', timeout, env } = options;
19
+ const display = [cmd, ...args].join(' ');
20
+ return new Promise((resolve, reject) => {
21
+ const spawnOptions = {
22
+ cwd,
23
+ env,
24
+ stdio: stdio === 'inherit' ? 'inherit' : ['ignore', 'pipe', 'pipe'],
25
+ };
26
+ // A single command string (no args array) avoids Node's DEP0190 warning.
27
+ const child = process.platform === 'win32' && WINDOWS_SHIMS.has(cmd)
28
+ ? spawn([cmd, ...args].map(quoteForCmd).join(' '), { ...spawnOptions, shell: true })
29
+ : spawn(cmd, args, spawnOptions);
30
+ let stdout = '';
31
+ let stderr = '';
32
+ child.stdout?.setEncoding('utf-8').on('data', (chunk) => { stdout += chunk; });
33
+ child.stderr?.setEncoding('utf-8').on('data', (chunk) => { stderr += chunk; });
34
+ let timedOut = false;
35
+ const timer = timeout
36
+ ? setTimeout(() => { timedOut = true; child.kill(); }, timeout)
37
+ : undefined;
38
+ child.on('error', (error) => {
39
+ if (timer)
40
+ clearTimeout(timer);
41
+ reject(new Error(error.code === 'ENOENT'
42
+ ? `Command not found: ${cmd}. Make sure it is installed and on your PATH.`
43
+ : `Failed to run "${display}": ${error.message}`));
44
+ });
45
+ child.on('close', (code, signal) => {
46
+ if (timer)
47
+ clearTimeout(timer);
48
+ if (timedOut) {
49
+ reject(new Error(`"${display}" timed out after ${timeout} ms`));
50
+ return;
51
+ }
52
+ const exitCode = code ?? 1;
53
+ if (exitCode !== 0) {
54
+ const detail = stderr.trim() || stdout.trim();
55
+ reject(new Error(`"${display}" failed with ${signal ? `signal ${signal}` : `exit code ${exitCode}`}` +
56
+ (detail ? `:\n${detail}` : '')));
57
+ return;
58
+ }
59
+ resolve({ stdout, stderr, code: exitCode });
60
+ });
61
+ });
62
+ }
@@ -1,7 +1,9 @@
1
1
  /**
2
2
  * Logging utilities with debug mode support
3
3
  */
4
- import chalk from 'chalk';
4
+ import { detectTheme } from './theme.js';
5
+ const out = () => detectTheme(process.stdout);
6
+ const err = () => detectTheme(process.stderr);
5
7
  // Check if debug mode is enabled
6
8
  const DEBUG = process.env.DEBUG === 'true' || process.env.DEBUG === '1';
7
9
  const VERBOSE = process.env.VERBOSE === 'true' || process.env.VERBOSE === '1';
@@ -11,7 +13,7 @@ export class Logger {
11
13
  */
12
14
  static debug(message, ...args) {
13
15
  if (DEBUG) {
14
- console.log(chalk.gray(`[DEBUG] ${message}`), ...args);
16
+ console.log(out().dim(`[DEBUG] ${message}`), ...args);
15
17
  }
16
18
  }
17
19
  /**
@@ -19,32 +21,32 @@ export class Logger {
19
21
  */
20
22
  static verbose(message, ...args) {
21
23
  if (VERBOSE || DEBUG) {
22
- console.log(chalk.blue(`[VERBOSE] ${message}`), ...args);
24
+ console.log(out().dim(`[VERBOSE] ${message}`), ...args);
23
25
  }
24
26
  }
25
27
  /**
26
28
  * Info message
27
29
  */
28
30
  static info(message, ...args) {
29
- console.log(chalk.cyan(message), ...args);
31
+ console.log(out().accent(message), ...args);
30
32
  }
31
33
  /**
32
34
  * Success message
33
35
  */
34
36
  static success(message, ...args) {
35
- console.log(chalk.green(message), ...args);
37
+ console.log(out().success(message), ...args);
36
38
  }
37
39
  /**
38
- * Warning message
40
+ * Warning message (stderr, in the same "Warning: ..." format as every CLI warning)
39
41
  */
40
42
  static warn(message, ...args) {
41
- console.log(chalk.yellow(`⚠️ ${message}`), ...args);
43
+ console.error(err().warn(`Warning: ${message}`), ...args);
42
44
  }
43
45
  /**
44
46
  * Error message
45
47
  */
46
48
  static error(message, ...args) {
47
- console.error(chalk.red(`❌ ${message}`), ...args);
49
+ console.error(err().error(`${err().glyphs.cross} ${message}`), ...args);
48
50
  }
49
51
  /**
50
52
  * Check if debug mode is enabled
@@ -59,4 +61,3 @@ export class Logger {
59
61
  return VERBOSE || DEBUG;
60
62
  }
61
63
  }
62
- //# sourceMappingURL=logger.js.map
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Terminal theme: colour mode, Unicode or ASCII glyphs, and style functions.
3
+ *
4
+ * detectTheme() decides once per stream (NO_COLOR, non-TTY, CI and TERM=dumb
5
+ * give plain text). Renderers take a Theme argument and stay pure, so tests
6
+ * pass explicit themes. No dependency beyond picocolors (16-colour mode).
7
+ */
8
+ import pc from 'picocolors';
9
+ const UNICODE_GLYPHS = {
10
+ tee: '├─', corner: '└─', dot: '·', ge: '≥', check: '✓', cross: '✗', ellipsis: '…', arrow: '→', optional: '○',
11
+ };
12
+ const ASCII_GLYPHS = {
13
+ tee: '|-', corner: '`-', dot: '-', ge: '>=', check: '+', cross: 'x', ellipsis: '...', arrow: '->', optional: 'o',
14
+ };
15
+ const identity = (text) => text;
16
+ function rgb(hex) {
17
+ const n = Number.parseInt(hex.slice(1), 16);
18
+ const open = `\x1b[38;2;${(n >> 16) & 255};${(n >> 8) & 255};${n & 255}m`;
19
+ return (text) => `${open}${text}\x1b[39m`;
20
+ }
21
+ export function createTheme(options) {
22
+ const glyphs = options.unicode ? UNICODE_GLYPHS : ASCII_GLYPHS;
23
+ if (options.color === 'none') {
24
+ return {
25
+ ...options, glyphs,
26
+ frontend: identity, backend: identity, data: identity,
27
+ success: identity, error: identity, warn: identity,
28
+ dim: identity, bold: identity, accent: identity,
29
+ };
30
+ }
31
+ const c = pc.createColors(true);
32
+ const base = {
33
+ ...options, glyphs,
34
+ success: c.green, error: c.red, warn: c.yellow, dim: c.dim, bold: c.bold,
35
+ };
36
+ if (options.color === 'truecolor') {
37
+ const teal = rgb('#2ec4b6');
38
+ return { ...base, frontend: teal, backend: rgb('#ff7a52'), data: rgb('#c2a173'), accent: teal };
39
+ }
40
+ // 16 colours have no tan, and yellow is taken by orange
41
+ return { ...base, frontend: c.cyan, backend: c.yellow, data: c.magenta, accent: c.cyan };
42
+ }
43
+ export function detectColor(stream, env) {
44
+ if (env.NO_COLOR)
45
+ return 'none';
46
+ if (!stream.isTTY)
47
+ return 'none';
48
+ if (env.CI !== undefined)
49
+ return 'none';
50
+ if (env.TERM === 'dumb')
51
+ return 'none';
52
+ if (env.COLORTERM === 'truecolor' || env.COLORTERM === '24bit' || env.WT_SESSION)
53
+ return 'truecolor';
54
+ return 'ansi16';
55
+ }
56
+ /** The is-unicode-supported heuristic: legacy Windows consoles get ASCII. */
57
+ export function detectUnicode(env, platform) {
58
+ if (platform !== 'win32')
59
+ return env.TERM !== 'linux';
60
+ return Boolean(env.WT_SESSION)
61
+ || env.TERM_PROGRAM === 'vscode'
62
+ || env.TERM === 'xterm-256color'
63
+ || env.TERM === 'alacritty'
64
+ || env.ConEmuTask === '{cmd::Cmder}'
65
+ || env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';
66
+ }
67
+ const cache = new WeakMap();
68
+ /** Theme for `stream`; cached per stream when env and platform are the process's own. */
69
+ export function detectTheme(stream = process.stdout, env = process.env, platform = process.platform) {
70
+ const cacheable = env === process.env && platform === process.platform;
71
+ const cached = cacheable ? cache.get(stream) : undefined;
72
+ if (cached)
73
+ return cached;
74
+ const theme = createTheme({ color: detectColor(stream, env), unicode: detectUnicode(env, platform) });
75
+ if (cacheable)
76
+ cache.set(stream, theme);
77
+ return theme;
78
+ }
79
+ // eslint-disable-next-line no-control-regex
80
+ const ANSI = /\x1b\[[0-9;]*m/g;
81
+ export function stripAnsi(text) {
82
+ return text.replace(ANSI, '');
83
+ }
84
+ /** Columns a string takes in the terminal (ANSI codes stripped; every code point = 1). */
85
+ export function visibleWidth(text) {
86
+ return [...stripAnsi(text)].length;
87
+ }
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Input validation utilities
3
3
  */
4
+ import { CliError } from './cli-error.js';
4
5
  /**
5
6
  * Validate project name
6
7
  * - Must contain only letters, numbers, hyphens, and underscores
@@ -40,14 +41,29 @@ export function validateProjectName(name) {
40
41
  export function assertValidProjectName(name) {
41
42
  const result = validateProjectName(name);
42
43
  if (!result.valid) {
43
- throw new Error(result.error);
44
+ throw new CliError(`Invalid project name "${name}"`, {
45
+ reason: result.error?.split('\n')[0],
46
+ fix: `create-fs-app ${suggestProjectName(name)}`,
47
+ });
44
48
  }
45
49
  }
50
+ /**
51
+ * `name` lowercased, each run of invalid characters replaced by one "-", and
52
+ * leading "-"/"_" and trailing "-" trimmed (else "my-app").
53
+ */
54
+ export function suggestProjectName(name) {
55
+ const suggestion = name
56
+ .toLowerCase()
57
+ .replace(/[^a-z0-9-_]+/g, '-')
58
+ .replace(/-{2,}/g, '-')
59
+ .replace(/^[-_]+|-+$/g, '');
60
+ return validateProjectName(suggestion).valid ? suggestion : 'my-app';
61
+ }
46
62
  /**
47
63
  * Parse and validate a GitHub template URL.
48
64
  *
49
- * Accepts three forms:
50
- * https://github.com/user/repo
65
+ * Accepts three forms (trailing "/" and ".git" on the repo are allowed):
66
+ * https://github.com/user/repo → default branch (HEAD)
51
67
  * https://github.com/user/repo/tree/<branch>
52
68
  * https://github.com/user/repo/tree/<branch>/path/to/subfolder
53
69
  */
@@ -55,21 +71,22 @@ export function parseTemplateUrl(url) {
55
71
  if (!url || url.trim() === '') {
56
72
  return { valid: false, error: 'Template URL cannot be empty' };
57
73
  }
74
+ const trimmed = url.trim().replace(/\/+$/, '');
58
75
  // Form 1: https://github.com/user/repo[.git]
59
76
  const rootRe = /^https:\/\/github\.com\/([\w.-]+)\/([\w.-]+?)(?:\.git)?$/;
60
- const rootMatch = url.match(rootRe);
77
+ const rootMatch = trimmed.match(rootRe);
61
78
  if (rootMatch) {
62
79
  return {
63
80
  valid: true,
64
81
  parsed: {
65
82
  repoUrl: `https://github.com/${rootMatch[1]}/${rootMatch[2]}`,
66
- branch: 'main',
83
+ branch: 'HEAD',
67
84
  },
68
85
  };
69
86
  }
70
87
  // Form 2: https://github.com/user/repo/tree/<branch>[/subfolder/path]
71
- const treeRe = /^https:\/\/github\.com\/([\w.-]+)\/([\w.-]+?)\/tree\/([\w./-]+?)(?:\/(.+))?$/;
72
- const treeMatch = url.match(treeRe);
88
+ const treeRe = /^https:\/\/github\.com\/([\w.-]+)\/([\w.-]+?)(?:\.git)?\/tree\/([\w.-]+)(?:\/(.+))?$/;
89
+ const treeMatch = trimmed.match(treeRe);
73
90
  if (treeMatch) {
74
91
  return {
75
92
  valid: true,
@@ -88,13 +105,7 @@ export function parseTemplateUrl(url) {
88
105
  ' https://github.com/user/repo/tree/branch/path/to/subfolder',
89
106
  };
90
107
  }
91
- /** @deprecated use parseTemplateUrl */
92
- export function validateTemplateUrl(url) {
93
- const result = parseTemplateUrl(url);
94
- return { valid: result.valid, error: result.error };
95
- }
96
108
  const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
97
109
  export function isValidUUID(value) {
98
110
  return UUID_RE.test(value);
99
111
  }
100
- //# sourceMappingURL=validation.js.map
package/package.json CHANGED
@@ -1,9 +1,11 @@
1
1
  {
2
2
  "name": "create-fs-app",
3
- "version": "2.0.5",
4
- "description": "A CLI tool to create customizable full-stack monorepo applications",
3
+ "version": "3.1.0",
4
+ "description": "Create a full-stack TypeScript monorepo from one command: a frontend, a backend and a database, already connected.",
5
5
  "main": "./dist/index.js",
6
- "bin": "./dist/index.js",
6
+ "bin": {
7
+ "create-fs-app": "dist/index.js"
8
+ },
7
9
  "type": "module",
8
10
  "files": [
9
11
  "dist/**/*",
@@ -11,71 +13,75 @@
11
13
  "LICENSE"
12
14
  ],
13
15
  "scripts": {
16
+ "prebuild": "node scripts/sync-registry.mjs",
14
17
  "build": "tsc",
15
18
  "dev": "tsc -w",
16
- "lint": "eslint . --ext .ts --max-warnings 200",
17
- "lint:fix": "eslint . --ext .ts --fix",
18
- "postbuild": "chmod +x dist/index.js",
19
+ "lint": "eslint . --max-warnings 0",
20
+ "lint:fix": "eslint . --fix",
21
+ "typecheck": "tsc --noEmit",
22
+ "test": "vitest run",
23
+ "test:e2e-templates": "node scripts/e2e-templates.mjs",
24
+ "test:e2e-docker": "node scripts/e2e-docker.mjs",
25
+ "sync-registry": "node scripts/sync-registry.mjs",
26
+ "postbuild": "node -e \"require('fs').chmodSync('dist/index.js', 0o755)\"",
19
27
  "prepublishOnly": "npm run build",
20
28
  "size": "npm pack --dry-run 2>&1 | grep -E 'package size|Tarball Contents'",
21
29
  "size:full": "npm pack --dry-run",
22
- "analyze": "node scripts/package-info.js",
23
- "release:patch": "npm version patch -m 'Release v%s' && git push --follow-tags",
24
- "release:minor": "npm version minor -m 'Release v%s' && git push --follow-tags",
25
- "release:major": "npm version major -m 'Release v%s' && git push --follow-tags",
30
+ "release:patch": "npm version patch --no-git-tag-version && V=$(node -p \"require('./package.json').version\") && git commit -m \"Release v$V\" -- package.json && git tag -a \"v$V\" -m \"Release v$V\" && git push --follow-tags",
31
+ "release:minor": "npm version minor --no-git-tag-version && V=$(node -p \"require('./package.json').version\") && git commit -m \"Release v$V\" -- package.json && git tag -a \"v$V\" -m \"Release v$V\" && git push --follow-tags",
32
+ "release:major": "npm version major --no-git-tag-version && V=$(node -p \"require('./package.json').version\") && git commit -m \"Release v$V\" -- package.json && git tag -a \"v$V\" -m \"Release v$V\" && git push --follow-tags",
26
33
  "release:check": "npm run build && npm pack --dry-run",
27
34
  "release:test": "npm run build && npm pack && echo 'Test the .tgz file before publishing'"
28
35
  },
29
36
  "keywords": [
30
37
  "full-stack",
38
+ "fullstack",
31
39
  "monorepo",
32
40
  "turborepo",
33
- "nx",
34
- "react",
35
- "next.js",
36
- "express",
37
- "nest.js",
38
41
  "typescript",
39
42
  "cli",
40
43
  "scaffolding",
41
- "boilerplate"
44
+ "boilerplate",
45
+ "starter",
46
+ "next.js",
47
+ "nest.js",
48
+ "react",
49
+ "vue",
50
+ "express",
51
+ "fastify",
52
+ "hono",
53
+ "prisma",
54
+ "drizzle",
55
+ "mongoose",
56
+ "docker"
42
57
  ],
43
58
  "author": "Om Jannu",
44
59
  "license": "ISC",
45
60
  "repository": {
46
61
  "type": "git",
47
- "url": "https://github.com/Om-jannu/create-fs-app.git"
62
+ "url": "git+https://github.com/Om-jannu/create-fs-app.git"
48
63
  },
49
64
  "bugs": {
50
65
  "url": "https://github.com/Om-jannu/create-fs-app/issues"
51
66
  },
52
67
  "homepage": "https://create-fs-app.vercel.app/",
53
68
  "dependencies": {
54
- "boxen": "^8.0.1",
55
- "chalk": "^5.6.2",
56
- "cli-table3": "^0.6.5",
69
+ "@clack/prompts": "^1.9.0",
57
70
  "commander": "^14.0.1",
58
- "execa": "^9.6.0",
59
- "figlet": "^1.9.3",
60
- "gradient-string": "^3.0.0",
61
- "ora": "^9.0.0",
62
- "prompts": "^2.4.2",
63
- "update-notifier": "^7.3.1",
71
+ "picocolors": "^1.1.1",
72
+ "tar": "^7.5.0",
64
73
  "zod": "^4.1.12"
65
74
  },
66
75
  "devDependencies": {
67
76
  "@eslint/js": "^9.39.2",
68
- "@types/figlet": "^1.7.0",
69
- "@types/gradient-string": "^1.1.6",
70
77
  "@types/node": "^24.8.1",
71
- "@types/prompts": "^2.4.9",
72
- "@types/update-notifier": "^6.0.8",
73
78
  "@typescript-eslint/eslint-plugin": "^8.46.1",
74
79
  "@typescript-eslint/parser": "^8.46.1",
75
80
  "eslint": "^9.38.0",
76
- "typescript": "^5.9.3"
81
+ "typescript": "^5.9.3",
82
+ "vitest": "^4.0.0"
77
83
  },
78
84
  "engines": {
79
- "node": ">=18.0.0"
85
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
80
86
  }
81
87
  }
@@ -1,15 +0,0 @@
1
- /**
2
- * Environment Health Check
3
- * Verifies that the required tools are installed and at the right version.
4
- */
5
- export interface HealthCheckResult {
6
- passed: boolean;
7
- checks: Array<{
8
- name: string;
9
- passed: boolean;
10
- message: string;
11
- suggestion?: string;
12
- }>;
13
- }
14
- export declare function runHealthCheck(): Promise<HealthCheckResult>;
15
- export declare function displayHealthCheckResults(result: HealthCheckResult): void;
@@ -1 +0,0 @@
1
- {"version":3,"file":"health-check.js","sourceRoot":"","sources":["../../src/core/health-check.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,OAAO,CAAC;AAC9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,MAAM,MAAM,GAAgC,EAAE,CAAC;IAE/C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,iCAAiC,CAAC,CAAC,CAAC;IAEhE,MAAM,CAAC,IAAI,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IAC/B,MAAM,CAAC,IAAI,CAAC,MAAM,QAAQ,EAAE,CAAC,CAAC;IAC9B,MAAM,CAAC,IAAI,CAAC,MAAM,WAAW,EAAE,CAAC,CAAC;IACjC,MAAM,CAAC,IAAI,CAAC,MAAM,QAAQ,EAAE,CAAC,CAAC;IAC9B,MAAM,CAAC,IAAI,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IAC/B,MAAM,CAAC,IAAI,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IAE/B,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;IAC3C,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,MAAyB;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AAM,EAAE,KAAK,EAAE,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,4BAA4B,EAAE,CAAC;IAChH,CAAC;AACH,CAAC;AAED,KAAK,UAAU,SAAS;IACtB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QAClD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACtG,CAAC;AACH,CAAC;AAED,KAAK,UAAU,SAAS;IACtB,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,MAAM,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;QAClD,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,CAAC;IAC7E,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,qBAAqB,EAAE,CAAC;IACtG,CAAC;AACH,CAAC"}
@@ -1,48 +0,0 @@
1
- /**
2
- * Configuration Presets System
3
- * Save and load favorite stack configurations
4
- */
5
- import { ProjectConfig } from '../types/index.js';
6
- export interface Preset {
7
- name: string;
8
- description?: string;
9
- config: Omit<ProjectConfig, 'name'>;
10
- createdAt: string;
11
- lastUsed?: string;
12
- }
13
- /**
14
- * Save a preset
15
- */
16
- /** Returns true if the name collides with a built-in preset (case-insensitive). */
17
- export declare function isBuiltinPresetName(name: string): boolean;
18
- /** Returns true if a user-saved preset with this name already exists. */
19
- export declare function userPresetExists(name: string): Promise<boolean>;
20
- export declare function savePreset(name: string, config: ProjectConfig, description?: string): Promise<void>;
21
- /**
22
- * Load a preset
23
- */
24
- export declare function loadPreset(name: string): Promise<Preset | null>;
25
- /**
26
- * List all presets
27
- */
28
- export declare function listPresets(): Promise<Preset[]>;
29
- /**
30
- * Delete a preset
31
- */
32
- export declare function deletePreset(name: string): Promise<boolean>;
33
- /**
34
- * Check if preset exists
35
- */
36
- export declare function hasPreset(name: string): Promise<boolean>;
37
- /**
38
- * Get preset configuration merged with project name
39
- */
40
- export declare function getPresetConfig(presetName: string, projectName: string): Promise<ProjectConfig | null>;
41
- /**
42
- * Built-in presets
43
- */
44
- export declare const BUILTIN_PRESETS: Record<string, Omit<Preset, 'createdAt'>>;
45
- /**
46
- * Get built-in preset
47
- */
48
- export declare function getBuiltinPreset(name: string): Preset | null;
@@ -1 +0,0 @@
1
- {"version":3,"file":"presets.js","sourceRoot":"","sources":["../../src/core/presets.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,MAAM,aAAa,CAAC;AAC7B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,MAAM,IAAI,CAAC;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAE5C,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;AACzE,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;AAe5D;;GAEG;AACH,KAAK,UAAU,gBAAgB;IAC7B,IAAI,CAAC;QACH,MAAM,EAAE,CAAC,KAAK,CAAC,WAAW,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;IAAC,OAAO,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