If we are adding foo
page.
- Add route:
- Think about a good semantic URL route.
- Add the
foo
route toRoutes
incore/router.ts
. - Add
foo
route with URL pattern tocreateRouter()
call inweb/stores/router.ts
.
- If you need logic on the page, create a core module.
- Create
core/foo.ts
files with exports withfoo
word. - Export those exports from
core/index.ts
. - Add tests in
core/test/foo.test.ts
.
- Create
- Add translations for page:
- Create
core/messages/foo/en.ts
. - Export these files from
core/messages/index.ts
.
- Create
- Add page:
- Create Svelte component
web/pages/foo.svelte
usingfoo
messages andfoo
core module. - Use this component with the route in
web/main/main.svelte
. - Add visual tests in
web/stories/pages/foo.stories.svelte
. - Add a link to the page to the menu (
web/ui/navbar/
) if necessary.
- Create Svelte component