A simple app demonstrating how to import and use Ripple 2 components, in a standalone Vue 3 app.
Ripple 2 is hosted publicly on Github Packages (ghcr), so a few steps need to be followed to co-exist with the npm ecosystem.
First, create a Personal Access Token from Github:
- Visit https://github.com/settings/tokens and select Generate new token > Generate new token (classic)
- Fill in the Note and choose an Expiration - the 30 day default is generally fine, you'll receive a reminder to regenerate the token just before expiry
- Set the scope to only allow
read:packages
, and Generate token
- Store the resulting token somewhere secure, and add to
.npmrc
:
@dpc-sdp:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=<github personal access token>
npm i
npm run dev