use yarn on appveyor & autoinstall plugin deps

This commit is contained in:
Eugene Pankov 2018-12-23 20:03:29 +01:00
parent a6fdabcd2f
commit bf995981d3
3 changed files with 6 additions and 7 deletions

View File

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

View File

@ -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

View File

@ -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"
}