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. 1. Install dev dependencies.
```sh ```sh
npm install yarn
``` ```
2. Install Grunt. 2. Install Grunt.

View File

@ -43,19 +43,18 @@ function install_node {
echo "installing node $version"; echo "installing node $version";
crit nvm install "$version" crit nvm install "$version"
}
if [[ "$(which npm)" == "" ]]; then function install_yarn {
echo "npm is missing, reinstalling node version $version"; mkdir .bin
crit nvm deactivate; curl -L https://github.com/yarnpkg/yarn/releases/download/v0.24.2/yarn-0.24.2.js > .bin/yarn
crit nvm uninstall "$version"; chmod +x .bin/yarn
install_node "$version"; PATH="$(pwd)/.bin:$PATH"
return
fi
} }
get_lock get_lock
install_node "$(cat ./.node-version)" install_node "$(cat ./.node-version)"
npm install yarn
release_lock 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 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