feat: add support for Astro projects

This commit is contained in:
Oliver Davies 2023-09-24 18:10:24 +01:00
parent 022315edd3
commit cd4355bbc1
6 changed files with 75 additions and 4 deletions

View file

@ -0,0 +1,3 @@
# {{ managedText|raw }}
use flake

View file

@ -0,0 +1,25 @@
# {{ managedText|raw }}
{
inputs = {
devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = inputs@{ flake-parts, ... }:
flake-parts.lib.mkFlake { inherit inputs; } {
imports = [ inputs.devshell.flakeModule ];
systems = [ "x86_64-linux" ];
perSystem = { config, self', inputs', pkgs, system, ... }: {
devshells.default = {
packages = with pkgs; [
{% for package in flake.devshell.packages %}
"{{ package }}"
{% endfor %}
];
};
};
};
}

View file

@ -0,0 +1,12 @@
// {{ managedText }}
{
"extends": "astro/tsconfigs/strict",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
},
"strictNullChecks": true
}
}