Explorar el Código

configure wercker pipeline

* use npm instead of yarn
Yuki Takei hace 9 años
padre
commit
83c5794557
Se han modificado 1 ficheros con 6 adiciones y 17 borrados
  1. 6 17
      wercker.yml

+ 6 - 17
wercker.yml

@@ -2,22 +2,16 @@ box: node:6.10
 
 test:
   steps:
-    - script:
-      name: set yarn cache-folder
-      code: |
-        yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
-
     - script:
       name: install dependencies
       code: |
-        yarn global add npm@4
-        npm config delete _auth
-        yarn install --prefer-offline
+        npm install -g npm@4
+        npm install
 
     - script:
       name: print dependencies
       code: |
-        yarn list depth=0
+        npm ls --depth=0
 
     - script:
       name: npm test
@@ -26,21 +20,16 @@ test:
 
 build-prod:
   steps:
-    - script:
-      name: set yarn cache-folder
-      code: |
-        yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
-
     - script:
       name: install dependencies
       code: |
-        yarn global add npm@4
-        yarn install --prefer-offline
+        npm install -g npm@4
+        npm install
 
     - script:
       name: print dependencies
       code: |
-        yarn list depth=0
+        npm ls --depth=0
 
     - script:
       name: npm run build:prod