@dumshiba/deskgap-builder
v0.0.2
Published
builder for deskgap
Downloads
3
Readme
deskgap-builder
builder for DeskGap (https://github.com/patr0nus/DeskGap/)
install
npm i @dumshiba/deskgap-builder --save-dev
usage
deskgap-builder -r <root directory> -o <output directory> -s <target os (linux, macos, windows)>
vue+typescript example
file structure
project-dir/
├── package.json
├── src/ // vue src
| └── main.ts // vue entry point
├── public/ // vue public
| └── index.html
└── app/
└── main.ts // deskgap node entry point
package.json
"scripts":
{
"build:render": "vue-cli-service build --modern",
"build:compile": "tsc ./app/* --outDir ./dist",
"build:deskgap": "npm run build:compile && deskgap-builder -r ./dist -o ./out -s windows",
"build": "npm run build:render && npm run build:deskgap"
}
app/main.ts
import { app, BrowserWindow } from 'deskgap'
app.once('ready', () =>
{
const win = new BrowserWindow({ title: "My App" })
win.loadFile('index.html')
})
also don't forget to add out/
in .gitignore