Browse Source

refactor!: remove npm yeehaw

main
decentral1se 8 months ago
parent
commit
ee76eb6b64
No known key found for this signature in database GPG Key ID: 3789458B3D0C410
  1. 5
      Makefile
  2. 0
      frontend/assets/fonts/.gitkeepme
  3. 0
      frontend/assets/images/.gitkeepme
  4. 13
      frontend/package.json
  5. 1
      frontend/package.json.md5
  6. 0
      frontend/src/assets/images/.git-keep-me
  7. 2
      main.go
  8. 5
      wails.json

5
Makefile

@ -0,0 +1,5 @@
FLAGS := -s -skipbindings
TAGS := -tags webkit2_40
default:
wails dev $(FLAGS) $(TAGS)

0
frontend/src/assets/css/app.css → frontend/assets/fonts/.gitkeepme

0
frontend/src/assets/fonts/.git-keep-me → frontend/assets/images/.gitkeepme

13
frontend/package.json

@ -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
frontend/package.json.md5

@ -1 +0,0 @@
12a10e92fe971e5bd12d427dfbcf9918

0
frontend/src/assets/images/.git-keep-me

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

5
wails.json

@ -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"
},