Go to file
Max Desiatov 496c8f790f
Fix dev polyfill downloads in checkDevDependencies
2020-06-05 22:59:07 +01:00
.github Create FUNDING.yml 2020-06-03 21:41:40 +01:00
.vscode Detect swift version, serve /main.wasm 2020-06-04 21:31:32 +01:00
Sources/carton Fix dev polyfill downloads in checkDevDependencies 2020-06-05 22:59:07 +01:00
TestApp Detect swift version, serve /main.wasm 2020-06-04 21:31:32 +01:00
Tests Add empty package with basic dependencies 2020-05-04 18:00:18 +01:00
entrypoint Rename index.js polyfill to dev.js to disambiguate 2020-06-05 16:18:13 +01:00
.gitignore Add basic Vapor server for the dev command 2020-05-05 23:02:06 +01:00
.pre-commit-config.yaml Add empty package with basic dependencies 2020-05-04 18:00:18 +01:00
.swift-version Basic parsing of package info on carton dev 2020-06-04 10:38:51 +01:00
.swiftformat Specify operators in .swiftformat 2020-05-04 18:08:00 +01:00
.swiftlint.yml Add empty package with basic dependencies 2020-05-04 18:00:18 +01:00
Brewfile Start implementing checkDevDependencies function 2020-06-05 17:55:10 +01:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2020-06-05 15:46:44 +01:00
LICENSE Update LICENSE 2020-05-04 18:01:52 +01:00
Package.resolved Start implementing checkDevDependencies function 2020-06-05 17:55:10 +01:00
Package.swift Start implementing checkDevDependencies function 2020-06-05 17:55:10 +01:00
README.md Clarify the development roadmap in README.md 2020-06-04 10:46:56 +01:00
package-lock.json Add basic Vapor server for the dev command 2020-05-05 23:02:06 +01:00
package.json Add basic Vapor server for the dev command 2020-05-05 23:02:06 +01:00
webpack.config.js Rename index.js polyfill to dev.js to disambiguate 2020-06-05 16:18:13 +01:00

README.md

carton 📦

carton is a watcher, bundler, and test runner for your SwiftWasm apps. The main goal of carton is to provide the most smooth zero-config experience when developing for WebAssembly. It is still in development, but it aims to support these features:

  • Creation of new app packages built with SwiftWasm with carton init.
  • Watching the app for source code changes and reloading it in your browser with carton dev.
  • Running your XCTest suite in the full JavaScript/DOM environment with carton test.
  • Optimizing and packaging the app for distribution with carton dist.

When using carton you don't have to install Node.js or to write your own webpack configs. carton itself uses webpack as a dev dependency to precompile and minify the required WASI polyfill and the reload-on-rebuild code, but you won't need webpack or Node.js when using carton as an end user. The polyfill is distributed to you precompiled.

It is currently work in progress, so watch the repository for imminent updates!