mirror of
https://github.com/testthedocs/awesome-docs.git
synced 2026-04-27 20:27:40 -05:00
Add base conf for v2
This commit is contained in:
19
Taskfile.yml
Normal file
19
Taskfile.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
# https://taskfile.dev
|
||||
|
||||
version: '3'
|
||||
|
||||
vars:
|
||||
GREETING: Hello, World!
|
||||
|
||||
tasks:
|
||||
default:
|
||||
cmds:
|
||||
- echo "Documentation Tool Kit"
|
||||
- task -l
|
||||
silent: true
|
||||
|
||||
nix:update:
|
||||
desc: "Updating flake and its packages"
|
||||
cmds:
|
||||
- echo "Updating flake"
|
||||
- nix flake update
|
||||
28
flake.nix
Normal file
28
flake.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
description = "A Nix-flake-based Node.js development environment";
|
||||
|
||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = { self, nixpkgs }:
|
||||
let
|
||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
});
|
||||
in
|
||||
{
|
||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
nodejs_22
|
||||
(yarn.override { nodejs = nodejs_22; })
|
||||
vale
|
||||
];
|
||||
shellHook = ''
|
||||
echo "Node: `${pkgs.nodejs}/bin/node --version`"
|
||||
echo "Vale: `vale -v | awk '{print $3}'`"
|
||||
'';
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user