Commit Graph

9 Commits

Author SHA1 Message Date
Max Desiatov 749a17d730
Update static.zip, automate its release process (#60)
`dev.js` entrypoint has been updated to include the recent JavaScriptKit runtime fix: https://github.com/swiftwasm/JavaScriptKit/pull/19

I've also added a new subcommand to `carton-release`, which is now able to automaticallly create a new `static.zip` and record updated hashes in the source code. It still doesn't upload the archive automatically to previous release assets, but I wonder if that should be done manually anyway, at least until we have some kind of tests that verify the whole process end-to-end.

Additionally, since the new runtime is not compatible with the old Swift parts of JavaScriptKit, `carton dev` now checks the revision of JavaScriptKit that projects have specified in their `Package.swift`. It doesn't block the build process, but I hope it gives enough warning about the incompatibility.
2020-07-19 21:53:04 +01:00
Carson Katri 537da48876
Add `carton init` command (#54) 2020-07-16 12:17:12 -04:00
Max Desiatov 76769443d6
Implement simple wasmer runner for `test` command (#51)
Implements the first part of https://github.com/swiftwasm/carton/issues/42.
2020-07-15 18:05:31 +01:00
Max Desiatov 8b326b6181
Always pass --enable-test-discovery to swift build (#49)
Thanks to this the presence of `LinuxMain.swift` file is no longer needed.
2020-07-15 11:24:32 +01:00
Max Desiatov 01fc71b320
Fix watcher missing root directories (#48) 2020-07-14 20:44:08 +01:00
Max Desiatov dc56e8387b
Update to Vapor 4.15.2, fix formatting (#47) 2020-07-14 19:28:43 +01:00
Jaap Wijnen 6b4f7035f3
Add sources to watcher per target (#46)
Sources are added per target and use a custom path if provided by the package manifest. Resolves #1.
2020-07-14 18:38:24 +01:00
Max Desiatov 9ebc500d77
Automatically link Foundation w/ destination.json (#41)
Resolves #4.
2020-07-13 21:26:39 +01:00
Max Desiatov 5c590230ec
Add separate CartonHelpers/SwiftToolchain modules (#35)
This also adds a separate `Toolchain` type that abstracts a lot of the common operations. The giant toolchain-related `FileSystem` extension is now hidden in the separate `SwiftToolchain` module that also contains the new `Toolchain` type.

New `Destination` model type is added to facilitate automatic creation of destination files in a future PR.
2020-07-08 22:16:11 +01:00