From e914dfb7c457b41b36e4374a59f3d3f73c7f8687 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Placzy=C5=84ski?= Date: Thu, 7 Mar 2024 11:22:13 +0100 Subject: [PATCH] [#188] Introduce yarn2nix based package definition for frontend 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. --- govtool/frontend/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 govtool/frontend/default.nix diff --git a/govtool/frontend/default.nix b/govtool/frontend/default.nix new file mode 100644 index 000000000..e96a00e56 --- /dev/null +++ b/govtool/frontend/default.nix @@ -0,0 +1,10 @@ +{ pkgs ? import {} }: +let + project = pkgs.mkYarnPackage { + name = "govtool-frontend"; + src = ./.; + packageJSON = ./package.json; + yarnLock = ./yarn.lock; + }; +in +project