Skip to content

Commit

Permalink
chore: add flake with node + pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
steinerkelvin committed Jun 26, 2024
1 parent 8094d5a commit 0fb490c
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 9 deletions.
1 change: 1 addition & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use flake
16 changes: 8 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
/.direnv/

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# dependencies
node_modules
Expand All @@ -23,13 +30,6 @@ npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# turbo
.turbo

Expand Down
61 changes: 61 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
devShell = pkgs.mkShell {
buildInputs = [
pkgs.nodejs_18
pkgs.pnpm
];
};
}
);
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
"typescript": "^5.4.5"
},
"prettier": "@commune-ts/prettier-config"
}
}

0 comments on commit 0fb490c

Please sign in to comment.