An open API service indexing awesome lists of open source software.

https://github.com/gwinnem/vite-vue-package-skeleton

Starter template for building vue component libraries with VUE 3 and Typescript, running on vite.
https://github.com/gwinnem/vite-vue-package-skeleton

npm-package-template starter-template template typescript vite vue vue3

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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](./docs/testing-package.md)

### Publishing the library
[Howto](./docs/build.md)