Skip to content

Commit

Permalink
[#188] Introduce yarn2nix based package definition for frontend
Browse files Browse the repository at this point in the history
This commit introduces a new yarn2nix based package definition for the
frontend application. By adding this Nix expression, developers can
easily incorporate the project into their nix-shell based environment.

Changes:
- Added a new file `govtool/frontend/default.nix` that defines the
  yarn2nix based package configuration for the frontend application
  "govtool-frontend". This file includes settings for the project name,
  source directory, package.json file, and yarn.lock file wrapped in the
  `mkYarnPackage` function, enabling developers to utilize the project
  seamlessly in their nix-shell based environments.
  • Loading branch information
placek committed Mar 7, 2024
1 parent 2fe023a commit e914dfb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions govtool/frontend/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ pkgs ? import <nixpkgs> {} }:
let
project = pkgs.mkYarnPackage {
name = "govtool-frontend";
src = ./.;
packageJSON = ./package.json;
yarnLock = ./yarn.lock;
};
in
project

0 comments on commit e914dfb

Please sign in to comment.