Skip to content

Commit

Permalink
Use yarn (#376)
Browse files Browse the repository at this point in the history
* Use yarn on AppVeyor

* Use yarn in package.json

* Use yarn on travis
  • Loading branch information
danez authored Feb 14, 2017
1 parent ad492ca commit a483384
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit a483384

Please sign in to comment.