Skip to content

Commit

Permalink
use Yarn for dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
mourner authored and jfirebaugh committed Feb 3, 2017
1 parent f1ec12d commit 098ce08
Show file tree
Hide file tree
Showing 6 changed files with 6,518 additions and 11 deletions.
1 change: 0 additions & 1 deletion .gitignore
Expand Up @@ -12,7 +12,6 @@ coverage
.nyc_output
*_generated.js
*-generated.js
yarn.lock
test/integration/**/index.html
test/integration/**/actual.png
test/integration/**/diff.png
15 changes: 10 additions & 5 deletions ci/dependencies.sh
Expand Up @@ -5,14 +5,19 @@ if [[ ! -d ./nvm ]]; then
git clone --depth 1 https://github.com/creationix/nvm.git ./nvm
fi

source ./nvm/nvm.sh && nvm install ${NODE_VERSION}
source ./nvm/nvm.sh

if [ "$CIRCLE_BRANCH" == "master" ]; then
source ./nvm/nvm.sh && nvm use ${NODE_VERSION} && npm update && npm run postinstall && npm ls
else
source ./nvm/nvm.sh && nvm use ${NODE_VERSION} && npm install && npm ls
nvm install ${NODE_VERSION}
nvm use ${NODE_VERSION}

if [[ ! -d ~/.yarn ]]; then
curl -o- -L https://yarnpkg.com/install.sh | bash
fi

PATH="~/.yarn/bin:$PATH"

yarn

if [ "$CIRCLE_BRANCH" == "master" ] || [ -n "$CIRCLE_TAG" ]; then
pip install --user --upgrade awscli
fi
1 change: 1 addition & 0 deletions circle.yml
Expand Up @@ -9,6 +9,7 @@ machine:
dependencies:
cache_directories:
- './nvm'
- '~/.yarn'
override:
- ./ci/dependencies.sh
test:
Expand Down
115 changes: 115 additions & 0 deletions js/style-spec/yarn.lock
@@ -0,0 +1,115 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


"JSV@>= 4.0.x":
version "4.0.2"
resolved "https://registry.yarnpkg.com/JSV/-/JSV-4.0.2.tgz#d077f6825571f82132f9dffaed587b4029feff57"

ansi-styles@~1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-1.0.0.tgz#cb102df1c56f5123eab8b67cd7b98027a0279178"

chalk@~0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-0.4.0.tgz#5199a3ddcd0c1efe23bc08c1b027b06176e0c64f"
dependencies:
ansi-styles "~1.0.0"
has-color "~0.1.0"
strip-ansi "~0.1.0"

csscolorparser@~1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/csscolorparser/-/csscolorparser-1.0.3.tgz#b34f391eea4da8f3e98231e2ccd8df9c041f171b"

fast-stable-stringify@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/fast-stable-stringify/-/fast-stable-stringify-0.1.1.tgz#ce758dce1cb40fb2bf0c8aef4f93e792d195b491"

has-color@~0.1.0:
version "0.1.7"
resolved "https://registry.yarnpkg.com/has-color/-/has-color-0.1.7.tgz#67144a5260c34fc3cca677d041daf52fe7b78b2f"

jsonlint-lines-primitives@~1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/jsonlint-lines-primitives/-/jsonlint-lines-primitives-1.6.0.tgz#bb89f60c8b9b612fd913ddaa236649b840d86611"
dependencies:
JSV ">= 4.0.x"
nomnom ">= 1.5.x"

lodash._baseisequal@^3.0.0:
version "3.0.7"
resolved "https://registry.yarnpkg.com/lodash._baseisequal/-/lodash._baseisequal-3.0.7.tgz#d8025f76339d29342767dcc887ce5cb95a5b51f1"
dependencies:
lodash.isarray "^3.0.0"
lodash.istypedarray "^3.0.0"
lodash.keys "^3.0.0"

lodash._bindcallback@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/lodash._bindcallback/-/lodash._bindcallback-3.0.1.tgz#e531c27644cf8b57a99e17ed95b35c748789392e"

lodash._getnative@^3.0.0:
version "3.9.1"
resolved "https://registry.yarnpkg.com/lodash._getnative/-/lodash._getnative-3.9.1.tgz#570bc7dede46d61cdcde687d65d3eecbaa3aaff5"

lodash.isarguments@^3.0.0:
version "3.1.0"
resolved "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a"

