소스 검색

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

Loading…
취소
저장