commit | f95f9a183e4c7f43e48ccd2f847531562e08c383 | [log] [tgz] |
---|---|---|
author | Weiwei Lin <weiweilin@google.com> | Mon Mar 09 17:07:56 2020 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Mon Mar 09 17:07:56 2020 |
tree | dfc8ab6f45181312c9c5fa14763c12cfba07a62c | |
parent | 018b703e857ca3c4d7651da44d6b4ed0e7f84cb2 [diff] |
[crdx] create new chops-npm elements version Change-Id: If541a6c0d5271529c9b1c84a349daf7674c6708e Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2094396 Auto-Submit: Weiwei Lin <weiweilin@google.com> Commit-Queue: Tiffany Zhang <zhangtiff@chromium.org> Reviewed-by: Tiffany Zhang <zhangtiff@chromium.org> Cr-Original-Commit-Position: refs/heads/master@{#29556} Cr-Mirrored-From: https://chromium.googlesource.com/infra/infra Cr-Mirrored-Commit: 5860cfcb51a1974e863915d6f0d61e861eef4551
This directory contains Web Components 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:
origin/master
.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
.