build(ivy): create hello world rollup (#22004)

This is a customization of the rollup_bundle rule from rules_nodejs
which adds the build-optimizer as a plugin.

Add a functional test with fast round-trip that asserts the minified app
still works.

Publish the min.js artifact on circleCI so we can track its size.

PR Close #22004
This commit is contained in:
Alex Eagle
2018-02-02 15:25:33 -08:00
committed by Alex Rickabaugh
parent 2707012181
commit 370ab66c4f
16 changed files with 439 additions and 10 deletions

View File

@ -64,6 +64,12 @@ jobs:
# See https://github.com/bazelbuild/bazel/issues/4257
- run: bazel query --output=label '//modules/... union //packages/... union //tools/...' | xargs bazel test --config=ci
# CircleCI will allow us to go back and view/download these artifacts from past builds.
# Also we can use a service like https://buildsize.org/ to automatically track binary size of these artifacts.
- store_artifacts:
path: dist/bin/packages/core/test/bundling/hello_world/bundle.min.js
destination: packages/core/test/bundling/hello_world/bundle.min.js
- save_cache:
key: *cache_key
paths: