Add yarn.lock, update CI services to run yarn

This commit is contained in:
Pavel Djundik 2018-01-19 12:50:08 +02:00
parent 1ce2792fc4
commit f646fbbd4f
4 changed files with 5821 additions and 12 deletions

4
.gitignore vendored
View File

@ -1,5 +1,7 @@
node_modules/ node_modules/
npm-debug.log npm-debug.log*
yarn-debug.log*
yarn-error.log*
package-lock.json package-lock.json
.nyc_output/ .nyc_output/

View File

@ -10,12 +10,17 @@ matrix:
- node_js: 8 # Version used to deploy to npm registry - node_js: 8 # Version used to deploy to npm registry
env: BUILD_ENV=production env: BUILD_ENV=production
cache: cache: yarn
directories:
- ~/.npm before_install:
- yarn global add greenkeeper-lockfile@1
before_script: before_script:
- NODE_ENV=$BUILD_ENV npm run build - greenkeeper-lockfile-update
- NODE_ENV=$BUILD_ENV yarn build
after_script:
- greenkeeper-lockfile-upload
notifications: notifications:
email: email:
@ -49,5 +54,5 @@ deploy:
# If the current release is a stable release, remove potential pre-release tag # If the current release is a stable release, remove potential pre-release tag
after_deploy: | after_deploy: |
if [ "$(npm_dist_tag)" == "latest" ]; then if [ "$(npm_dist_tag)" == "latest" ]; then
npm dist-tag rm thelounge next || true yarn tag remove thelounge next || true
fi fi

View File

@ -15,19 +15,19 @@ environment:
install: install:
- ps: Install-Product node $env:nodejs_version - ps: Install-Product node $env:nodejs_version
- appveyor-retry npm install - yarn --frozen-lockfile
- npm run build - yarn build
- npm install mocha-appveyor-reporter - yarn add mocha-appveyor-reporter
- echo --reporter mocha-appveyor-reporter >> test/mocha.opts - echo --reporter mocha-appveyor-reporter >> test/mocha.opts
test_script: test_script:
- node --version - node --version
- npm --version - yarn --version
- npm test - yarn test
# cache npm modules # cache npm modules
cache: cache:
- '%AppData%\npm-cache -> package.json' - "%LOCALAPPDATA%\\Yarn"
# Don't actually build # Don't actually build
build: off build: off

5802
yarn.lock Normal file

File diff suppressed because it is too large Load Diff