mirror of
https://github.com/thiloho/aurora.git
synced 2025-11-22 03:21:35 +01:00
Add nix build script to generate static files
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -19,3 +19,6 @@ pnpm-debug.log*
|
||||
|
||||
# macOS-specific files
|
||||
.DS_Store
|
||||
|
||||
result
|
||||
result-*
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { defineConfig, sharpImageService } from "astro/config";
|
||||
import { defineConfig } from "astro/config";
|
||||
import { rehypeHeadingIds } from "@astrojs/markdown-remark";
|
||||
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
||||
import svelte from "@astrojs/svelte";
|
||||
@@ -8,8 +8,7 @@ export default defineConfig({
|
||||
site: "https://aurora.thilohohlt.com",
|
||||
compressHTML: true,
|
||||
experimental: {
|
||||
assets: true,
|
||||
inlineStylesheets: "auto",
|
||||
assets: true
|
||||
},
|
||||
scopedStyleStrategy: "class",
|
||||
markdown: {
|
||||
@@ -26,8 +25,5 @@ export default defineConfig({
|
||||
],
|
||||
],
|
||||
},
|
||||
image: {
|
||||
service: sharpImageService(),
|
||||
},
|
||||
integrations: [svelte()],
|
||||
});
|
||||
|
||||
16
flake.nix
16
flake.nix
@@ -20,11 +20,19 @@
|
||||
});
|
||||
in
|
||||
{
|
||||
devShells = forAllSystems ({ pkgs }: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
nodejs # Node.js, plus npm, npx, and corepack
|
||||
packages = forAllSystems ({ pkgs }: {
|
||||
default = pkgs.buildNpmPackage {
|
||||
name = "build-aurora-blog";
|
||||
buildInputs = with pkgs; [
|
||||
nodejs_18
|
||||
];
|
||||
src = ./.;
|
||||
npmDepsHash = "sha256-K30UsMZ508XT1x/1eXY/xg7dfhLm55pdi9vOdDQHtWg=";
|
||||
npmBuild = "npm run build";
|
||||
installPhase = ''
|
||||
mkdir $out
|
||||
cp -r dist/* $out
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
1742
package-lock.json
generated
1742
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,6 @@
|
||||
"astro": "^2.5.3",
|
||||
"open-props": "^1.5.8",
|
||||
"rehype-autolink-headings": "^6.1.1",
|
||||
"sharp": "^0.32.1",
|
||||
"svelte": "^3.59.1"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user