mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-31 18:18:02 +01:00
72 lines
2.1 KiB
Markdown
72 lines
2.1 KiB
Markdown
# Prompt Commands
|
|
|
|
```bash
|
|
# @scripthaus command webpack-watch
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/webpack --watch --config webpack.dev.js
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command webpack-build
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/webpack --config webpack.dev.js
|
|
```
|
|
|
|
|
|
```bash
|
|
# @scripthaus command webpack-electron-watch
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/webpack --watch --config webpack.electron.js
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command webpack-electron-build
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/webpack --config webpack.electron.js
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command electron-rebuild
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/electron-rebuild
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command electron
|
|
# @scripthaus cd :playbook
|
|
PROMPT_DEV=1 node_modules/.bin/electron dist-dev/emain.js
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command devserver
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/webpack-dev-server --config webpack.dev.js --host 0.0.0.0
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command typecheck
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/tsc --jsx preserve --noEmit --esModuleInterop --target ES5 --experimentalDecorators --downlevelIteration src/sh2.ts
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command build-package
|
|
# @scripthaus cd :playbook
|
|
rm -rf dist/
|
|
rm -rf bin/
|
|
node_modules/.bin/webpack --config webpack.prod.js
|
|
node_modules/.bin/webpack --config webpack.electron.prod.js
|
|
(cd ../mshell; GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-darwin.amd64 main-mshell.go)
|
|
(cd ../mshell; GOOS=darwin GOARCH=arm64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-darwin.arm64 main-mshell.go)
|
|
(cd ../mshell; GOOS=linux GOARCH=amd64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-linux.amd64 main-mshell.go)
|
|
(cd ../mshell; GOOS=linux GOARCH=arm64 go build -ldflags="-s -w" -o ../sh2/bin/mshell/mshell-v0.2-linux.arm64 main-mshell.go)
|
|
(cd ../sh2-server; GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w" -o ../sh2/bin/scripthaus-local-server cmd/main-server.go)
|
|
node_modules/.bin/electron-forge make
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command open-electron-package
|
|
# @scripthaus cd :playbook
|
|
open out/Prompt-darwin-x64/Prompt.app
|
|
```
|