0.4.2 • Published 5 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.npmrcfile. - Authenticate to use the registry with
npm login --registry=https://npm.pkg.github.com/(yarncould not run this command correctly). If you have 2FA,usernameis your github username andpasswordmust 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-componentsthat specifies the name of your component and add your SFC (single file component) to it. - Export the component from the
index.tsfile, 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