conemis-ui-components v0.0.3
Conemis UI components
Library of Vuejs UI components to be used in different conemis software projects.
How to npm install and authentication
To install the library in a npm project on your local computer, the following entry with a link to the tarball for
a version has to be added manually to package.json. The following example shows the entry for version 0.0.1.
{
"dependencies": {
"@convue/conemis-ui-components": "https://git.conemis.com/api/v4/projects/112/packages/npm/conemis-ui-components/-/conemis-ui-components-0.0.1.tgz"
}
}The available versions can be found in the Package Registry of the Conemis UI components project or querying the url
# in a browser, logged into conemis Gitlab instance
https://git.conemis.com/api/v4/projects/112/packages/npm/conemis-ui-components
# in a terminal, with valid access token
curl --header "Authorization: Bearer {YOUR_GITLAB_ACCESS_TOKEN}" "https://git.conemis.com/api/v4/projects/112/packages/npm/conemis-ui-components"which provides a list of JSON formatted metadata for available versions containing the corresponding tarball urls
required for package.json.
{
"name":"conemis-ui-components",
"versions": {
"0.0.1": {
"name":"conemis-ui-components",
"version":"0.0.1",
"dist": {
"shasum":"bf95bd1c98366384f08e2916d25d70454a290b6b",
"tarball": "https://git.conemis.com/api/v4/projects/112/packages/npm/conemis-ui-components/-/conemis-ui-components-0.0.1.tgz"
},
"dependencies": {
"axios":"^0.21.1"
}
}
},"dist-tags": {
"latest":"0.0.1"
}
}Because access to the Gitlab project is restricted to internal users and therefore the package registry is also
restricted, you need a valid Gitlab access token for your user and two .npmrc registry entries for the @convue scope.
@convue:registry=https://git.conemis.com/api/v4/packages/npm/
//git.conemis.com/api/v4/packages/npm/:_authToken={YOUR_GITLAB_ACCESS_TOKEN}These can be added in the global ~/.npmrc file or to a local, git-ignored .npmrc file in your local
development directory of a project using the library.
Compiles and hot-reloads for development
npm run serveCompiles and minifies for production
npm run build-libLints and fixes files
npm run lint