A template for your new Open Web Desktop module. This template is designed to help you quickly bootstrap and build custom Nuxt modules that extend the core desktop functionality.
Demo · Documentation · Support
Run the following command in your OWD workspace root to scaffold a new module automatically:
pnpm desktop create module <name>This command will:
- Copy the template files into
packages/module-<name> - Perform package name and namespace replacements
- Run
pnpm installin the workspace root - Link the new module and register it under the
moduleskey in yourdesktop/desktop.config.ts
If you prefer to manually clone and set up the module template:
-
Download or clone this repository into your
/packagesdirectory:cd <your-owd-client-path>/packages wget -O - https://github.com/owdproject/module-template/archive/refs/heads/main.zip | unzip -d module-<name> -
-
Open the newly created
packages/module-<name>/package.jsonand change the"name"field to@owdproject/module-<name>. -
Register the module under the
moduleskey in yourdesktop/desktop.config.ts:export default defineDesktopConfig({ modules: [ '@owdproject/module-<name>' ] })
-
Install dependencies in your workspace to enable internal linking:
pnpm install
Run the module playground to test your implementation:
cd packages/module-<name>
pnpm run devThis application is released under the MIT License.