mirror of
https://github.com/forketyfork/obsidian-food-tracker.git
synced 2026-07-22 13:00:26 +00:00
- Update flake.nix to use nodejs_24 instead of nodejs_20 - Update GitHub Actions workflows to use Node.js 24.x instead of 18.x - Ensures consistent Node.js version between local dev and CI environments
52 lines
No EOL
1.4 KiB
Nix
52 lines
No EOL
1.4 KiB
Nix
{
|
|
description = "Obsidian Food Tracker plugin development environment";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
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 = pkgs.mkShell {
|
|
buildInputs = with pkgs; [
|
|
# Node.js and package manager
|
|
nodejs_24
|
|
yarn
|
|
|
|
# Development tools
|
|
just
|
|
typescript
|
|
|
|
# Build tools
|
|
esbuild
|
|
|
|
# Optional tools
|
|
git
|
|
];
|
|
|
|
shellHook = ''
|
|
echo "🚀 Obsidian Food Tracker development environment"
|
|
echo "📦 Node.js $(node --version)"
|
|
echo "🧶 Yarn $(yarn --version)"
|
|
echo "⚡ TypeScript $(tsc --version)"
|
|
echo ""
|
|
echo "Available commands:"
|
|
echo " just clean - Clean build artifacts"
|
|
echo " just build - Full production build"
|
|
echo " just test - Run tests"
|
|
echo " just lint - Run linter"
|
|
echo ""
|
|
echo "Run 'just --list' for all available commands"
|
|
'';
|
|
};
|
|
|
|
# Optional: Add formatter for nix files
|
|
formatter = pkgs.nixpkgs-fmt;
|
|
}
|
|
);
|
|
} |