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
|
# macOS-specific files
|
||||||
.DS_Store
|
.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 { rehypeHeadingIds } from "@astrojs/markdown-remark";
|
||||||
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
import rehypeAutolinkHeadings from "rehype-autolink-headings";
|
||||||
import svelte from "@astrojs/svelte";
|
import svelte from "@astrojs/svelte";
|
||||||
@@ -8,8 +8,7 @@ export default defineConfig({
|
|||||||
site: "https://aurora.thilohohlt.com",
|
site: "https://aurora.thilohohlt.com",
|
||||||
compressHTML: true,
|
compressHTML: true,
|
||||||
experimental: {
|
experimental: {
|
||||||
assets: true,
|
assets: true
|
||||||
inlineStylesheets: "auto",
|
|
||||||
},
|
},
|
||||||
scopedStyleStrategy: "class",
|
scopedStyleStrategy: "class",
|
||||||
markdown: {
|
markdown: {
|
||||||
@@ -26,8 +25,5 @@ export default defineConfig({
|
|||||||
],
|
],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
image: {
|
|
||||||
service: sharpImageService(),
|
|
||||||
},
|
|
||||||
integrations: [svelte()],
|
integrations: [svelte()],
|
||||||
});
|
});
|
||||||
|
|||||||
16
flake.nix
16
flake.nix
@@ -20,11 +20,19 @@
|
|||||||
});
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells = forAllSystems ({ pkgs }: {
|
packages = forAllSystems ({ pkgs }: {
|
||||||
default = pkgs.mkShell {
|
default = pkgs.buildNpmPackage {
|
||||||
packages = with pkgs; [
|
name = "build-aurora-blog";
|
||||||
nodejs # Node.js, plus npm, npx, and corepack
|
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",
|
"astro": "^2.5.3",
|
||||||
"open-props": "^1.5.8",
|
"open-props": "^1.5.8",
|
||||||
"rehype-autolink-headings": "^6.1.1",
|
"rehype-autolink-headings": "^6.1.1",
|
||||||
"sharp": "^0.32.1",
|
|
||||||
"svelte": "^3.59.1"
|
"svelte": "^3.59.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user