From eafce894f6e09ccf8bb0def560477b98959a7fc7 Mon Sep 17 00:00:00 2001 From: Somrat <58769763+tfsomrat@users.noreply.github.com> Date: Sun, 16 Feb 2025 12:19:36 +0600 Subject: [PATCH] update theme-setup and project-setup script --- exampleSite/go.mod | 2 +- {tailwind-plugin => exampleSite/tailwind-plugin}/tw-bs-grid.js | 0 {tailwind-plugin => exampleSite/tailwind-plugin}/tw-theme.js | 0 scripts/projectSetup.js | 2 +- scripts/themeSetup.js | 1 + 5 files changed, 3 insertions(+), 2 deletions(-) rename {tailwind-plugin => exampleSite/tailwind-plugin}/tw-bs-grid.js (100%) rename {tailwind-plugin => exampleSite/tailwind-plugin}/tw-theme.js (100%) diff --git a/exampleSite/go.mod b/exampleSite/go.mod index b4fb030..7bd865e 100644 --- a/exampleSite/go.mod +++ b/exampleSite/go.mod @@ -27,5 +27,5 @@ require ( github.com/gethugothemes/hugo-modules/table-of-contents v0.0.0-20250213104422-d6c69545f20a // indirect github.com/gethugothemes/hugo-modules/videos v0.0.0-20250213104422-d6c69545f20a // indirect github.com/hugomods/mermaid v0.1.4 // indirect - github.com/zeon-studio/hugoplate v0.0.0-20250205092428-3b220f635d99 // indirect + github.com/zeon-studio/hugoplate v0.0.0-20250216060719-02085ffbe054 // indirect ) diff --git a/tailwind-plugin/tw-bs-grid.js b/exampleSite/tailwind-plugin/tw-bs-grid.js similarity index 100% rename from tailwind-plugin/tw-bs-grid.js rename to exampleSite/tailwind-plugin/tw-bs-grid.js diff --git a/tailwind-plugin/tw-theme.js b/exampleSite/tailwind-plugin/tw-theme.js similarity index 100% rename from tailwind-plugin/tw-theme.js rename to exampleSite/tailwind-plugin/tw-theme.js diff --git a/scripts/projectSetup.js b/scripts/projectSetup.js index d2779b0..cbd7e4b 100644 --- a/scripts/projectSetup.js +++ b/scripts/projectSetup.js @@ -94,7 +94,7 @@ const setupProject = () => { }, ].forEach(toggleComment); - const folderList = ["layouts", "assets", "static"]; + const folderList = ["layouts", "assets", "static", "tailwind-plugin"]; const folderName = getFolderName(rootFolder); const newFolderName = createNewFolder( path.join(rootFolder, "themes"), diff --git a/scripts/themeSetup.js b/scripts/themeSetup.js index 59efe8c..1789b6f 100644 --- a/scripts/themeSetup.js +++ b/scripts/themeSetup.js @@ -97,6 +97,7 @@ const setupTheme = () => { "content", "i18n", "static", + "tailwind-plugin", ]; const folder = createNewFolder(rootFolder, "exampleSite");