- Which web component libraries Quark provides?
- How to install QWC and PWC?
- How to reuse a web component in your application?
- How to load a web component to Quark Publishing Platform NextGen?
- How to set up credentials for the angular library/applications?
- What are the system requirements for the angular library/applications?
How to set up credentials for the angular library/applications?
Before setting up credentials, add the following .npmrc to your project in the same directory where package.json is stored.
registry=https://qrk.pkgs.visualstudio.com/0fe979d5-4bc4-4a46-9db2-f0a80d796161/_packaging/qppng/npm/registry/
always-auth=true
To set up credentials to access Quark artifacts:
- Create a .npmrc file in the directory C:\Users and copy the code below to the user.npmrc file.
; begin auth token //qrk.pkgs.visualstudio.com/0fe979d5-4bc4-4a46-9db2-f0a80d796161/_packaging/qppng/npm/registry/:username=qrk //qrk.pkgs.visualstudio.com/0fe979d5-4bc4-4a46-9db2-f0a80d796161/_packaging/qppng/npm/registry/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN] //qrk.pkgs.visualstudio.com/0fe979d5-4bc4-4a46-9db2-f0a80d796161/_packaging/qppng/npm/registry/:email=npm requires email to be set but doesn't use the value //qrk.pkgs.visualstudio.com/0fe979d5-4bc4-4a46-9db2-f0a80d796161/_packaging/qppng/npm/:username=qrk //qrk.pkgs.visualstudio.com/0fe979d5-4bc4-4a46-9db2-f0a80d796161/_packaging/qppng/npm/:_password=[BASE64_ENCODED_PERSONAL_ACCESS_TOKEN] //qrk.pkgs.visualstudio.com/0fe979d5-4bc4-4a46-9db2-f0a80d796161/_packaging/qppng/npm/:email=npm requires email to be set but doesn't use the value ; end auth token - Generate a Personal Access Token with Packaging read and write scopes.
- Generate Base64 encoded personal access token. Recommended steps for Base64 encoding a string are as follows:
- From command/shell prompt, run the following:
node -e "require('readline') .createInterface({input:process.stdin,output:process.stdout,historySize:0}) .question('PAT> ',p => { b64=Buffer.from(p.trim()).toString('base64');console.log(b64);process.exit(); })" - Paste your personal access token value and press Enter/Return.
- Copy the Base64 encoded value.
- From command/shell prompt, run the following:
- Replace both [BASE64_ENCODED_PERSONAL_ACCESS_TOKEN] values in the user.npmrc file with the Base64 encoded values.