refactor!: remove npm yeehaw
This commit is contained in:
parent
fcf497b1a1
commit
ee76eb6b64
5
Makefile
Normal file
5
Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
FLAGS := -s -skipbindings
|
||||
TAGS := -tags webkit2_40
|
||||
|
||||
default:
|
||||
wails dev $(FLAGS) $(TAGS)
|
@ -1,13 +0,0 @@
|
||||
{
|
||||
"name": "frontend",
|
||||
"private": true,
|
||||
"version": "0.0.0",
|
||||
"scripts": {
|
||||
"dev": "vite",
|
||||
"build": "vite build",
|
||||
"preview": "vite preview"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^3.0.7"
|
||||
}
|
||||
}
|
@ -1 +0,0 @@
|
||||
12a10e92fe971e5bd12d427dfbcf9918
|
2
main.go
2
main.go
@ -10,7 +10,7 @@ import (
|
||||
"github.com/wailsapp/wails/v2/pkg/options/assetserver"
|
||||
)
|
||||
|
||||
//go:embed all:frontend/dist components
|
||||
//go:embed all:frontend components
|
||||
var assets embed.FS
|
||||
|
||||
//go:embed build/appicon.png
|
||||
|
@ -2,10 +2,7 @@
|
||||
"$schema": "https://wails.io/schemas/config.v2.json",
|
||||
"name": "snackbar",
|
||||
"outputfilename": "snackbar",
|
||||
"frontend:install": "npm install",
|
||||
"frontend:build": "npm run build",
|
||||
"frontend:dev:watcher": "npm run dev",
|
||||
"frontend:dev:serverUrl": "auto",
|
||||
"wailsjsdir": "./frontend",
|
||||
"preBuildHooks": {
|
||||
"*/*": "templ generate"
|
||||
},
|
||||
|
Reference in New Issue
Block a user