List all the outputs of the flake.nix with nix flake show
-
Build the project of your choice:
$ nix build .#frontend-{dashboard,landing,…}
-
See the contents of the
result
file that is produced in the current directory.$ tree result/lib/node_modules/ardana-${application}/build/ -L 2 result/lib/node_modules/ardana-application/build/ ├── asset-manifest.json ├── favicon.ico ├── index.html ├── logo192.png ├── manifest.json ├── robots.txt └── static ├── css ├── js └── media
package | version | notes |
---|---|---|
nodejs |
|
LTS |
npm |
|
These requirements are provided in the Nix development shell or get them from your system’s package manager, then
$ npm install --legacy-peer-deps
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
|
EditorConfig and Prettier are used to format various files. Please enable them to be ran from your editor or in your personal Git Hooks.
Refer to the projects’ package.json
for details, but a quick start:
$ npm --workspace=frontend start
$ npm run test
$ npm run lint
frontend-dashboard
|frontend-landing
-
-
src/assets
- the resources contains images, icons, fonts, etc. -
src/components
- the source code for commonly used components -
src/config
- the contraints -
src/hooks
- the source code for utility functions -
src/layouts
- the source code for theme template -
src/locales
- the assets for translation -
src/pages
- the source code for pages -
src/state
- the source code for redux setup
-
- Core branches
-
-
main
-
staging
-
dev
-