refactor(astro): move projects into a language
...directory
This commit is contained in:
parent
cd4355bbc1
commit
f5803212e5
4 changed files with 3 additions and 3 deletions
3
templates/astro/typescript/.envrc.twig
Normal file
3
templates/astro/typescript/.envrc.twig
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# {{ managedText|raw }}
|
||||
|
||||
use flake
|
||||
25
templates/astro/typescript/flake.nix.twig
Normal file
25
templates/astro/typescript/flake.nix.twig
Normal 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 %}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
12
templates/astro/typescript/tsconfig.json.twig
Normal file
12
templates/astro/typescript/tsconfig.json.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
// {{ managedText }}
|
||||
|
||||
{
|
||||
"extends": "astro/tsconfigs/strict",
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"~/*": ["src/*"]
|
||||
},
|
||||
"strictNullChecks": true
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue