Skip to content

Commit

Permalink
Merge pull request #196 from gethinode/develop
Browse files Browse the repository at this point in the history
Support Dart Sass
  • Loading branch information
markdumay authored Sep 7, 2023
2 parents 04030ce + bfd02f9 commit c7b459a
Show file tree
Hide file tree
Showing 7 changed files with 8,819 additions and 6,948 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/lint-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,17 @@ jobs:
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Install Dart Sass
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
sudo snap install dart-sass
elif [ "$RUNNER_OS" == "macOS" ]; then
brew install sass/sass/sass
elif [ "$RUNNER_OS" == "Windows" ]; then
choco install sass
fi
shell: bash

# [24/AUG/23] Adjusted from npm ci for non-macOS to prevent EBADPLATFORM error due to fsevents
- name: Perform clean install of npm
run: |
Expand Down
2 changes: 2 additions & 0 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
[main.externalLinks]
cue = false
tab = false
[main.build]
transpiler = "libsass"

[modules]
core = ["bootstrap", "flexsearch", "fontawesome"]
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/gethinode/template
go 1.20

require (
github.com/gethinode/hinode v0.19.0 // indirect
github.com/gethinode/hinode v0.20.0 // indirect
github.com/nextapps-de/flexsearch v0.0.0-20230711092928-1243fd883ec3 // indirect
github.com/twbs/bootstrap v5.3.0+incompatible // indirect
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ github.com/gethinode/hinode v0.18.5 h1:6oKtmz2EPfOMY6sy15GWDIJcpjlsswPl78ZqwsCvc
github.com/gethinode/hinode v0.18.5/go.mod h1:TcI/H42BxRS4UNqz9/bC246sYC6z3Ssfv0ZuOF5wEpM=
github.com/gethinode/hinode v0.18.6 h1:AWzrwNOEtRIs67FjNCmeN4yL/bXf1FbCTAqHg2FfQiQ=
github.com/gethinode/hinode v0.18.6/go.mod h1:TcI/H42BxRS4UNqz9/bC246sYC6z3Ssfv0ZuOF5wEpM=
github.com/gethinode/hinode v0.20.0 h1:A6lxLIdKUMHOFWz9D7iQaSpqcMlKDPK1e/Cs3/SV1P8=
github.com/gethinode/hinode v0.20.0/go.mod h1:/q/TH3TlGSzBHunDb3TdrpO7Zrckr0CeLay/Qpj9uWQ=
github.com/gethinode/hinode v0.18.7 h1:I2MwE1K2E7TjTiPaHUNGNLrD0FGxN0oS3svMlluGrmE=
github.com/gethinode/hinode v0.18.7/go.mod h1:TcI/H42BxRS4UNqz9/bC246sYC6z3Ssfv0ZuOF5wEpM=
github.com/gethinode/hinode v0.19.0 h1:7QDAA0RGUvFJMlmzoBfUy8b27yI5+84xPBc5/1qfWrU=
Expand Down
30 changes: 20 additions & 10 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
[build]
publish = "public"
functions = "functions"

[build.environment]
NODE_VERSION = "18.16.1"
NPM_VERSION = "9.5.1"

[context.production]
command = "npm run build"

[context.production.environment]
HUGO_VERSION = "0.110.0"
[build.environment]
DART_SASS_VERSION = "1.66.1"
HUGO_VERSION = "0.118.2"
HUGO_ENV = "production"
HUGO_ENABLEGITINFO = "true"
NODE_VERSION = "18.17.1"
NPM_VERSION = "9.6.7"

[[headers]]
for = "/*"
Expand Down Expand Up @@ -78,4 +74,18 @@
targetPort = 1313
port = 8888
publish = "public"
autoLaunch = false
autoLaunch = false

[[plugins]]
package = "@gethinode/netlify-plugin-dartsass"

[[plugins]]
package = "netlify-plugin-hugo-cache-resources"
[plugins.inputs]
# Relative path to source directory in case you use Hugo's "--s" option
# srcdir = ""

[[plugins]]
package = "@netlify/plugin-lighthouse"
# [plugins.inputs]
# output_path = "reports/lighthouse.html"
Loading

0 comments on commit c7b459a

Please sign in to comment.