Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Build conditions #50

Closed
wants to merge 21 commits into from
Closed

Build conditions #50

wants to merge 21 commits into from

Conversation

itowlson
Copy link
Contributor

@itowlson itowlson commented Jul 28, 2021

Fixes #10.

Still must do:

  • Documentation
  • Integration testing
  • Decent error handling

Nice to do:

  • Tidy up the parser

@itowlson itowlson marked this pull request as ready for review August 2, 2021 23:34
@bacongobbler
Copy link
Contributor

This is an interesting feature. I want to give this a bit more thought during the review process so I'll self-schedule a review for tomorrow. Thanks for working on this!

* `hippo push . -c build_mode=debug` would also create a parcel from `out/debug/birdbattle.wasm` and
map it to the `/` route. (The `!=` condition is true because, although `build_mode` has a value,
that value doesn't match `'release'`.)
* `hippo push . -c build_mode=release` would create a parcel from `out/release/birdbattle.wasm` (note the
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm... I'm wondering if these flags should be set depending on what flags were provided to hippo-cli. For example, as a user if I'm running hippo push -v production ., should we assume that the user wants their build_mode set to release (or in this case, production)?

If I wanted to push a production bindle, now I'd have to run hippo push . -v production -c build_mode=release or hippo push . -v production depending on whether the HIPPOFACTS file needs that build_mode variable set or not. That seems a bit clunky...

@bacongobbler
Copy link
Contributor

no longer relevant after merging #121.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support debug and release builds
2 participants