-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Drop js dependencies and build tools
This adds a few lines of JavaScript to handle base64url encoding and decoding of the array buffers that the browser returns/expects, so we can convert to the json format that the server expects. Previously this used a third-party library, but that requires bringing in Yarn and Packer to manage this, which results in a transitive dependency on almost 600k lines of JavaScript (excluding blank lines and comments) and another 9k lines of TypeScript. By implementing the conversion by hand, we reduce the footprint of the example by: * Dropping the 64 MB node_modules directory. * Reducing the size of the dev dependencies Nix closure by 100 MB. * Removing the 6.4 seconds required to run Yarn initially. * Removing the 4.3 seconds required to run Parcel initially.
- Loading branch information
Showing
6 changed files
with
62 additions
and
5,279 deletions.
There are no files selected for viewing
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
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
#!/usr/bin/env bash | ||
yarn | ||
yarn parcel build index.html | ||
git ls-files .. | entr -r cabal run server |
Oops, something went wrong.