2022-06-08 02:25:35 +02:00
|
|
|
# SH2 Commands
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# @scripthaus command webpack-watch
|
2022-07-09 10:37:19 +02:00
|
|
|
# @scripthaus cd :playbook
|
2022-06-08 02:25:35 +02:00
|
|
|
node_modules/.bin/webpack --watch --config webpack.dev.js
|
|
|
|
```
|
|
|
|
|
2022-11-01 08:07:25 +01:00
|
|
|
```bash
|
|
|
|
# @scripthaus command webpack-build
|
|
|
|
# @scripthaus cd :playbook
|
|
|
|
node_modules/.bin/webpack --config webpack.dev.js
|
|
|
|
```
|
|
|
|
|
|
|
|
|
2022-07-09 10:37:19 +02:00
|
|
|
```bash
|
|
|
|
# @scripthaus command webpack-electron-watch
|
|
|
|
# @scripthaus cd :playbook
|
|
|
|
node_modules/.bin/webpack --watch --config webpack.electron.js
|
|
|
|
```
|
|
|
|
|
2022-11-01 08:07:25 +01:00
|
|
|
```bash
|
|
|
|
# @scripthaus command webpack-electron-build
|
|
|
|
# @scripthaus cd :playbook
|
|
|
|
node_modules/.bin/webpack --config webpack.electron.js
|
|
|
|
```
|
|
|
|
|
2022-07-09 10:37:19 +02:00
|
|
|
```bash
|
|
|
|
# @scripthaus command electron-rebuild
|
|
|
|
# @scripthaus cd :playbook
|
|
|
|
node_modules/.bin/electron-rebuild
|
|
|
|
```
|
|
|
|
|
|
|
|
```bash
|
|
|
|
# @scripthaus command electron
|
|
|
|
# @scripthaus cd :playbook
|
2022-11-01 00:41:44 +01:00
|
|
|
SH_DEV=1 node_modules/.bin/electron dist/emain-dev.js
|
2022-07-09 10:37:19 +02:00
|
|
|
```
|
|
|
|
|
2022-06-08 02:25:35 +02:00
|
|
|
```bash
|
|
|
|
# @scripthaus command devserver
|
2022-07-09 10:37:19 +02:00
|
|
|
# @scripthaus cd :playbook
|
2022-06-08 02:25:35 +02:00
|
|
|
node_modules/.bin/webpack-dev-server --config webpack.dev.js --host 0.0.0.0
|
|
|
|
```
|
2022-07-05 07:37:45 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
# @scripthaus command typecheck
|
2022-07-09 10:37:19 +02:00
|
|
|
# @scripthaus cd :playbook
|
2022-07-05 07:37:45 +02:00
|
|
|
node_modules/.bin/tsc --jsx preserve --noEmit --esModuleInterop --target ES5 --experimentalDecorators --downlevelIteration src/sh2.ts
|
|
|
|
```
|
2022-10-31 22:59:31 +01:00
|
|
|
|
|
|
|
```bash
|
2022-11-01 08:07:25 +01:00
|
|
|
# @scripthaus command build-package
|
2022-10-31 22:59:31 +01:00
|
|
|
# @scripthaus cd :playbook
|
|
|
|
node_modules/.bin/webpack --config webpack.dev.js
|
|
|
|
node_modules/.bin/webpack --config webpack.electron.js
|
2022-11-01 08:07:25 +01:00
|
|
|
node_modules/.bin/electron-forge make
|
2022-10-31 22:59:31 +01:00
|
|
|
```
|