1
Fork 0

Compare commits

...

2 Commits

Author SHA1 Message Date
Bauke e0c9f67cc3
Update dependencies and fix linting issues. 2024-02-25 12:42:15 +01:00
Bauke 997cd0ba31
Add Nix flake and direnv files. 2024-02-25 12:37:50 +01:00
7 changed files with 99 additions and 14 deletions

3
.envrc Normal file
View File

@ -0,0 +1,3 @@
#!/usr/bin/env bash
use flake

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
.direnv/
.netlify/
.vscode/
node_modules/

View File

@ -1,5 +1,4 @@
import path from "node:path";
// eslint-disable-next-line n/file-extension-in-import
import {defineConfig} from "astro/config";
import mdxIntegration from "@astrojs/mdx";
import preactIntegration from "@astrojs/preact";

59
flake.lock Normal file
View File

@ -0,0 +1,59 @@
{
"nodes": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1705309234,
"narHash": "sha256-uNRRNRKmJyCRC/8y1RqBkqWBLM034y4qN7EprSdmgyA=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "1ef2e671c3b0c19053962c07dbda38332dcebf26",
"type": "github"
},
"original": {
"owner": "numtide",
"repo": "flake-utils",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1708751719,
"narHash": "sha256-0uWOKSpXJXmXswOvDM5Vk3blB74apFB6rNGWV5IjoN0=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "f63ce824cd2f036216eb5f637dfef31e1a03ee89",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"root": {
"inputs": {
"flake-utils": "flake-utils",
"nixpkgs": "nixpkgs"
}
},
"systems": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
}
},
"root": "root",
"version": 7
}

13
flake.nix Normal file
View File

@ -0,0 +1,13 @@
{
inputs.flake-utils.url = "github:numtide/flake-utils";
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in
{
devShells.default = import ./shell.nix { inherit pkgs; };
}
);
}

View File

@ -1,21 +1,21 @@
{
"private": "true",
"dependencies": {
"@astrojs/mdx": "^0.19.7",
"@astrojs/preact": "^2.2.1",
"@bauke/eslint-config": "^0.1.4",
"@bauke/prettier-config": "^0.1.4",
"@bauke/stylelint-config": "^0.1.4",
"@types/node": "^20.4.2",
"astro": "^2.8.3",
"@astrojs/mdx": "^2.1.1",
"@astrojs/preact": "^3.1.1",
"@bauke/eslint-config": "^0.1.5",
"@bauke/prettier-config": "^0.1.5",
"@bauke/stylelint-config": "^0.1.5",
"@types/node": "^20.11.20",
"astro": "^4.4.4",
"modern-normalize": "^2.0.0",
"netlify-cli": "^15.9.0",
"preact": "^10.16.0",
"sass": "^1.63.6",
"stylelint": "^15.10.1",
"netlify-cli": "^17.17.0",
"preact": "^10.19.6",
"sass": "^1.71.1",
"stylelint": "^16.2.1",
"trash-cli": "^5.0.0",
"typescript": "^5.1.6",
"xo": "^0.55.0"
"typescript": "^5.3.3",
"xo": "^0.57.0"
},
"prettier": "@bauke/prettier-config",
"stylelint": {
@ -24,6 +24,9 @@
"xo": {
"extends": "@bauke/eslint-config",
"prettier": true,
"rules": {
"unicorn/prevent-abbreviations": "off"
},
"space": true
}
}

7
shell.nix Normal file
View File

@ -0,0 +1,7 @@
{ pkgs ? import <nixpkgs> { } }:
with pkgs;
mkShell rec {
packages = [ cargo-make nodejs nodePackages.pnpm ];
}