Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use yarn #376

Merged
merged 3 commits into from
Feb 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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