diff --git a/template/.gitattributes b/templates/default/.gitattributes similarity index 100% rename from template/.gitattributes rename to templates/default/.gitattributes diff --git a/template/.github/workflows/check-emacs-lisp.yml b/templates/default/.github/workflows/check-emacs-lisp.yml similarity index 100% rename from template/.github/workflows/check-emacs-lisp.yml rename to templates/default/.github/workflows/check-emacs-lisp.yml diff --git a/template/.gitignore b/templates/default/.gitignore similarity index 100% rename from template/.gitignore rename to templates/default/.gitignore diff --git a/template/flake.nix b/templates/default/flake.nix similarity index 100% rename from template/flake.nix rename to templates/default/flake.nix diff --git a/template/justfile b/templates/default/justfile similarity index 100% rename from template/justfile rename to templates/default/justfile -- 2.51.2 From 0a5b759c4851b6c45c1308bd0acfd34c4fca4bb4 Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sat, 20 Jul 2024 11:19:27 +0900 Subject: [PATCH 2/5] chore: Add flake.nix for templates --- templates/flake.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 templates/flake.nix diff --git a/templates/flake.nix b/templates/flake.nix new file mode 100644 index 0000000..42ae13d --- /dev/null +++ b/templates/flake.nix @@ -0,0 +1,14 @@ +{ + outputs = {...}: { + templates = { + default = { + path = ./default; + description = "Default boilerplate that can be added to an existing Emacs Lisp project"; + welcomeText = '' + Please adjust flake.nix, justfile and .github/workflows/check-emacs-lisp.yml + to your project. + ''; + }; + }; + }; +} -- 2.51.2 From 789d0db0c91d6caa1f91442fbd8e38e39bed1cff Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sat, 20 Jul 2024 11:19:59 +0900 Subject: [PATCH 3/5] docs: Update on the template --- README.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.org b/README.org index 229b3d8..6cdfea3 100644 --- a/README.org +++ b/README.org @@ -69,7 +69,7 @@ With this template, you can get started with Rice just by editing parameters. Using the template, you can add the configuration files to your existing project by running the following command: #+begin_src sh - nix flake init -t "github:emacs-twist/rice-config?dir=template" + nix flake init -t "github:emacs-twist/rice-config?dir=templates" #+end_src Because of the ~?~ character, you probably have to quote the URL, though it depends on your shell. -- 2.51.2 From d21dcd1afd5feccb606dcd81db3e66d313957296 Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sat, 20 Jul 2024 11:22:21 +0900 Subject: [PATCH 4/5] ci: Update on the template location --- .github/workflows/check-template.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-template.yml b/.github/workflows/check-template.yml index 4ee9f5b..01cf4d6 100644 --- a/.github/workflows/check-template.yml +++ b/.github/workflows/check-template.yml @@ -2,7 +2,7 @@ name: Check template on: push: paths: - - template/** + - templates/default/** workflow_dispatch: jobs: check: @@ -13,5 +13,5 @@ jobs: - name: Install just run: nix profile install nixpkgs#just - name: Lint justfile - working-directory: template + working-directory: templates/default run: just -l -- 2.51.2 From 5308136df3333885ec87e500b71cee25bea94b9b Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sat, 20 Jul 2024 11:24:30 +0900 Subject: [PATCH 5/5] ci: Add paths-ignore for templates/** --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3349026..a1f15f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,10 @@ name: CI on: workflow_dispatch: pull_request: + paths-ignore: + - '*.md' + - '*README.*' + - 'templates/**' push: branches: master @@ -10,6 +14,7 @@ on: - '*.md' - '*README.*' + - 'templates/**' jobs: check-flake: runs-on: ubuntu-latest