Build upon amazing wxt framework.
optional:
- trpc-chrome: See trpc
Move the predefined entry points from the inactive
folder to directly in the entrypoints
folder to enable them.
Popup is enabled by default.
*: For sidepanel
, wxt does not automatically add the sidePanel
permission. You must manually add it to the manifest
field in wxt.config.js
. Related: wxt#544
*: For onboarding
, to retrieve the URL of the onboarding page, use browser.runtime.getURL('/onboarding.html')
.
If you are using vscode, autofix should already be enabled. You can run pnpm lint
to check for errors and pnpm lint:fix
to fix most of them.
Thanks for antfu's elegant design philosophy in eslint configuration.
To use it, refer to the documentation
tldr: To add components using
npx shadcn@latest add
, select them by pressingspace
and submit withenter
. If adding a code file, simply type the component name for autocompletion in vscode.
- Replace the
background
andpopup
entrypoints with the ones in theinactive/trpc
folder. - Install the needed packages:
# trpc with react-query, see https://trpc.io/docs/v10/client/react/setup
pnpm i @trpc/client @trpc/server @trpc/react-query @tanstack/react-query@4
# trpc-chrome
pnpm i trpc-chrome
# zod
pnpm i zod
# superjson, it lets you pass complex data like Date and Map through the message channel
pnpm i superjson