create-newt-app 0.13.2 → 0.14.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -6
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import chalk from "chalk";
7
7
  // package.json
8
8
  var package_default = {
9
9
  name: "create-newt-app",
10
- version: "0.13.2",
10
+ version: "0.14.1",
11
11
  private: false,
12
12
  type: "module",
13
13
  bin: {
@@ -243,8 +243,7 @@ async function doInit(options) {
243
243
  { value: "none", label: "None", hint: "skip" },
244
244
  { value: "standalone", label: "Standalone + Dockerfile", hint: "Dockerfiles + docker-compose.yml" },
245
245
  { value: "custom-server", label: "Custom Server", hint: "single process, single port" },
246
- { value: "spa", label: "SPA Mode", hint: "static export served by NestJS" },
247
- { value: "vercel", label: "Vercel", hint: "serverless function" }
246
+ { value: "spa", label: "SPA Mode", hint: "static export served by NestJS" }
248
247
  ],
249
248
  initialValue: "none"
250
249
  })
@@ -261,7 +260,7 @@ async function doInit(options) {
261
260
  const testing = options.ci ? options.testing : group2.testing ?? "jest";
262
261
  const deployment = options.ci ? options.deployment : group2.deployment ?? "none";
263
262
  const nestDiOnly = options.ci ? options.nestDiOnly : group2.nestDiOnly ?? false;
264
- const deploymentModule = deployment === "standalone" ? templates.deploymentStandalone : deployment === "custom-server" ? templates.deploymentCustomServer : deployment === "spa" ? templates.deploymentSpa : deployment === "vercel" ? templates.deploymentVercel : null;
263
+ const deploymentModule = deployment === "standalone" ? templates.deploymentStandalone : deployment === "custom-server" ? templates.deploymentCustomServer : deployment === "spa" ? templates.deploymentSpa : null;
265
264
  const allModules = [
266
265
  templates.root,
267
266
  templates.web,
@@ -333,7 +332,7 @@ async function doInit(options) {
333
332
  }
334
333
  }
335
334
  var program = new Command();
336
- program.name("create-newt-app").version(package_default.version).description("Create a new newt-app monorepo").argument("[name]").option("-ni, --no-install", "Skip pnpm install", true).option("-ng, --no-git", "Skip git initialization", true).option("--ci", "Non-interactive mode", false).option("--shadcn", "Include shadcn/ui (used with --ci)", false).option("--testing <framework>", "Testing framework: vitest or jest (used with --ci)", "jest").option("--deployment <strategy>", "Deployment extras: standalone, custom-server, spa, vercel (used with --ci)", "none").option("--nest-di-only", "Use NestJS for dependency injection only (used with --ci)", false).action(
335
+ program.name("create-newt-app").version(package_default.version).description("Create a new newt-app monorepo").argument("[name]").option("-ni, --no-install", "Skip pnpm install", true).option("-ng, --no-git", "Skip git initialization", true).option("--ci", "Non-interactive mode", false).option("--shadcn", "Include shadcn/ui (used with --ci)", false).option("--testing <framework>", "Testing framework: vitest or jest (used with --ci)", "jest").option("--deployment <strategy>", "Deployment extras: standalone, custom-server, spa (used with --ci)", "none").option("--nest-di-only", "Use NestJS for dependency injection only (used with --ci)", false).action(
337
336
  async (name, options) => {
338
337
  intro(`Create a ${chalk.blue("newt")} app.`);
339
338
  await doInit({
@@ -343,7 +342,7 @@ program.name("create-newt-app").version(package_default.version).description("Cr
343
342
  ci: options.ci,
344
343
  shadcn: options.shadcn,
345
344
  testing: options.testing === "vitest" ? "vitest" : "jest",
346
- deployment: ["standalone", "custom-server", "spa", "vercel"].includes(options.deployment) ? options.deployment : "none",
345
+ deployment: ["standalone", "custom-server", "spa"].includes(options.deployment) ? options.deployment : "none",
347
346
  nestDiOnly: options.nestDiOnly
348
347
  });
349
348
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-newt-app",
3
- "version": "0.13.2",
3
+ "version": "0.14.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "bin": {
@@ -16,7 +16,7 @@
16
16
  "ejs": "^3.1.10",
17
17
  "execa": "^9.6.0",
18
18
  "zod": "^3.25.76",
19
- "@newt-app/templates": "0.13.2"
19
+ "@newt-app/templates": "0.14.1"
20
20
  },
21
21
  "devDependencies": {
22
22
  "@types/ejs": "^3.1.5",