Adds a package.json with basic start / setup npm scripts to assist non golang developers working on an end project.

This commit is contained in:
Snider 2021-11-23 11:22:25 +00:00
commit 46cb34f2ec

View file

@ -0,0 +1,12 @@
{
"private": true,
"scripts": {
"postinstall": "npm run setup && cd frontend && npm install",
"build": "wails build --clean",
"build:macos": "npm run build -- --platform darwin/universal",
"build:macos-arm": "npm run build -- --platform darwin/arm64",
"build:macos-intel": "npm run build -- --platform darwin",
"build:windows": "npm run build -- --platform windows/amd64",
"setup": "go install github.com/wailsapp/wails/v2/cmd/wails@latest"
}
}