Skip to content

Commit

Permalink
update package json and scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tfsomrat committed Mar 9, 2024
1 parent b054bfa commit 0ca07cd
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ permissions:
# Environment variables available to all jobs and steps in this workflow
env:
HUGO_ENV: production
HUGO_VERSION: "0.115.1"
GO_VERSION: "1.20.5"
HUGO_VERSION: "0.123.8"
GO_VERSION: "1.22.0"
NODE_VERSION: "18.15.0"
TINA_CLIENT_ID: ${{ vars.TINA_CLIENT_ID }}
TINA_TOKEN: ${{ vars.TINA_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ stages:

variables:
HUGO_ENV: production
HUGO_VERSION: "0.115.1"
GO_VERSION: "1.20.5"
HUGO_VERSION: "0.123.8"
GO_VERSION: "1.22.0"
NODE_VERSION: "18.16.1"

cache:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


<p align=center>
<a href="https://github.com/gohugoio/hugo/releases/tag/v0.115.1" alt="Contributors">
<img src="https://img.shields.io/static/v1?label=min-HUGO-version&message=0.115.1&color=f00&logo=hugo" />
<a href="https://github.com/gohugoio/hugo/releases/tag/v0.123.8" alt="Contributors">
<img src="https://img.shields.io/static/v1?label=min-HUGO-version&message=0.123.8&color=f00&logo=hugo" />
</a>

<a href="https://github.com/themefisher/dot-hugo/blob/master/LICENSE">
Expand Down
4 changes: 2 additions & 2 deletions exampleSite/config/_default/module.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[hugoVersion]
extended = true
min = "0.115.1"
min = "0.123.8"

[[imports]]
path = "github.com/gohugoio/hugo-mod-bootstrap-scss/v5"
Expand Down Expand Up @@ -102,4 +102,4 @@ path = "github.com/gethugothemes/hugo-modules/gzip-caching"
path = "github.com/gethugothemes/hugo-modules/adsense"

[[imports]]
path = "github.com/gethugothemes/hugo-modules/videos"
path = "github.com/gethugothemes/hugo-modules/videos"
6 changes: 3 additions & 3 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ publish = "public"
command = "yarn project-setup && yarn build"

[build.environment]
HUGO_VERSION = "0.115.1"
GO_VERSION = "1.20.5"
HUGO_BASEURL = "/"
HUGO_VERSION = "0.123.8"
GO_VERSION = "1.22.0"
HUGO_BASEURL = "/"
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "dot-hugo",
"version": "2.6.0",
"license": "UNLICENSED",
"version": "3.0.0",
"license": "MIT",
"author": "gethugothemes",
"scripts": {
"dev": "hugo server",
"build": "hugo --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic",
"test": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify",
"dev:example": "cd exampleSite; hugo server --themesDir ../..",
"build:example": "cd exampleSite; hugo --themesDir ../.. --gc --minify --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --forceSyncStatic",
"test:example": "cd exampleSite; hugo server --themesDir ../.. --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --buildDrafts --buildExpired --buildFuture --watch --forceSyncStatic -e production --minify",
"build": "hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic",
"preview": "hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify",
"dev:example": "cd exampleSite; hugo server",
"build:example": "cd exampleSite; hugo --gc --minify --templateMetrics --templateMetricsHints --forceSyncStatic",
"preview:example": "cd exampleSite; hugo server --disableFastRender --navigateToChanged --templateMetrics --templateMetricsHints --watch --forceSyncStatic -e production --minify",
"update-modules": "node ./scripts/clearModules.js && hugo mod clean --all && hugo mod get -u ./... && hugo mod tidy",
"project-setup": "node ./scripts/projectSetup.js",
"theme-setup": "node ./scripts/themeSetup.js",
Expand Down
5 changes: 1 addition & 4 deletions scripts/projectSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ const fs = require("fs");
const path = require("path");

const getFolderName = (rootfolder) => {
const configPath = path.join(
rootfolder,
"exampleSite/config/_default/hugo.toml"
);
const configPath = path.join(rootfolder, "exampleSite/hugo.toml");
const getConfig = fs.readFileSync(configPath, "utf8");
const match = getConfig.match(/theme\s*=\s*\[?"([^"\]]+)"\]?/);
let selectedTheme = null;
Expand Down
5 changes: 1 addition & 4 deletions scripts/themeSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@ const deleteFolder = (folderPath) => {
};

const getFolderName = (rootfolder) => {
const configPath = path.join(
rootfolder,
"exampleSite/config/_default/hugo.toml"
);
const configPath = path.join(rootfolder, "exampleSite/hugo.toml");
const getConfig = fs.readFileSync(configPath, "utf8");
const match = getConfig.match(/theme\s*=\s*\[?"([^"\]]+)"\]?/);
let selectedTheme = null;
Expand Down
4 changes: 2 additions & 2 deletions vercel-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

# default versions
NODE_VERSION='18.16.1';
GO_VERSION='1.20.5';
HUGO_VERSION='0.115.1';
GO_VERSION='1.22.0';
HUGO_VERSION='0.123.8';

# install Node.js
# echo "Installing Node.js $NODE_VERSION..."
Expand Down

0 comments on commit 0ca07cd

Please sign in to comment.