Skip to content

rethinc/vite-plugin-vue-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a571b62 · May 23, 2024
May 6, 2024
May 8, 2024
May 23, 2024
May 2, 2024
Apr 12, 2024
Apr 26, 2024
May 3, 2024
May 7, 2024
May 7, 2024
May 7, 2024
Apr 25, 2024
May 3, 2024
May 8, 2024
May 7, 2024

Repository files navigation

vite-plugin-vue-examples

Issues

  • Eslint package can't be updated to latest '9.x.x' version, because the package 'typescript-eslint' has eslint 8.56.x as a peer dependency. For a fresh install downgrade eslint to ^8.56.0" to get a working application again.

Developing

Nvm is used to ensure consistency in Node.js and npm versions. Install the specified Node.js version with the following command:

nvm install

The package source is located in ./package/src, and the development app to test the package is in ./dev-app. Before beginning development, install the npm dependencies by running:

npm install

Useful commands

Rebuilding package ./package continuously:

npm run dev -w package

Run dev-app ./dev-app:

npm run dev -w dev-app

Run tests in watch mode:

npm run test -w package

Build package in ./package/dist:

npm run build -w package

Run linter for all files in repository:

npm run lint

Automatically fix lint errors in all files in repository:

npm run fix-lint-errors

Verify vite-plugin-vue-examples package by linting, type checking, and running tests:

npm run verify

Publishing

For continuous integration and package publishing a multistage Docker build is used. This enables ci/cd execution both locally and on a ci server.

Building the Docker image will install dependencies, verify code, and build the package:

docker build -t publish_vue_examples .

Running the Docker image will publish the package to npm:

docker run -e NPM_AUTH_TOKEN="<Npm Auth Token>" publish_vue_examples

Updating Dependencies

Check for updated dependencies

npx npm-check-updates

Update version in package.json

npx npm-check-updates -u

Updated modules and package-lock file

npm update