use yarn for dependency management

This commit is contained in:
spalger
2017-06-14 18:33:08 -07:00
parent 87685c353e
commit 256bff1c37
3 changed files with 4786 additions and 9 deletions

View File

@ -15,7 +15,7 @@ Please write test cases to exercise your changes.
1. Install dev dependencies.
```sh
npm install
yarn
```
2. Install Grunt.

View File

@ -43,19 +43,18 @@ function install_node {
echo "installing node $version";
crit nvm install "$version"
}
if [[ "$(which npm)" == "" ]]; then
echo "npm is missing, reinstalling node version $version";
crit nvm deactivate;
crit nvm uninstall "$version";
install_node "$version";
return
fi
function install_yarn {
mkdir .bin
curl -L https://github.com/yarnpkg/yarn/releases/download/v0.24.2/yarn-0.24.2.js > .bin/yarn
chmod +x .bin/yarn
PATH="$(pwd)/.bin:$PATH"
}
get_lock
install_node "$(cat ./.node-version)"
npm install
yarn
release_lock
ES_PATH_REPO="./.es-snapshot-repos/$EXECUTOR_NUMBER/" ES_PORT=$((9400 + EXECUTOR_NUMBER)) RUN=NODE_UNIT,NODE_INTEGRATION VERBOSE=true node ./scripts/ci.js

4778
yarn.lock Normal file

File diff suppressed because it is too large Load Diff