A minimalist starting point for your next Vue 3 composable.
- 🧩 TypeScript by default
- 📦 PNPM as package manager
- 🤹 Testing using Vitest
- ☑️ Linting using @antfu/eslint-config
- 🌐 Nuxt 3 as a playground
- 📸 Demo ready to be written and deployed using Vite
- 🚚 Built using unbuild
Edit variables, implement, test, publish 🏎
Build the package:
pnpm buildBuild with watcher:
pnpm devRun the demo:
pnpm dev:demoBuild the demo:
pnpm build:demoLint the package:
pnpm linkRun test suite:
pnpm testTest typings:
pnpm test:typesStart Nuxt 3 env:
pnpm dev:nuxtBuild Nuxt 3 env:
pnpm build:nuxtPreview Nuxt 3 env:
pnpm start:nuxtThis repository is useful if you want to start a new Vue composable, or a general Vue package.
I used it personally for:
I try to keep it updated when I upgrade my own workflow!
I usually develop with the dev:nuxt command.
Your changes on any file will be reloaded by Nuxt, and you can start trying SSR capabilities of your composable easily!
The general Nuxt environment does not differ from a classic Vue app.
- Edit package.json
name,description,repositoryandauthorkeys. - Remove .vscode folder (containing recommended extensions)
- Edit README.md.
- Implement my composable.
- Test my composable.
- Make a demo of my composable in the
demofolder. - Document my composable.
- Publish on NPM, awesome-vue, vue-forum, Vue Discord.
You are more than welcome to improve this starter template.
Just submit your changes via pull request and I will review them before merging.
If you are making a fix on the template, you can use the main branch and send a pull request.
If you are adding a new features, please create a new branch with a name describing your feature (my-new-feature), push to your branch and then submit a pull request.