mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Use yarn instead of npm in building
This commit is contained in:
parent
5682eef2a5
commit
36057fb899
@ -6,9 +6,9 @@ node_js:
|
|||||||
before_install:
|
before_install:
|
||||||
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
|
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
|
||||||
install:
|
install:
|
||||||
- npm install
|
- yarn install
|
||||||
- npm run build
|
- yarn run build
|
||||||
script:
|
script:
|
||||||
- npm test
|
- yarn run test
|
||||||
after_success:
|
after_success:
|
||||||
- npm run coverage
|
- yarn run coverage
|
||||||
|
@ -7,15 +7,16 @@ install:
|
|||||||
# Get the latest stable version of Node.js or io.js
|
# Get the latest stable version of Node.js or io.js
|
||||||
- ps: Install-Product node $env:nodejs_version
|
- ps: Install-Product node $env:nodejs_version
|
||||||
# install modules
|
# install modules
|
||||||
- npm install
|
- yarn install
|
||||||
|
|
||||||
# Post-install test scripts.
|
# Post-install test scripts.
|
||||||
test_script:
|
test_script:
|
||||||
# Output useful info for debugging.
|
# Output useful info for debugging.
|
||||||
- node --version
|
- node --version
|
||||||
- npm --version
|
- npm --version
|
||||||
|
- yarn --version
|
||||||
# run tests
|
# run tests
|
||||||
- npm test
|
- yarn run test
|
||||||
|
|
||||||
# Don't actually build.
|
# Don't actually build.
|
||||||
build: off
|
build: off
|
||||||
|
Loading…
Reference in New Issue
Block a user