npm.io
1.0.6 • Published 3 months ago

@ptl-mt/ptl-vue-common

Licence
MIT
Version
1.0.6
Deps
0
Size
1.0 MB
Vulns
0
Weekly
0

PTL Vue Common

Reusable Vue 3 components built with TypeScript and PrimeVue.

Install

npm install ptl-vue-common vue primevue primeicons

Use

import { DataTable, Form, NotificationProvider, useNotifications } from 'ptl-vue-common';
import 'ptl-vue-common/styles.css';

Local Package Build

npm ci
npm run lint
npm run test:run
npm run build
npm pack

npm pack creates a .tgz file that can be installed into another app:

npm install ./ptl-vue-common-1.0.0.tgz

Publish

Make sure you are logged into npm or have NODE_AUTH_TOKEN set, then run:

npm version patch
npm publish

Use npm version minor for new backward-compatible features and npm version major for breaking changes.

Azure DevOps Releases

The pipeline validates every push to main and every PR to main.

Publishing to npm only happens when a version tag is pushed:

npm version patch
git push
git push --tags

Create an Azure DevOps secret variable named NPM_TOKEN containing an npm automation token.

Keywords