From e907de4a3730b6568c85459816fa20a03070770f Mon Sep 17 00:00:00 2001 From: jasmine Date: Fri, 14 Nov 2025 12:26:43 +0800 Subject: [PATCH] Clean up template configurations for initialized projects Removed unnecessary packages and template metadata from initialized projects: - Removed TypeScript from vanilla template (not used) - Removed template.nix from both templates (only needed in repo, not projects) - Updated flake.nix in templates to only import devshell.nix Templates now provide minimal, focused development environments. --- templates/nextjs/flake.nix | 1 - templates/nextjs/nix/modules/template.nix | 41 ---------------------- templates/vanilla/flake.nix | 1 - templates/vanilla/nix/modules/devshell.nix | 1 - templates/vanilla/nix/modules/template.nix | 41 ---------------------- 5 files changed, 85 deletions(-) delete mode 100644 templates/nextjs/nix/modules/template.nix delete mode 100644 templates/vanilla/nix/modules/template.nix diff --git a/templates/nextjs/flake.nix b/templates/nextjs/flake.nix index 3dde900..3185f24 100644 --- a/templates/nextjs/flake.nix +++ b/templates/nextjs/flake.nix @@ -12,7 +12,6 @@ systems = import inputs.systems; imports = [ ./nix/modules/devshell.nix - ./nix/modules/template.nix ]; }; } diff --git a/templates/nextjs/nix/modules/template.nix b/templates/nextjs/nix/modules/template.nix deleted file mode 100644 index a167e16..0000000 --- a/templates/nextjs/nix/modules/template.nix +++ /dev/null @@ -1,41 +0,0 @@ -{inputs, ...}: let - root = inputs.self; -in { - flake = rec { - templates = { - default = { - description = "Minimal JavaScript template with Vite and Bun"; - path = "${root}/vanilla"; - }; - - nextjs = { - description = "Next.js TypeScript template with App Router"; - path = "${root}/nextjs"; - }; - }; - - om.templates = { - default = { - template = templates.default; - params = [ - { - name = "package-name"; - description = "Name of the JavaScript package"; - placeholder = "my-project"; - } - ]; - }; - - nextjs = { - template = templates.nextjs; - params = [ - { - name = "package-name"; - description = "Name of the Next.js project"; - placeholder = "my-nextjs-app"; - } - ]; - }; - }; - }; -} diff --git a/templates/vanilla/flake.nix b/templates/vanilla/flake.nix index 3dde900..3185f24 100644 --- a/templates/vanilla/flake.nix +++ b/templates/vanilla/flake.nix @@ -12,7 +12,6 @@ systems = import inputs.systems; imports = [ ./nix/modules/devshell.nix - ./nix/modules/template.nix ]; }; } diff --git a/templates/vanilla/nix/modules/devshell.nix b/templates/vanilla/nix/modules/devshell.nix index ca858e0..6b88beb 100644 --- a/templates/vanilla/nix/modules/devshell.nix +++ b/templates/vanilla/nix/modules/devshell.nix @@ -22,7 +22,6 @@ in { [ bun nodejs - typescript eslint just prettierd diff --git a/templates/vanilla/nix/modules/template.nix b/templates/vanilla/nix/modules/template.nix deleted file mode 100644 index a167e16..0000000 --- a/templates/vanilla/nix/modules/template.nix +++ /dev/null @@ -1,41 +0,0 @@ -{inputs, ...}: let - root = inputs.self; -in { - flake = rec { - templates = { - default = { - description = "Minimal JavaScript template with Vite and Bun"; - path = "${root}/vanilla"; - }; - - nextjs = { - description = "Next.js TypeScript template with App Router"; - path = "${root}/nextjs"; - }; - }; - - om.templates = { - default = { - template = templates.default; - params = [ - { - name = "package-name"; - description = "Name of the JavaScript package"; - placeholder = "my-project"; - } - ]; - }; - - nextjs = { - template = templates.nextjs; - params = [ - { - name = "package-name"; - description = "Name of the Next.js project"; - placeholder = "my-nextjs-app"; - } - ]; - }; - }; - }; -}