mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-13 23:18:38 +00:00
Replace yarn run
and yarn install
with yarn
, remove building with npm
instructions (#1528)
* Replace `yarn run` with `yarn` * Replace `yarn install` with `yarn` * Remove building using `npm` from node.md
This commit is contained in:
18
package.json
18
package.json
@@ -62,24 +62,24 @@
|
||||
},
|
||||
"bin": "cli.js",
|
||||
"scripts": {
|
||||
"test": "yarn run prestart && yarn run test:lint && yarn run test:flow && yarn run test:jest",
|
||||
"test": "yarn prestart && yarn test:lint && yarn test:flow && yarn test:jest",
|
||||
"test:lint": "eslint katex.js katex.webpack.js cli.js webpack.*.js src static test contrib dockers website && stylelint src/katex.less",
|
||||
"test:flow": "flow",
|
||||
"test:jest": "jest",
|
||||
"test:jest:watch": "jest --watch",
|
||||
"test:jest:update": "jest --updateSnapshot",
|
||||
"test:jest:coverage": "jest --coverage",
|
||||
"test:screenshots": "yarn run test:screenshots:update --verify",
|
||||
"test:screenshots:update": "yarn run prestart && dockers/Screenshotter/screenshotter.sh",
|
||||
"test:perf": "yarn run prestart && NODE_ENV=test node test/perf-test.js",
|
||||
"test:screenshots": "yarn test:screenshots:update --verify",
|
||||
"test:screenshots:update": "yarn prestart && dockers/Screenshotter/screenshotter.sh",
|
||||
"test:perf": "yarn prestart && NODE_ENV=test node test/perf-test.js",
|
||||
"clean": "rm -rf dist/ node_modules/",
|
||||
"clean-install": "yarn run clean && yarn install",
|
||||
"clean-install": "yarn clean && yarn",
|
||||
"prestart": "node check-node-version.js && check-dependencies && node src/unicodeMake.js > src/unicodeSymbols.js",
|
||||
"start": "webpack-dev-server --hot --config webpack.dev.js",
|
||||
"analyze": "webpack --config webpack.analyze.js",
|
||||
"build": "yarn run prestart && rimraf dist/ && mkdirp dist && cp README.md dist && webpack",
|
||||
"watch": "yarn run build --watch",
|
||||
"dist": "yarn test && yarn run build && yarn run dist:zip",
|
||||
"build": "yarn prestart && rimraf dist/ && mkdirp dist && cp README.md dist && webpack",
|
||||
"watch": "yarn build --watch",
|
||||
"dist": "yarn test && yarn build && yarn dist:zip",
|
||||
"dist:zip": "cd dist && tar czf ../katex.tar.gz * && zip -rq ../katex.zip *"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -87,7 +87,7 @@
|
||||
},
|
||||
"husky": {
|
||||
"hooks": {
|
||||
"pre-commit": "yarn run test:lint",
|
||||
"pre-commit": "yarn test:lint",
|
||||
"post-merge": "git submodule update --init --recursive",
|
||||
"post-checkout": "git submodule update --init --recursive"
|
||||
}
|
||||
|
Reference in New Issue
Block a user