atlantafx/docs/build.md

45 lines
1.1 KiB
Markdown
Raw Normal View History

2022-09-09 06:32:29 -04:00
---
title: Build
nav_order: 2
---
## Project structure
2022-09-11 07:52:43 -04:00
![Project structure]({{ site.baseurl }}{% link /assets/images/project-structure.png %})
2022-09-09 06:32:29 -04:00
| Directory | Description |
|--------------|-----------------------------------------|
| .github | GitHub Actions workflows |
| base | Additional Controls and Java API |
| docs | GitHub Pages project website |
| sampler | Sampler application |
| styles | Theme sources (SASS) |
## Instructions
To build and run the whole project, including packaged Sampler image:
```sh
mvn install
mvn javafx:run -pl sampler
```
If you want to use hot reload (update CSS without restarting the Sampler app) you have to start app in development mode:
```sh
# start watching for SASS source code changes
mvn compile -pl styles -Pdev
# run sampler in dev mode
mvn javafx:run -pl sampler -Pdev
```
You can also build each Maven module individually:
```sh
mvn install -N
mvn install -pl styles
mvn install -pl base
mvn javafx:run -pl sampler
```