Use yarn over npm

This commit is contained in:
Thomas Nordquist
2019-01-27 00:15:19 +01:00
parent e0d7f45ab8
commit 13cea217dd
2 changed files with 11 additions and 10 deletions

View File

@@ -18,12 +18,12 @@ os:
- osx
install:
- npm install
- yarn install
script:
- npm run build
- npm run test
- if [[ "$TRAVIS_TAG" != "" ]]; then npm run prepare-release; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package -- linux; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package -- mac; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package -- win; fi
- yarn run build
- yarn test
- if [[ "$TRAVIS_TAG" != "" ]]; then yarn run prepare-release; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package -- linux; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package -- mac; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package -- win; fi

View File

@@ -5,9 +5,10 @@
"main": "dist/src/electron.js",
"scripts": {
"start": "electron .",
"test": "npm run test-backend",
"build": "tsc && cd app && npm run build && cd ..",
"test-backend": "cd backend && npm run test && cd ..",
"test": "yarn run test-backend",
"install": "cd app; yarn install; cd ..",
"build": "tsc && cd app && yarn run build && cd ..",
"test-backend": "cd backend && yarn run test && cd ..",
"prepare-release": "./prepare-release.sh",
"package": "ts-node package.ts",
"package-with-docker": "./package-with-docker.sh"