refac: rethought the complete workflow and deployement flow ; docs etc.
This commit is contained in:
1 parent
4a6209a8db
commit
09bd5afa4a
26 files changed
+800
-334
No files matched your search
@@ -0,0 +1,21 @@
|
||||
//go:build !nofrontend
|
||||
|
||||
package assets
|
||||
|
||||
import (
|
||||
"embed"
|
||||
"io/fs"
|
||||
)
|
||||
|
||||
//go:embed all:dist
|
||||
var distEmbed embed.FS
|
||||
|
||||
var Dist = mustSub(distEmbed, "dist")
|
||||
|
||||
func mustSub(fsys fs.FS, dir string) fs.FS {
|
||||
sub, err := fs.Sub(fsys, dir)
|
||||
if err != nil {
|
||||
panic("assets: " + err.Error())
|
||||
}
|
||||
return sub
|
||||
}
|
||||
Reference in new issue
Block a user