Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#188] Develop NIX configuration for frontend #448

Merged
merged 3 commits into from
Mar 12, 2024

Conversation

placek
Copy link
Contributor

@placek placek commented Mar 11, 2024

Closes #188.

Purpose of the changes:

The aim of this pull request is to develop Nix configurations for both the frontend and backend modules. This initiative will streamline the build and deployment processes by aligning them with the backend setup and dependencies. The new shell configurations aim to provide the necessary tools and dependencies required for development environments to enhance the overall development workflow.

Outcome of the changes:

This pull request introduces a yarn2nix-based package definition for the frontend application, enabling developers to easily incorporate the project into their nix-shell based environments. In addition, the outdated Nix configuration files for the frontend module have been removed to pave the way for a more efficient Nix setup that better mirrors the backend's configuration. These changes contribute to creating a more streamlined and optimized development environment, fulfilling the specified acceptance criteria for defining development environments and dependencies effectively.

Removed obsolete Nix configuration files (default.nix, node-env.nix, and
node-packages.nix) from the frontend module. This change is part of a
broader effort to update and realign the frontend's build and deployment
process with the backend's, ensuring a more streamlined and optimized
development environment. The removal of these files paves the way for
introducing a revised and more efficient Nix setup that better mirrors
the backend's configuration and fulfills the specified acceptance
criteria for development environments and dependencies.
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.
Developed Nix shell configurations for both frontend and backend modules
to streamline the build and deployment processes and ensure alignment
with backend setup and dependencies. The new shell configurations
provide necessary tools and dependencies for development environments,
optimizing the overall development workflow.

Changes:
- Updated govtool/backend/default.nix to simplify package retrieval
  using `<nixpkgs>` and removed unnecessary sources file inclusion.
- Created govtool/backend/shell.nix to define additional dependencies
  like awscli, docker, git, and gnumake for the backend module.
- Added govtool/frontend/shell.nix to specify frontend module
  dependencies, ensuring consistency with the backend setup.
@placek placek requested a review from adgud March 12, 2024 09:32
@placek placek merged commit 68422ac into develop Mar 12, 2024
1 check passed
@placek placek deleted the chore/188-develop-nix-configuration-for-frontend branch March 12, 2024 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Develop Nix configuration for frontend
3 participants