Ardana application’s front-end web platforms
image:https://img.shields.io/badge/ci--by--hercules-green.svg["Hercules continuous integration status for all DanaSwapUI front-ends", link="https://hercules-ci.com/github/ArdanaLabs/DanaSwapUI"] image:https://img.shields.io/badge/cachix-private_ArdanaLabs-blue.svg["Cachix provisioning of binary builds",link="https://private-ardanalabs.cachix.org"]
NOTE: This looks like a monorepo, but doesn’t quack like one. Without
workspace support for dream2nix
, this should likely be split out into
individual repositories as there’s no advantage in keeping these together.
== Build
=== Build Via Nix
List all the outputs of the flake.nix with nix flake show
result
file that is produced in the current
directory.
+
[source,shell-session]=== Build via Npm
== Developer setup
=== Installation
:abbr-LTS: pass:[LTS] :table-caption!:
[%autowidth,frame=none] .Requirements |=== |package |version| notes
|nodejs |>=16
| {abbr-LTS}
|npm |>=6
|
|===
These requirements are provided in the Nix development shell or get them from your system’s package manager, then
This will install the rest of packages from NPM to build the front-end.
NOTE: As of now the --legacy-peer-deps
is required to resolve certain
downstream dependencies
== Formatting
https://editorconfig.org/[EditorConfig] and https://prettier.io/[Prettier] are used to format various files. Please enable them to be ran from your editor or in your personal Git Hooks.
=== Workflow instructions
Refer to the projects’ package.json
for details, but a quick start:
=== Directory structure explanation
frontend-dashboard
| frontend-landing
::
src/assets
- the resources contains images, icons, fonts, etc.src/components
- the source code for commonly used componentssrc/config
- the contraintssrc/hooks
- the source code for utility functionssrc/layouts
- the source code for theme templatesrc/locales
- the assets for translationsrc/pages
- the source code for pagessrc/state
- the source code for redux setupCore branches::
main
staging
dev