-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(package): replace npm with yarn (#2081)
* chore(circleci): upgrade to 2.0 * chore(npm): remove package-lock.json * chore(yarn): replace npm with yarn * chore(package): run yarn 😎 * chore(ci): disabled cache momentarily * chore(yarn): update yarn.lock * chore(ci): restore cache * chore(ci): try node 8 and apt-get update * chore(ci): try updating all pupeteer deps * refcator(ci): cleanup cruft * chore(package): update yarn.lock * fix(tsd:lint): add tsx patterns * fix(package): run tsd lint fix * chore(package): target js files in eslint glob * test(tsd): cleanup typings.js artifcact
- Loading branch information
1 parent
d9747ab
commit 4c16c7f
Showing
15 changed files
with
7,814 additions
and
12,551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
filters: | ||
branches: | ||
ignore: gh-pages | ||
docker: | ||
- image: circleci/node:8 | ||
environment: | ||
TZ: "/usr/share/zoneinfo/America/Los_Angeles" | ||
steps: | ||
# Chrome HeadlessBrowser is missing deps on Debian, see: | ||
# https://github.com/GoogleChrome/puppeteer/issues/290 | ||
- run: | ||
name: Update Pupeteer Dependencies | ||
command: | | ||
sudo apt-get update | ||
sudo apt-get install --yes --quiet gconf-service libasound2 libatk1.0-0 libc6 \ | ||
libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 \ | ||
libgdk-pixbuf2.0-0 libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 \ | ||
libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 \ | ||
libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 ca-certificates fonts-liberation \ | ||
libappindicator1 libnss3 lsb-release xdg-utils wget | ||
- run: | ||
name: Update yarn | ||
command: | | ||
# remove default yarn | ||
sudo rm -rf $(dirname $(which yarn))/yarn* | ||
# download latest | ||
rm -rf ~/.yarn | ||
curl -o- -L https://yarnpkg.com/install.sh | bash | ||
echo 'export PATH="${PATH}:${HOME}/.yarn/bin"' >> $BASH_ENV | ||
- checkout | ||
# because we don't invoke npm (we use yarn) we need to add npm bin to PATH manually | ||
- run: | ||
name: Add npm bin to PATH | ||
command: echo 'export PATH="${PATH}:$(npm bin)"' >> $BASH_ENV | ||
- restore_cache: | ||
keys: | ||
- v1-dependencies-{{ checksum "yarn.lock" }} | ||
- v1-dependencies | ||
- run: | ||
name: Install Dependencies | ||
command: yarn | ||
- save_cache: | ||
key: v1-dependencies-{{ checksum "yarn.lock" }} | ||
paths: | ||
- ~/.cache/yarn | ||
- .yarn-cache | ||
- node_modules | ||
- run: | ||
name: Lint TypeScript | ||
command: yarn tsd:lint | ||
- run: | ||
name: Test TypeScript | ||
command: yarn tsd:test | ||
- run: | ||
name: Lint JavaScript | ||
command: yarn lint | ||
- run: | ||
name: Test JavaScript | ||
command: yarn test | ||
- run: | ||
name: Report coverage | ||
command: bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
npm-debug.log* | ||
node_modules/ | ||
bower_components/ | ||
coverage/ | ||
dist/ | ||
docs/build/ | ||
docs/app/docgenInfo.json | ||
dll/ | ||
*.log* | ||
*.iml | ||
|
||
.DS_Store | ||
.idea/ | ||
.yarn-cache/ | ||
|
||
*.iml | ||
coverage/ | ||
dist/ | ||
docs/app/docgenInfo.json | ||
docs/build/ | ||
dll/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.yarn-cache/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.yarn-cache/ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.