This directory contains Web Components and JavaScript libraries shared across Chrome Operations' application frontends.
Find the name of the specific component and install it within the @chopsui
package scope. For example, to install chops-header
, run npm install @chopsui/chops-header
.
To set up project development:
git clone
.npm run bootstrap
.npm test
.npm start
. The demos will be at http://localhost:8080/.ChopsUI packages are published publicly on npm under the @chopsui organization.
Each component is published under a separate npm package. Packages are managed using Lerna. All packages are published together using a single version number kept in the lerna.json
file under the version
key.
To set up:
npm adduser
.To publish a new version:
package.json
"publishConfig": { "access": "public" }
origin/main
.npx lerna version --no-git-tag-version
. Lerna will prompt you to select a new version number, detect which packages have changed since the last version, and locally update the json files.npx lerna publish from-package --no-git-tag-version
.