Browse Source

use yarn on appveyor & autoinstall plugin deps

Eugene Pankov 7 years ago
parent
commit
bf995981d3
3 changed files with 6 additions and 7 deletions
  1. 1 2
      .travis.yml
  2. 4 4
      appveyor.yml
  3. 1 1
      package.json

+ 1 - 2
.travis.yml

@@ -14,8 +14,7 @@ cache:
     - app/node_modules
 
 before_install:
-    - yarn install
-    - scripts/install-deps.js
+    - yarn
 
 script:
     - scripts/build-native.js

+ 4 - 4
appveyor.yml

@@ -7,18 +7,18 @@ environment:
   nodejs_version: "10"
 
 cache:
-  - '%USERPROFILE%\.electron'
+  - "%USERPROFILE%\\.electron"
+  - "%LOCALAPPDATA%\\Yarn"
 
 version: "{build}"
 
 install:
   - ps: Install-Product node $env:nodejs_version $env:platform
-  - npm install
-  - node scripts/install-deps.js
+  - yarn
   - node scripts/build-native.js
 
 build_script:
-  - npm run build
+  - yarn run build
   - node scripts/prepackage-plugins.js
   - node scripts/build-windows.js
 

+ 1 - 1
package.json

@@ -126,7 +126,7 @@
     "start": "cross-env DEV=1 electron app --debug",
     "prod": "cross-env DEV=1 electron app",
     "lint": "tslint -c tslint.json -t stylish terminus-*/src/**/*.ts terminus-*/src/*.ts app/src/*.ts",
-    "postinstall": "install-app-deps"
+    "postinstall": "node ./scripts/install-deps.js"
   },
   "repository": "eugeny/terminus"
 }