浏览代码

Don't start server if compilation fails

master
Dylan Baker 3 年前
父节点
当前提交
944d197945
共有 3 个文件被更改,包括 9 次插入3 次删除
  1. 3
    1
      start-debug-mode.sh
  2. 3
    1
      start-profiling.sh
  3. 3
    1
      start-release-mode.sh

+ 3
- 1
start-debug-mode.sh 查看文件

@@ -7,4 +7,6 @@ set -v
7 7
 
8 8
 wasm-pack build --target web --dev --out-dir www/pkg -- --features "with-measure"
9 9
 
10
-basic-http-server ./www -a 0.0.0.0:4001
10
+if [ $? -eq 0 ]; then
11
+  basic-http-server ./www -a 0.0.0.0:4001
12
+fi

+ 3
- 1
start-profiling.sh 查看文件

@@ -6,4 +6,6 @@ set -v
6 6
 
7 7
 wasm-pack build --target web --profiling --out-dir www/pkg
8 8
 
9
-basic-http-server ./www -a 0.0.0.0:4001
9
+if [ $? -eq 0 ]; then
10
+  basic-http-server ./www -a 0.0.0.0:4001
11
+fi

+ 3
- 1
start-release-mode.sh 查看文件

@@ -6,4 +6,6 @@ set -v
6 6
 
7 7
 wasm-pack build --target web --release --out-dir www/pkg
8 8
 
9
-basic-http-server ./www -a 0.0.0.0:4001
9
+if [ $? -eq 0 ]; then
10
+  basic-http-server ./www -a 0.0.0.0:4001
11
+fi

正在加载...
取消
保存