mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-02-07 14:31:48 +01:00
Sort npm scripts, add declaration script to combine build-declaration and test-declaration.
This commit is contained in:
parent
d8f1623f5f
commit
9636827693
2 changed files with 10 additions and 9 deletions
17
package.json
17
package.json
|
|
@ -13,21 +13,22 @@
|
|||
},
|
||||
"bugs": "https://github.com/DavidAnson/markdownlint/issues",
|
||||
"scripts": {
|
||||
"test": "tape test/markdownlint-test.js test/markdownlint-test-custom-rules.js test/markdownlint-test-helpers.js test/markdownlint-test-result-object.js test/markdownlint-test-scenarios.js",
|
||||
"test-cover": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 npm test",
|
||||
"test-declaration": "cd example/typescript && tsc && node type-check.js",
|
||||
"test-extra": "node test/markdownlint-test-extra.js",
|
||||
"lint": "eslint --max-warnings 0 .",
|
||||
"ci": "npm run test-cover && npm run lint && npm run build-declaration && npm run test-declaration && npm run build-config-schema && npm run build-demo && git diff --exit-code",
|
||||
"build-config-schema": "node schema/build-config-schema.js",
|
||||
"build-declaration": "tsc --allowJs --declaration --emitDeclarationOnly --resolveJsonModule lib/markdownlint.js && rimraf 'lib/{c,md,r}*.d.ts' 'helpers/*.d.ts'",
|
||||
"build-demo": "cpy node_modules/markdown-it/dist/markdown-it.min.js demo && cd demo && rimraf markdownlint-browser.* && webpack",
|
||||
"build-example": "npm install --no-save --ignore-scripts grunt grunt-cli gulp through2",
|
||||
"example": "cd example && node standalone.js && grunt markdownlint --force && gulp markdownlint",
|
||||
"ci": "npm run test-cover && npm run lint && npm run declaration && npm run build-config-schema && npm run build-demo && git diff --exit-code",
|
||||
"clean-test-repos": "rimraf test-repos",
|
||||
"clone-test-repos": "mkdir test-repos && cd test-repos && git clone https://github.com/eslint/eslint eslint-eslint --depth 1 --no-tags --quiet && git clone https://github.com/mkdocs/mkdocs mkdocs-mkdocs --depth 1 --no-tags --quiet && git clone https://github.com/pi-hole/docs pi-hole-docs --depth 1 --no-tags --quiet",
|
||||
"clone-test-repos-large": "npm run clone-test-repos && cd test-repos && git clone https://github.com/dotnet/docs dotnet-docs --depth 1 --no-tags --quiet",
|
||||
"declaration": "npm run build-declaration && npm run test-declaration",
|
||||
"example": "cd example && node standalone.js && grunt markdownlint --force && gulp markdownlint",
|
||||
"lint": "eslint --max-warnings 0 .",
|
||||
"lint-test-repos": "node test/markdownlint-test-repos.js",
|
||||
"clean-test-repos": "rimraf test-repos"
|
||||
"test": "tape test/markdownlint-test.js test/markdownlint-test-custom-rules.js test/markdownlint-test-helpers.js test/markdownlint-test-result-object.js test/markdownlint-test-scenarios.js",
|
||||
"test-cover": "c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 npm test",
|
||||
"test-declaration": "cd example/typescript && tsc && node type-check.js",
|
||||
"test-extra": "node test/markdownlint-test-extra.js"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue