mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
45 lines
1.0 KiB
Markdown
45 lines
1.0 KiB
Markdown
# SH2 Commands
|
|
|
|
```bash
|
|
# @scripthaus command webpack-watch
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/webpack --watch --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 electron-rebuild
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/electron-rebuild
|
|
```
|
|
|
|
```bash
|
|
# @scripthaus command electron
|
|
# @scripthaus cd :playbook
|
|
SH_DEV=1 node_modules/.bin/electron dist/emain-dev.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-js
|
|
# @scripthaus cd :playbook
|
|
node_modules/.bin/webpack --config webpack.dev.js
|
|
node_modules/.bin/webpack --config webpack.electron.js
|
|
```
|