codelab-elements
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "codelab-elements", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Custom elements for codelabs", | ||
@@ -9,2 +9,3 @@ "main": "index.js", | ||
"build": "node_modules/.bin/bazel build npm_dist", | ||
"test": "node_modules/.bin/bazel test --test_output=all codelab-elements/demo:hello_test", | ||
"pub": "npm run clean && npm run build && cd bazel-genfiles && unzip npm_dist.zip -d npm_dist && npm publish npm_dist" | ||
@@ -11,0 +12,0 @@ }, |
@@ -158,4 +158,24 @@ # Codelab Custom Elements | ||
## NPM | ||
The library is published on NPM.js at: https://www.npmjs.com/package/codelab-elements | ||
We also support a build workflow using NPM. To build the library run fro the root of the repo: | ||
```bash | ||
# Install dependencies. This takes care of installing the right version of Bazel. | ||
npm install | ||
# Build the library | ||
npm run build | ||
# The output is a zip file under bazel-genfiles | ||
ls bazel-genfiles npm_dist.zip | ||
# Publish a new version of the library to NPM | ||
npm run dist | ||
``` | ||
## Notes | ||
This is not an official Google product. |
Sorry, the diff of this file is too big to display
197050
181