You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The project code is in the app/ directory, so make sure to run commands like installation and tests from within that directory.
7
+
## Testing
4
8
5
9
When improving unit test coverage, run only the unit tests since running e2e tests may be unnecessary.
6
10
11
+
## Svelte 5
12
+
7
13
This project uses Svelte 5. Use the Svelte 5 runes syntax instead of the older `$:` syntax.
8
14
15
+
16
+
## Semantic Classes
17
+
9
18
Always add semantic classes or IDs to important DOM elements, so our unit test and user interface can be self-documenting.
10
19
20
+
21
+
## Imports
22
+
11
23
Prefer absolute imports like `$lib/types` instead of relative imports. Don't mix absolute and relative imports. Relative imports in the same directory are alright.
12
24
25
+
26
+
## UI Components
27
+
13
28
We use Tailwind CSS for styles and daisyUI for semantic components. Where possible, prefer daisyUI components for clean template code.
14
29
30
+
## Project Structure
31
+
15
32
Business logic should reside mainly in the lib folder (service layer) so our templates can be very thin.
33
+
34
+
## Working directory
35
+
36
+
The project code is in the app/ directory. All commands should be run from this directory.
37
+
38
+
Console commands will automaticlly be run in the app/ directory, so you don't need to prefix them with `pnpm --filter @workouts/app` or `cd app/`. Just run them as is.
0 commit comments