Switch npm to Yarn (#1522)

* Add testUrl to jest config

* Switch npm to Yarn
This commit is contained in:
ylemkimon
2018-07-30 03:36:27 +09:00
committed by Kevin Barabash
parent 702b3c807f
commit a76c4b9a2f
16 changed files with 8010 additions and 13106 deletions

View File

@@ -5,27 +5,27 @@ checkout_submodule: &checkout_submodule
git submodule sync
git submodule update --init --recursive
npm_cache_key: &npm_cache_key
npm-deps-v1-{{ checksum "package.json" }}
node_modules_cache_key: &node_modules_cache_key
yarn-deps-v1-{{ checksum "yarn.lock" }}
restore_npm_cache: &restore_npm_cache
restore_node_modules_cache: &restore_node_modules_cache
restore_cache:
keys:
- *npm_cache_key
- npm-deps-v1-
- *node_modules_cache_key
- yarn-deps-v1-
npm_install: &npm_install
yarn_install: &yarn_install
run:
name: Install npm dependencies
command: npm install
name: Install dependencies
command: yarn install
screenshotter: &screenshotter
steps:
- checkout
- *checkout_submodule
- *restore_npm_cache
- *npm_install
- *restore_node_modules_cache
- *yarn_install
- run:
name: Verify screenshots and generate diffs and new screenshots
@@ -55,23 +55,23 @@ jobs:
- checkout
- *checkout_submodule
- *restore_npm_cache
- *npm_install
- *restore_node_modules_cache
- *yarn_install
- save_cache:
key: *npm_cache_key
key: *node_modules_cache_key
paths:
- node_modules
- run:
name: Run tests
command: npm test -- -- --coverage
command: yarn test --coverage
- run:
name: Upload code coverage reports to Codecov
command: ./node_modules/.bin/codecov
- run:
name: Build KaTeX
command: npm run build
command: yarn run build
- store_artifacts:
path: dist/katex.js