A published-ready template for components and composable functions library.
- vite
- vitest
- storybook or viteplay for documentation
With NPM:
$ npm create vibrary@latestWith Yarn:
$ yarn create vibraryWith PNPM:
$ pnpm create vibraryThen follow the prompts!
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold a Vite + Vue library, run:
# npm 6.x
npm create vibrary@latest my-vue-library --template vue-ts
# npm 7+, extra double-dash is needed:
npm create vibrary@latest my-vue-library -- --template vue-ts
# yarn
yarn create vibrary my-vue-library -- --template vue-ts
# pnpm
pnpm create vibrary my-vue-library -- --template vue-tsCurrently supported template presets include:
vue-tsreact
Template presets still work in progress:
vanillavanilla-tsvuereact-tspreactpreact-tslitlit-tssveltesvelte-ts
Vibrary
- Use release-it for version management and publish
- Auto generate changelog file (e.g. CHANGELOG.md) with @release-it/conventional-changelog plugin
- Follow Angular commit guidelines
For example, to release a new version of your lib, run:
pnpm releaseThen follow the prompts!
If you get an error when running pnpm release, you maybe miss the git repository url in package.json, for example, to add git repository url:
// in package.json
{
"repository": {
"type": "git",
"url": "git+https://github.com/your/your-repo-url.git"
}
}