create-newt-app 0.36.0 → 0.36.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 +2 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@
|
|
|
17
17
|
npm create newt-app
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
+
<img src="https://raw.githubusercontent.com/zeevo/newt-app/main/.github/assets/demo.gif" alt="npm create newt-app walking through its prompts" width="700">
|
|
21
|
+
|
|
20
22
|
Next.js and NestJS in one production-grade monorepo: a real backend, auth, and a database, curated so you're not deleting half of it on day one.
|
|
21
23
|
|
|
22
24
|
## Options
|
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { existsSync, promises, readdirSync } from "fs";
|
|
|
11
11
|
import path from "path";
|
|
12
12
|
import https from "node:https";
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.36.
|
|
14
|
+
var version = "0.36.1";
|
|
15
15
|
var engines = { "node": ">=24.0.0" };
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/templates/root/index.ts
|
|
@@ -14493,7 +14493,7 @@ async function doInit(options) {
|
|
|
14493
14493
|
}
|
|
14494
14494
|
}
|
|
14495
14495
|
const program = new Command();
|
|
14496
|
-
program.name("create-newt-app").version(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("--shadcn", "Include shadcn/ui", false).option("--stylex", "Use StyleX instead of Tailwind", false).option("--testing <framework>", "Testing framework: vitest or jest", "jest").option("--database <database>", "Database: sqlite or postgres", "sqlite").option("--linter <linter>", "Linter: eslint or oxc", "eslint").option("--deployment <strategy>", "Deployment: none, standalone, or spa", "none").option("--nest <mode>", "NestJS: on, off, or di-only", "on").option("--include-example", "Include the todo example", false).option("--extras <list>", "Extras, comma-separated: anti-slop", "").action(async (name, options, command) => {
|
|
14496
|
+
program.name("create-newt-app").version(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("-y, --yes", "Skip prompts and use the defaults", false).option("--shadcn", "Include shadcn/ui", false).option("--stylex", "Use StyleX instead of Tailwind", false).option("--testing <framework>", "Testing framework: vitest or jest", "jest").option("--database <database>", "Database: sqlite or postgres", "sqlite").option("--linter <linter>", "Linter: eslint or oxc", "eslint").option("--deployment <strategy>", "Deployment: none, standalone, or spa", "none").option("--nest <mode>", "NestJS: on, off, or di-only", "on").option("--include-example", "Include the todo example", false).option("--extras <list>", "Extras, comma-separated: anti-slop", "").action(async (name, options, command) => {
|
|
14497
14497
|
intro(`Create a ${chalk.blue("newt")} app.`);
|
|
14498
14498
|
const explicitFlags = Object.entries({
|
|
14499
14499
|
shadcn: "--shadcn",
|
|
@@ -14506,7 +14506,7 @@ program.name("create-newt-app").version(version).description("Create a new newt-
|
|
|
14506
14506
|
includeExample: "--include-example",
|
|
14507
14507
|
extras: "--extras"
|
|
14508
14508
|
}).filter(([option]) => command.getOptionValueSource(option) === "cli").map(([, flag]) => flag);
|
|
14509
|
-
const nonInteractive = explicitFlags.length > 0;
|
|
14509
|
+
const nonInteractive = options.yes || explicitFlags.length > 0;
|
|
14510
14510
|
const extras = options.extras.split(",").map((extra) => extra.trim()).filter(Boolean);
|
|
14511
14511
|
const invalid = [
|
|
14512
14512
|
{
|