mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
chore: migrate to Yarn 2 (#2316)
* chore: migrate to Yarn 2 * Update config.yml
This commit is contained in:
@@ -21,7 +21,7 @@ are encouraged to reproduce the steps from `screenshotter.sh`
|
||||
manually. Example run for Firefox:
|
||||
|
||||
container=$(docker run -d -P selenium/standalone-firefox:2.46.0)
|
||||
node dockers/screenshotter/screenshotter.js -b firefox -c ${container}
|
||||
yarn node dockers/screenshotter/screenshotter.js -b firefox -c ${container}
|
||||
# possibly repeat the above command as often as you need, then eventually
|
||||
docker stop ${container}
|
||||
docker rm ${container}
|
||||
@@ -33,7 +33,7 @@ For Chrome, simply replace both occurrences of `firefox` with `chrome`.
|
||||
It is possible to run `screenshotter.js` without the use of Docker:
|
||||
|
||||
yarn add selenium-webdriver
|
||||
node dockers/screenshotter/screenshotter.js
|
||||
yarn node dockers/screenshotter/screenshotter.js
|
||||
|
||||
This will generate screenshots using the Firefox installed on your system.
|
||||
Browsers other than Firefox can be targeted using the `--browser` option.
|
||||
@@ -62,7 +62,7 @@ to specify a list of cases which are not being processed.
|
||||
|
||||
Examples:
|
||||
|
||||
node dockers/screenshotter/screenshotter.js -i Sqrt,SqrtRoot
|
||||
yarn node dockers/screenshotter/screenshotter.js -i Sqrt,SqrtRoot
|
||||
dockers/screenshotter/screenshotter.sh --exclude=GreekLetters
|
||||
|
||||
# How to run screenshotter tests
|
||||
|
@@ -24,7 +24,7 @@ for browserTag in firefox:2.48.2 chrome:2.48.2; do
|
||||
container=$(docker run -d -P ${image})
|
||||
[[ ${container} ]] || continue
|
||||
echo "Container ${container:0:12} started, creating screenshots..."
|
||||
if node "$(dirname "$0")"/screenshotter.js \
|
||||
if yarn node "$(dirname "$0")"/screenshotter.js \
|
||||
--browser="${browser}" --container="${container}" "$@"; then
|
||||
res=Done
|
||||
else
|
||||
|
Reference in New Issue
Block a user