mirror of
https://github.com/corazoncp/corazoncp-landing.git
synced 2026-12-01 04:30:31 +00:00
- Add flake.nix with Node.js 22, pnpm, Biome, tea, and git in devShell - Add .envrc for seamless direnv integration - Add .github/workflows/deploy.yml & .gitea/workflows/deploy.yaml for automated Biome check, build validation, and Cloudflare Pages deployment to elcorazoncomoportal.com - Configure pre-commit hook with --no-errors-on-unmatched to allow non-web files (Nix/YAML) to pass cleanly Rationale: Guarantee complete reproducible development and continuous deployment pipeline across NixOS and CI runners.
31 lines
766 B
Nix
31 lines
766 B
Nix
{
|
|
description = "El Corazón como Portal: Public Landing Page (corazoncp-landing) — Node.js 22 + Vite+ + Biome devShell";
|
|
|
|
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 {
|
|
name = "corazoncp-landing-devshell";
|
|
packages = with pkgs; [
|
|
nodejs_22
|
|
pnpm
|
|
biome
|
|
tea
|
|
git
|
|
];
|
|
|
|
shellHook = ''
|
|
export PATH="$PWD/node_modules/.bin:$PATH"
|
|
'';
|
|
};
|
|
});
|
|
}
|