forked from wasmerio/winterjs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: Add hello-world example * feat: Use clap for CLI argument parsing Switches arg parsing to the clap crate. Also adds a "serve" subcommand, in preparation for adding additional commands. For backwards compatibility, not specifying a subcommand still works. * feat: Javascript code autoreload Adds a new watch mode that will auto-reload the Javascript app code and re-initialize the runner on changes. Activated with the --watch flag. Also renames --interface argument to --ip * build: Nix devshell improvements Add additional dependencies to the Nix devshell.
- Loading branch information
Showing
8 changed files
with
412 additions
and
89 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
|
||
function handler(req) { | ||
return new Response('Hello, world!', { | ||
headers: { | ||
'content-type': 'text/plain', | ||
}, | ||
}); | ||
} | ||
|
||
addEventListener('fetch', (ev) => ev.respondWith(handler(ev.request))); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.