소스 검색

configure wercker pipeline

* BugFix
* add build-dev
Yuki Takei 9 년 전
부모
커밋
1bfc26196b
1개의 변경된 파일25개의 추가작업 그리고 12개의 파일을 삭제
  1. 25 12
      wercker.yml

+ 25 - 12
wercker.yml

@@ -10,20 +10,18 @@ test:
         yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
 
     - script:
-      name: install dependencies
+      name: install npm@4
       code: |
         yarn global add npm@4
-        npm-install
+
+    - npm-install
 
     - script:
       name: print dependencies
       code: |
         npm list --depth=0
 
-    - script:
-      name: npm test
-      code: |
-        npm test
+    - npm-test
 
 build-prod:
   steps:
@@ -33,17 +31,32 @@ build-prod:
         yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
 
     - script:
-      name: install dependencies
+      name: install npm@4
       code: |
         yarn global add npm@4
-        npm-install
 
-    - script:
-      name: print dependencies
-      code: |
-        npm list --depth=0
+    - npm-install --production
 
     - script:
       name: npm run build:prod
       code: |
         npm run build:prod
+
+build-dev:
+  steps:
+    - script:
+      name: set yarn cache-folder
+      code: |
+        yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
+
+    - script:
+      name: install npm@4
+      code: |
+        yarn global add npm@4
+
+    - npm-install
+
+    - script:
+      name: npm run build:dev
+      code: |
+        npm run build:dev