|
3 | 3 |
|
4 | 4 | [](https://github.com/ciembor/4bit/actions/workflows/pages.yml) |
5 | 5 | [](https://ciembor.github.io/4bit/) |
| 6 | +<!-- coverage-badge:start --> |
| 7 | +[](#coverage) |
| 8 | +<!-- coverage-badge:end --> |
6 | 9 | [](LICENSE.md) |
7 | 10 | [](https://github.com/ciembor/4bit/pulls) |
8 | 11 |
|
@@ -63,17 +66,27 @@ Useful commands: |
63 | 66 | 3. Build production assets with `npm run build` |
64 | 67 | 4. Preview the production build with `npm run preview` |
65 | 68 | 5. Run the test suite with `npm test` |
66 | | -6. Run lint fixes with `npm run lint` |
| 69 | +6. Measure unit-test coverage with `npm run test:coverage` |
| 70 | +7. Refresh the README coverage badge with `npm run coverage:badge` |
| 71 | +8. Run lint fixes with `npm run lint` |
67 | 72 |
|
68 | 73 | Project structure: |
69 | 74 |
|
70 | | -* `src/components` - UI components |
71 | | -* `src/stores` - Pinia stores for editable scheme state and calculated colors |
72 | | -* `src/services` - color calculation and export logic |
73 | | -* `src/lib/jquery.ui.colorPicker.js` - wrapped legacy color picker plugin |
74 | | -* `src/assets/styles` - global base styles and imported third-party CSS |
| 75 | +* `src/domain` - pure scheme rules, defaults, color naming, and color-mode logic |
| 76 | +* `src/application` - synchronization/use-case layer that applies domain logic to app state |
| 77 | +* `src/infrastructure` - URL/query codecs, export serializers, browser sync, and wrapped legacy vendor code |
| 78 | +* `src/presentation` - Vue components, Pinia stores, fonts, and styles |
75 | 79 | * `public` - static assets copied to the final build, including images and SEO files |
76 | 80 |
|
| 81 | +Coverage |
| 82 | +--------- |
| 83 | + |
| 84 | +`npm run test:coverage` writes HTML, LCOV, and JSON summary reports to `coverage/`. |
| 85 | + |
| 86 | +The coverage badge above is generated from the line coverage in `coverage/coverage-summary.json` by `npm run coverage:badge`. |
| 87 | + |
| 88 | +Coverage is measured for `src/**/*.js`, excluding `src/main.js` and the vendored jQuery color picker wrapper in `src/infrastructure/vendor`. |
| 89 | + |
77 | 90 | Author |
78 | 91 | --------- |
79 | 92 |
|
|
0 commit comments