Commit Graph

6 Commits

Author SHA1 Message Date
Max Desiatov 7392e1bb17
Serve all available resources with `dev`/`bundle` (#330)
Resolves https://github.com/swiftwasm/carton/issues/175.

I initially thought we should parse `Package.swift` manifests of the whole dependency tree to collect paths to resources from them, but now I'm not even sure that SwiftPM provides an API for this.

Much simpler solution is to serve with `dev` and copy with `bundle` all directories with `.resources` suffixes in the build directory. I think it's quite impossible to stumble upon unrelated directories with this approach, while it still resolves the issue as intended, in my opinion.
2022-05-11 08:10:07 +01:00
Yuta Saito 1acf9c3ad7
Integrate stack sanitizer (#230)
* Update WasmTransformer

* Add build flavor to determine build options

* Enable stack overflow sanitizer pass

* Embed import entry in binary

* Remove sanitize support from bundle command

* Update WasmTransformer and add --stack-first option

* Fix carton-release hash-archive for CartonKit renaming

* Run carton-release hash-archive

* Update WasmTransformer

* Use run-p

* Use matrix in CI

* Build and install pre-released resource

* Exclude fixture directory from linting

* Fix failing tests

* Turn off sanitizer on test command
2021-04-18 16:45:10 +09:00
Max Desiatov 116840c746
Fix browser testing for Safari, update tasks.json (#202)
* Fix browser testing for Safari, update tasks.json

* Remove autodiff code from `TestApp/main.swift`
2021-01-04 06:52:07 -05:00
Max Desiatov 53a1d46813
Implement `--custom-index-page` option (#101)
Allows passing a path to your custom `index.html` as `--custom-index-page` to `carton dev` and `carton bundle`. The entrypoint script is then injected into this file with a simple text substitution looking for a closing `</head>` tag. The assumption is that your custom `<body>` is not supposed to contain an unescaped `<head></head>`, and adding a dependency on a proper HTML parser to implement this injection is too costly.

Depends on #97.

Resolves #100.
2020-08-31 18:37:43 +01:00
Max Desiatov b083cc031c
Close WebSocket connections after HTTP server exits (#85)
Resolve #7 as described in https://github.com/vapor/vapor/issues/2451.

Additionaly, new formatting is applied with the new version of SwiftFormat.
2020-08-18 18:02:02 +01:00
Max Desiatov e62d8aeda9
Add empty package with basic dependencies 2020-05-04 18:00:18 +01:00