Install
Install
Cosmos is distributed as an npm package that can be added to any web project using a dependency manager of your choice.
Because the Cosmos package is distributed through Red Bull's in-house npm registry, an.npmrc in the root of a project with authentication instructions is required.
Add the following lines to your .npmrc file in the project's root.
@cosmos:registry=https://artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/
//artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/:_auth=cy1yYm1oLXJlYWRvbmx5LXJiZHM6QVA4bTJXZVNhN2Q5bTZYVUpIcVZmdGtTOGpR
//artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/:always-auth=trueFor Yarn 4+ users:
npmRegistries:
//artifactory.redbullmediahouse.com/artifactory/api/npm/rbds-npm-local/:
npmAlwaysAuth: true
npmAuthIdent: cy1yYm1oLXJlYWRvbmx5LXJiZHM6QVA4bTJXZVNhN2Q5bTZYVUpIcVZmdGtTOGpRWith an .npmrc file in the project's root, the Cosmos library can be installed as usual:
# npm
npm install --save-dev @cosmos/foundation
# yarn
yarn add @cosmos/foundation --dev