Commit Graph

14 Commits

Author SHA1 Message Date
Max Desiatov 566e3419e2
Bump JavaScriptKit to 0.8, stop checking revision (#139)
Other than a simple bump, we shouldn't check for the revision anymore. Now the recommended way to specify this dependency is only with a semantic version constraint.
2020-10-22 15:49:45 +01:00
Max Desiatov 6c1a12df6c
Bump version to 0.6.1, update `CHANGELOG.md` 2020-09-29 11:41:50 +01:00
Max Desiatov d11aca1989
Bump version to 0.6.0, update `CHANGELOG.md` 2020-09-28 21:30:26 +01:00
Max Desiatov cd660a8d86
Use raw stdout if TerminalController is unavailable (#113)
TTY terminal output is unavailable on CI, or when users redirect output to a file or a pipe. In those cases `TerminalController` initializer returns `nil`. SwiftPM has a wrapper `InteractiveWriter` class for it, which writes output to stdout directly in that case. I've copied that, and replaced all uses of `TerminalController` with it. A VSCode task is added to test that.

In my testing it looks like download progress reporting is quite spammy, so it now has `removeDuplicates` Combine operator added to make it output only when values differ significantly from each other.

Additionally, SDK installs can hit GitHub API rate limit on CI nodes, so `carton` now reads `GITHUB_TOKEN` environment variable, which gives much higher limits to authenticated API users.

We can now also run various `carton` commands on CI for basic end-to-end testing.

Resolves #112.
2020-09-28 20:14:18 +01:00
Max Desiatov c75f6c98d7
Bump JavaScriptKit to 0.7.2 (#115) 2020-09-28 16:47:59 +01:00
Max Desiatov b2aa6fd62c
Update node.js dependencies, including wasmer.js (#108)
Resolves #25
2020-09-16 21:07:05 +01:00
Max Desiatov 3478fb082e
Bump JavaScriptKit dependency to 0.6.0 (#107)
Handling of the `static.zip` archive has changed slightly, where now the archive no longer has a nested `static` directory in it, which makes packaging slightly more predictable. For some reason passing wildcards to `zip` no longer works for me.
2020-09-14 12:36:06 +01:00
Max Desiatov 5a5e7397eb
Implement `carton bundle` command (#97)
New `bundle.js` entrypoint is added, which only differs from `dev.js` in the lack of the WebSocket hot reloading bit.

`wabt` and `binaryen` Homebrew dependencies are added as required for `wasm-strip` and `wasm-opt` respectively that reduce the resulting bundle binary size.

All resulting bundle files except `index.html` are named by their content hashes to enable [cache busting](https://www.keycdn.com/support/what-is-cache-busting).

Resolves #16.
2020-08-31 16:29:47 +01:00
Carson Katri f27a65bf64
Upgrade JavaScriptKit (#59) 2020-07-18 12:42:38 -04:00
Max Desiatov 5b325a6a9f
Update WASI polyfill, print a backtrace on crash (#27)
Related to https://github.com/swiftwasm/carton/issues/26.
2020-07-06 23:03:15 +01:00
Max Desiatov 7b364b898f
Update dev bundle to the latest JavaScriptKit 2020-06-21 11:11:06 +01:00
Max Desiatov 2c66bdb72e
Use ReconnectingWebSocket in the dev.js polyfill 2020-06-08 21:49:43 +01:00
Max Desiatov b8201ce478
Improve logging, add basic WebSocket handling 2020-06-07 19:25:08 +01:00
Max Desiatov 3c5904790e
Add basic Vapor server for the dev command 2020-05-05 23:02:06 +01:00