Use yarn over npm
This commit is contained in:
14
.travis.yml
14
.travis.yml
@@ -18,12 +18,12 @@ os:
|
|||||||
- osx
|
- osx
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- npm install
|
- yarn install
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- npm run build
|
- yarn run build
|
||||||
- npm run test
|
- yarn test
|
||||||
- if [[ "$TRAVIS_TAG" != "" ]]; then npm run prepare-release; fi
|
- if [[ "$TRAVIS_TAG" != "" ]]; then yarn run prepare-release; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package -- linux; fi
|
- if [[ "$TRAVIS_OS_NAME" == "linux" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn 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 yarn run package -- mac; fi
|
||||||
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then npm run package -- win; fi
|
- if [[ "$TRAVIS_OS_NAME" == "osx" ]] && [[ "$TRAVIS_TAG" != "" ]]; then yarn run package -- win; fi
|
||||||
|
|||||||
@@ -5,9 +5,10 @@
|
|||||||
"main": "dist/src/electron.js",
|
"main": "dist/src/electron.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"test": "npm run test-backend",
|
"test": "yarn run test-backend",
|
||||||
"build": "tsc && cd app && npm run build && cd ..",
|
"install": "cd app; yarn install; cd ..",
|
||||||
"test-backend": "cd backend && npm run test && cd ..",
|
"build": "tsc && cd app && yarn run build && cd ..",
|
||||||
|
"test-backend": "cd backend && yarn run test && cd ..",
|
||||||
"prepare-release": "./prepare-release.sh",
|
"prepare-release": "./prepare-release.sh",
|
||||||
"package": "ts-node package.ts",
|
"package": "ts-node package.ts",
|
||||||
"package-with-docker": "./package-with-docker.sh"
|
"package-with-docker": "./package-with-docker.sh"
|
||||||
|
|||||||
Reference in New Issue
Block a user