@tavora/create-module
v0.1.22
Published
Makes a new Tavora module project: npm create @tavora/module.
Maintainers
Readme
@tavora/create-module
Makes a new Tavora module project.
npm create @tavora/module
# or
pnpm create @tavora/moduleIt asks where the project goes (the empty folder you are in, or a new folder in it), the module's name, its id (publisher.module-name), the game it is for (any game, or one, such as Path of Exile 2) and a template: vanilla TypeScript, vue or react, picked with the arrow keys. Give them up front to skip the questions:
npm create @tavora/module raid-timer -- --template vue --id example.raid-timer --name "Raid Timer" --game poe2
pnpm create @tavora/module raid-timer --template vue --id example.raid-timer --name "Raid Timer" --game poe2--game takes a game id from the list of game ids, or any. Tavora offers a module made for one game only in that game. --yes takes the suggestions for anything not given, and any game.
The project builds with Vite, has a dev script that rebuilds on every change (add the folder in Tavora under Settings > Developer > Project folders > Add folder…; a folder with several projects in it works too). Publish it from Tavora with Publish under Settings > Developer. Its manifest sets minTavora to the oldest Tavora that has everything the SDK it starts with offers. The project's DEVELOP.md says the rest.
More in the developer docs.