lodash.isarray@^3.0.0:
version "3.0.4"
resolved "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55"

lodash.isequal@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-3.0.4.tgz#1c35eb3b6ef0cd1ff51743e3ea3cf7fdffdacb64"
dependencies:
lodash._baseisequal "^3.0.0"
lodash._bindcallback "^3.0.0"

lodash.istypedarray@^3.0.0:
version "3.0.6"
resolved "https://registry.yarnpkg.com/lodash.istypedarray/-/lodash.istypedarray-3.0.6.tgz#c9a477498607501d8e8494d283b87c39281cef62"

lodash.keys@^3.0.0:
version "3.1.2"
resolved "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a"
dependencies:
lodash._getnative "^3.0.0"
lodash.isarguments "^3.0.0"
lodash.isarray "^3.0.0"

minimist@0.0.8:
version "0.0.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d"

"nomnom@>= 1.5.x":
version "1.8.1"
resolved "https://registry.yarnpkg.com/nomnom/-/nomnom-1.8.1.tgz#2151f722472ba79e50a76fc125bb8c8f2e4dc2a7"
dependencies:
chalk "~0.4.0"
underscore "~1.6.0"

sort-asc@^0.1.0:
version "0.1.0"
resolved "https://registry.yarnpkg.com/sort-asc/-/sort-asc-0.1.0.tgz#ab799df61fc73ea0956c79c4b531ed1e9e7727e9"

sort-desc@^0.1.1:
version "0.1.1"
resolved "https://registry.yarnpkg.com/sort-desc/-/sort-desc-0.1.1.tgz#198b8c0cdeb095c463341861e3925d4ee359a9ee"

sort-object@^0.3.2:
version "0.3.2"
resolved "https://registry.yarnpkg.com/sort-object/-/sort-object-0.3.2.tgz#98e0d199ede40e07c61a84403c61d6c3b290f9e2"
dependencies:
sort-asc "^0.1.0"
sort-desc "^0.1.1"

strip-ansi@~0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-0.1.1.tgz#39e8a98d044d150660abe4a6808acf70bb7bc991"

underscore@~1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.6.0.tgz#8b38b10cacdef63337b8b24e4ff86d45aea529a8"
10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -40,6 +40,7 @@
"whoots-js": "^2.0.0"
},
"devDependencies": {
"@mapbox/mapbox-gl-rtl-text": "^0.1.0",
"babel-eslint": "^7.0.0",
"benchmark": "~2.1.0",
"browserify": "^13.0.0",
Expand All @@ -51,10 +52,10 @@
"diff": "^3.0.0",
"documentation": "4.0.0-beta12",
"envify": "^3.4.0",
"eslint": "3.12.1",
"eslint-config-mourner": "^2.0.0",
"eslint-plugin-flowtype": "^2.20.0",
"eslint-plugin-html": "^1.5.1",
"eslint": "3.12.1",
"flow-bin": "^0.36.0",
"flow-remove-types": "^1.0.4",
"github-slugger": "^1.1.1",
Expand All @@ -65,9 +66,8 @@
"in-publish": "^2.0.0",
"jsdom": "^9.4.2",
"jsonlint": "^1.6.2",
"lodash.template": "^4.4.0",
"lodash": "^4.16.0",
"@mapbox/mapbox-gl-rtl-text": "^0.1.0",
"lodash.template": "^4.4.0",
"minifyify": "^7.0.1",
"npm-run-all": "^3.0.0",
"nyc": "^8.3.0",
Expand All @@ -79,8 +79,8 @@
"sinon": "^1.15.4",
"st": "^1.2.0",
"tap": "^5.7.0",
"vinyl-fs": "2.4.4",
"vinyl": "2.0.0",
"vinyl-fs": "2.4.4",
"watchify": "^3.7.0"
},
"browserify": {
Expand Down Expand Up @@ -134,6 +134,6 @@
"test-flow": "flow .",
"test-cov": "nyc --require=flow-remove-types/register --reporter=text-summary --reporter=lcov --cache run-s test-unit test-render test-query",
"prepublish": "in-publish && run-s build-dev build-min || not-in-publish",
"postinstall": "cd js/style-spec && npm install"
"postinstall": "cd js/style-spec && yarn || npm install"
}
}

0 comments on commit 098ce08

Please sign in to comment.