Skip to content

Starter template for building vue component libraries with VUE 3 and Typescript, running on vite.

License

Notifications You must be signed in to change notification settings

gwinnem/vite-vue-package-skeleton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vite-vue-package-skeleton

Starter template for building vue component libraries with VUE 3 and Typescript, running on vite.

Setting up vite-vue-package-skeleton in your project

npm install vite-vue-package-skeleton

Steps to set up your custom npm package

  1. Configure your package.json file with correct name, description, author, and change 'vite-vue-package-skeleton' with the desired package name.
  2. Configure build/rollup.config with the name and package file name that you did set up in package.json.
  3. Search for the // TODO comment and make the required changes.
  4. Clean up the unused example implementation, abd Start building your own components (similar to ExampleComponent).

Future Development on your package

You can run the library in a standalone mode for development purposes, following these steps:

Installing external dependencies

npm install

Compiles and hot-reloads for development

npm run dev

Uses Vite to build our component library (compiles .vue files to .js) and call build:types script.

npm run build

Generate TypeScript declaration files for our .vue files (this is using vue-tsc).

npm run build:types

Running type checking on .ts files (this is using vue-tsc).

npm run typeCheck

Running Eslint

npm run lint

Running Eslint with --fix option

npm run lint:fix

Running Style linting

npm run lint:style

Auditing the package

 npm audit --registry=https://registry.npmjs.org/

Testing the npm package before publishing

Howto

Publishing the library

Howto

About

Starter template for building vue component libraries with VUE 3 and Typescript, running on vite.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks