[chopsui] Update the chopsui-npm workflow and <chops-header>.

* Update npm <chops-header> to newer version.
* Optimize Karma config for running tests fast in CI.
* Update dependencies to newest version and include webpack-*.
* Remove Yarn config from package.json.
* Use BSD-3-Clause license for all packages to match Chromium.
* Update README.md to reflect the new
  bootstrap, demo, and deployment workflows.

Bug: chromium:856274
Change-Id: Iab0b1f1461d5266f3321e7ffdc671444756453fe
Reviewed-on: https://chromium-review.googlesource.com/c/1475942
Commit-Queue: Dave Tu <dtu@chromium.org>
Reviewed-by: Tiffany Zhang <zhangtiff@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#20756}
Cr-Mirrored-From: https://chromium.googlesource.com/infra/infra
Cr-Mirrored-Commit: e5d4f28bd2662ca88e62ff5913d3ac5fc0292c63
10 files changed
tree: 3984e1f1bfcd7ce1728f5fafd7c24149fd4515bf
  1. demos/
  2. elements/
  3. .eslintrc.json
  4. .gitignore
  5. karma.conf.js
  6. lerna.json
  7. package-lock.json
  8. package.json
  9. README.md
  10. webpack.config.js
README.md

chopsui

This directory contains Web Components shared across Chrome Operations' application frontends.

Using chopsui components

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.

Contributing

To set up project development:

  1. Clone this repo with git clone.
  2. Install dependencies with npm run bootstrap.
  3. Run tests with npm test.
  4. Run demos with npm start. Each component has a separate demo URL, e.g. http://localhost:8080/demos/chops-header.html

Publishing packages

ChopsUI packages are published publicly on npm under the @chopsui organization. To be added to this org, please send your npm username to zhangtiff@.

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 publish, update the version number and run npx lerna publish.