Skip to content

Commit

Permalink
web: Use go:embed rather than turning everything into Go source code
Browse files Browse the repository at this point in the history
This removes a 5MB go file, which is nice.

I decided to add the Git folder to remove the dependency on javascript
for CI / other contributors.

The dist folder is large, but separate files are slightly better than
one huge one because they might not all change and be huge blobs in Git.

I excluded the .js.map file which isn't needed for release builds. It
would get built into development binaries, which is actually nice.
  • Loading branch information
Jille committed Aug 17, 2024
1 parent 0bbc671 commit becc2b1
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 127 deletions.
2 changes: 1 addition & 1 deletion client/web/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
dist
*.js.map
node_modules
104 changes: 0 additions & 104 deletions client/web/dist.go

This file was deleted.

1 change: 1 addition & 0 deletions client/web/dist/css/app.8ac45746.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions client/web/dist/css/chunk-vendors.25ab3afa.css

Large diffs are not rendered by default.

29 changes: 29 additions & 0 deletions client/web/dist/img/spinner.ee020115.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions client/web/dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"><link rel="icon" href="/favicon.ico"><title>rufs-web</title><link href="/css/app.8ac45746.css" rel="preload" as="style"><link href="/css/chunk-vendors.25ab3afa.css" rel="preload" as="style"><link href="/js/app.1e8bf834.js" rel="preload" as="script"><link href="/js/chunk-vendors.2113b97c.js" rel="preload" as="script"><link href="/css/chunk-vendors.25ab3afa.css" rel="stylesheet"><link href="/css/app.8ac45746.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but rufs-web doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="/js/chunk-vendors.2113b97c.js"></script><script src="/js/app.1e8bf834.js"></script></body></html>
2 changes: 2 additions & 0 deletions client/web/dist/js/app.1e8bf834.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit becc2b1

Please sign in to comment.