This is an automated email from the ASF dual-hosted git repository.

msciabarra pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/openserverless-site.git

commit 3af41659124490d04105d8e7a56eea07ccf786b8
Author: Michele Sciabarra <[email protected]>
AuthorDate: Sat Jul 6 14:58:06 2024 +0200

    fixing hugo with nix
---
 .envrc            | 1 +
 package.json      | 3 ++-
 postcss.config.js | 5 +++++
 shell.nix         | 5 +++++
 4 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/.envrc b/.envrc
index 1d953f4..ae47b0a 100644
--- a/.envrc
+++ b/.envrc
@@ -1 +1,2 @@
 use nix
+layout node
\ No newline at end of file
diff --git a/package.json b/package.json
index 086e640..d1dea1d 100644
--- a/package.json
+++ b/package.json
@@ -34,9 +34,10 @@
     "update:pkg:hugo": "npm install --save-dev --save-exact 
hugo-extended@latest"
   },
   "devDependencies": {
-    "autoprefixer": "^10.4.14",
+    "autoprefixer": "^10.4.19",
     "cross-env": "^7.0.3",
     "hugo-extended": "0.127.0",
+    "postcss": "^8.4.39",
     "postcss-cli": "^11.0.0"
   }
 }
diff --git a/postcss.config.js b/postcss.config.js
new file mode 100644
index 0000000..d535ecc
--- /dev/null
+++ b/postcss.config.js
@@ -0,0 +1,5 @@
+module.exports = {
+    plugins: [
+      require('autoprefixer')
+    ]
+  };
\ No newline at end of file
diff --git a/shell.nix b/shell.nix
index 1544707..41b3289 100644
--- a/shell.nix
+++ b/shell.nix
@@ -6,5 +6,10 @@ in
 pkgs.mkShellNoCC {
   packages = with pkgs; [
    hugo
+   go_1_21
+   nodejs_20
   ];
+  shellHook = ''
+    npm install -D postcss postcss-cli autoprefixer
+  '';
 }

Reply via email to