diff --git a/build-and-run.sh b/build-and-run.sh new file mode 100755 index 0000000..43afb07 --- /dev/null +++ b/build-and-run.sh @@ -0,0 +1,5 @@ +#!/bin/bash +pnpm install +pnpm build +cd apps/web +pnpm preview \ No newline at end of file diff --git a/flake.lock b/flake.lock new file mode 100644 index 0000000..2972d8a --- /dev/null +++ b/flake.lock @@ -0,0 +1,27 @@ +{ + "nodes": { + "nixpkgs": { + "locked": { + "lastModified": 1768127708, + "narHash": "sha256-1Sm77VfZh3mU0F5OqKABNLWxOuDeHIlcFjsXeeiPazs=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "ffbc9f8cbaacfb331b6017d5a5abb21a492c9a38", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "root": { + "inputs": { + "nixpkgs": "nixpkgs" + } + } + }, + "root": "root", + "version": 7 +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..dca1873 --- /dev/null +++ b/flake.nix @@ -0,0 +1,31 @@ +{ + description = "Helius Airship PNPM dev shell"; + + inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; + + outputs = { self, nixpkgs, ... }: + let + system = "x86_64-linux"; # adjust if on macOS + pkgs = import nixpkgs { inherit system; }; + in + { + # This is the key: devShells..default + devShells = { + "${system}" = { + default = pkgs.mkShell { + buildInputs = [ + pkgs.nodejs + pkgs.pnpm + pkgs.git + ]; + + shellHook = '' + echo "Welcome to Helius Airship PNPM dev shell!" + echo "Node version: $(node -v)" + echo "PNPM version: $(pnpm -v)" + ''; + }; + }; + }; + }; +}