If we are adding foo page.
- Add route:
- Think about a good semantic URL route.
- Add the
fooroute toRoutesincore/router.ts. - Add
fooroute with URL pattern tocreateRouter()call inweb/stores/router.ts.
- If you need logic on the page, create a core module.
- Create
core/foo.tsfiles with exports withfooword. - 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.svelteusingfoomessages andfoocore 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