From b49961c0e38eb4a1b2cfb70c10dd527fa4c37d17 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Sun, 12 Feb 2017 22:44:23 +0100 Subject: [PATCH 1/3] Use yarn on AppVeyor --- appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 35477daa..4907f099 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,9 +3,9 @@ environment: install: - ps: Install-Product node $env:nodejs_version - - npm install + - yarn test_script: - - npm run test-ci + - yarn test-ci build: off From 761b102c82cc07c1a2f515232623283176d3c793 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Sun, 12 Feb 2017 22:48:12 +0100 Subject: [PATCH 2/3] Use yarn in package.json --- package.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 8617abb4..300ba91e 100644 --- a/package.json +++ b/package.json @@ -39,10 +39,10 @@ "build": "babel src/ --out-dir lib/", "coverage": "nyc report --reporter=json && codecov -f coverage/coverage-final.json", "lint": "eslint src test", - "preversion": "npm test", - "prepublish": "npm run clean && npm run build", - "test": "npm run lint && cross-env BABEL_ENV=test npm run build && npm run test-only", - "test-ci": "cross-env BABEL_ENV=test npm run build && npm run test-only", + "preversion": "yarn test", + "prepublish": "yarn clean && yarn build", + "test": "yarn lint && cross-env BABEL_ENV=test yarn build && yarn test-only", + "test-ci": "cross-env BABEL_ENV=test yarn build && yarn test-only", "test-only": "nyc ava" }, "repository": { From 5055249dcf3d5f6a90e81b68efa41354b9232f25 Mon Sep 17 00:00:00 2001 From: Daniel Tschinder Date: Sun, 12 Feb 2017 22:49:15 +0100 Subject: [PATCH 3/3] Use yarn on travis --- .travis.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index b87130b5..68483ece 100644 --- a/.travis.yml +++ b/.travis.yml @@ -12,9 +12,9 @@ matrix: - node_js: "lts/*" env: LINT=true before_script: - - 'if [ "$WEBPACK_VERSION" ]; then npm install webpack@$WEBPACK_VERSION; fi' + - 'if [ "$WEBPACK_VERSION" ]; then yarn add webpack@$WEBPACK_VERSION; fi' script: - - 'if [ -n "${LINT-}" ]; then npm run lint ; fi' - - 'if [ -z "${LINT-}" ]; then npm run test-ci ; fi' + - 'if [ -n "${LINT-}" ]; then yarn lint ; fi' + - 'if [ -z "${LINT-}" ]; then yarn test-ci ; fi' after_success: - - npm run coverage + - yarn coverage