0.4.2 • Published 4 years ago
@wallscope/vue-components v0.4.2
Wallscope Vue Components
This package contains a list of Vue components commonly used in Wallscope projects. The components are fully written in Typescript.
Use this plugin in other projects
- To use the Wallscope npm registry in your project, add
@wallscope:registry=https://npm.pkg.github.com/
to your.npmrc
file. - Authenticate to use the registry with
npm login --registry=https://npm.pkg.github.com/
(yarn
could not run this command correctly). If you have 2FA,username
is your github username andpassword
must be a personal access token. To create one, follow Github's article "Creating a personal access token".
Add a component
If you want to add component to this library:
- Create a folder under
src/lib-components
that specifies the name of your component and add your SFC (single file component) to it. - Export the component from the
index.ts
file, undersrc/lib-components
. - Export a type declaration for your component from the file
vue-components.d.ts
.
Deploy
To deploy a new version of this library:
- Run
yarn login --registry=https://npm.pkg.github.com/
- Run
yarn publish