From 7923514c5cc3c608c8e73cfd9af334ac84fc6158 Mon Sep 17 00:00:00 2001 From: Gregor Lohaus Date: Sun, 24 May 2026 16:26:36 +0200 Subject: [PATCH] no js dev process for web frontend none --- bun.lock | 4 ++-- index.ts | 4 +++- package.json | 4 ++-- template/devenv.nix | 2 ++ 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/bun.lock b/bun.lock index c32184e..ea2fa97 100644 --- a/bun.lock +++ b/bun.lock @@ -6,7 +6,7 @@ "name": "glstack", "dependencies": { "@clack/prompts": "^1.2.0", - "@gregorlohaus/tdir": "^0.1.4", + "@gregorlohaus/tdir": "^0.2.0", "zod": "^4.3.6", }, "devDependencies": { @@ -22,7 +22,7 @@ "@clack/prompts": ["@clack/prompts@1.2.0", "", { "dependencies": { "@clack/core": "1.2.0", "fast-string-width": "^1.1.0", "fast-wrap-ansi": "^0.1.3", "sisteransi": "^1.0.5" } }, "sha512-4jmztR9fMqPMjz6H/UZXj0zEmE43ha1euENwkckKKel4XpSfokExPo5AiVStdHSAlHekz4d0CA/r45Ok1E4D3w=="], - "@gregorlohaus/tdir": ["@gregorlohaus/tdir@0.1.4", "", { "peerDependencies": { "zod": "^4" }, "bin": { "tdir": "dist/cli.js" } }, "sha512-etrMNRSf04TIxj6qoKBTM+eLA/xmFN0yovFqE5aJLUdq653ceRM9uWW7XB7iSHs89STQ442Q0ouTMaTGxrkIUg=="], + "@gregorlohaus/tdir": ["@gregorlohaus/tdir@0.2.0", "", { "peerDependencies": { "zod": "^4" }, "bin": { "tdir": "dist/cli.js" } }, "sha512-LwISQC7iARezu7SQZJk9TV8Sqp8I/fVMssH18lWL1KD/ETpWp2LwwTzm/j9aWcs+Eo5OBQctbqFTafo9Nfue+A=="], "@types/bun": ["@types/bun@1.3.11", "", { "dependencies": { "bun-types": "1.3.11" } }, "sha512-5vPne5QvtpjGpsGYXiFyycfpDF2ECyPcTSsFBMa0fraoxiQyMJ3SmuQIGhzPg2WJuWxVBoxWJ2kClYTcw/4fAg=="], diff --git a/index.ts b/index.ts index e6ab692..1638481 100644 --- a/index.ts +++ b/index.ts @@ -62,7 +62,9 @@ const s = p.spinner(); s.start("Installing dependencies"); await Bun.$`bun install`.cwd(path.join(destDir)).quiet(); await Bun.$`bun install`.cwd(path.join(destDir,'packages','rpc')).quiet(); -await Bun.$`bun install`.cwd(path.join(destDir,'apps','web')).quiet(); +if (project.frontend !== "none") { + await Bun.$`bun install`.cwd(path.join(destDir,'apps','web')).quiet(); +} s.stop("Dependencies installed."); p.outro("You're all set!"); diff --git a/package.json b/package.json index f13f337..885695f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "create-glstack", - "version": "0.0.6", + "version": "0.0.7", "type": "module", "license": "MIT", "bin": { @@ -22,7 +22,7 @@ }, "dependencies": { "@clack/prompts": "^1.2.0", - "@gregorlohaus/tdir": "^0.1.4", + "@gregorlohaus/tdir": "^0.2.0", "zod": "^4.3.6" } } diff --git a/template/devenv.nix b/template/devenv.nix index 53de058..936f7d8 100644 --- a/template/devenv.nix +++ b/template/devenv.nix @@ -49,10 +49,12 @@ cwd = "./services/api"; after= ["devenv:processes:air@started"]; }; + <@if(neq(context.project.frontend,"none"))> bundev = { exec = "bun dev"; cwd = "./apps/web"; after= ["devenv:processes:air@started"]; }; + <@endif> }; }