mirror of
https://github.com/remarkjs/remark-lint.git
synced 2024-08-17 07:40:31 +03:00
Use npm workspaces
Closes GH-270. Closes GH-271. Reviewed-by: Merlijn Vos <merlijn@soverin.net> Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
This commit is contained in:
parent
bd95e6e736
commit
bc1b092cd1
1
.github/workflows/main.yml
vendored
1
.github/workflows/main.yml
vendored
@ -11,6 +11,7 @@ jobs:
|
||||
- uses: dcodeIO/setup-node-nvm@master
|
||||
with:
|
||||
node-version: ${{matrix.node}}
|
||||
- run: npm install -g npm
|
||||
- run: npm install
|
||||
- run: npm test
|
||||
- uses: codecov/codecov-action@v1
|
||||
|
@ -1,3 +0,0 @@
|
||||
{
|
||||
"version": "independent"
|
||||
}
|
78
package.json
78
package.json
@ -42,7 +42,6 @@
|
||||
"@types/tape": "^4.0.0",
|
||||
"c8": "^7.0.0",
|
||||
"comment-parser": "^1.0.0",
|
||||
"lerna": "^4.0.0",
|
||||
"mdast-zone": "^5.0.0",
|
||||
"parse-author": "^2.0.0",
|
||||
"prettier": "^2.0.0",
|
||||
@ -64,10 +63,83 @@
|
||||
"unist-util-remove-position": "^4.0.0",
|
||||
"xo": "^0.44.0"
|
||||
},
|
||||
"workspaces": [
|
||||
"packages/remark-lint",
|
||||
"packages/remark-lint-blockquote-indentation",
|
||||
"packages/remark-lint-checkbox-character-style",
|
||||
"packages/remark-lint-checkbox-content-indent",
|
||||
"packages/remark-lint-code-block-style",
|
||||
"packages/remark-lint-definition-case",
|
||||
"packages/remark-lint-definition-spacing",
|
||||
"packages/remark-lint-emphasis-marker",
|
||||
"packages/remark-lint-fenced-code-flag",
|
||||
"packages/remark-lint-fenced-code-marker",
|
||||
"packages/remark-lint-file-extension",
|
||||
"packages/remark-lint-final-definition",
|
||||
"packages/remark-lint-final-newline",
|
||||
"packages/remark-lint-first-heading-level",
|
||||
"packages/remark-lint-hard-break-spaces",
|
||||
"packages/remark-lint-heading-increment",
|
||||
"packages/remark-lint-heading-style",
|
||||
"packages/remark-lint-linebreak-style",
|
||||
"packages/remark-lint-link-title-style",
|
||||
"packages/remark-lint-list-item-bullet-indent",
|
||||
"packages/remark-lint-list-item-content-indent",
|
||||
"packages/remark-lint-list-item-indent",
|
||||
"packages/remark-lint-list-item-spacing",
|
||||
"packages/remark-lint-maximum-heading-length",
|
||||
"packages/remark-lint-maximum-line-length",
|
||||
"packages/remark-lint-no-auto-link-without-protocol",
|
||||
"packages/remark-lint-no-blockquote-without-marker",
|
||||
"packages/remark-lint-no-consecutive-blank-lines",
|
||||
"packages/remark-lint-no-duplicate-defined-urls",
|
||||
"packages/remark-lint-no-duplicate-definitions",
|
||||
"packages/remark-lint-no-duplicate-headings",
|
||||
"packages/remark-lint-no-duplicate-headings-in-section",
|
||||
"packages/remark-lint-no-emphasis-as-heading",
|
||||
"packages/remark-lint-no-empty-url",
|
||||
"packages/remark-lint-no-file-name-articles",
|
||||
"packages/remark-lint-no-file-name-consecutive-dashes",
|
||||
"packages/remark-lint-no-file-name-irregular-characters",
|
||||
"packages/remark-lint-no-file-name-mixed-case",
|
||||
"packages/remark-lint-no-file-name-outer-dashes",
|
||||
"packages/remark-lint-no-heading-content-indent",
|
||||
"packages/remark-lint-no-heading-indent",
|
||||
"packages/remark-lint-no-heading-like-paragraph",
|
||||
"packages/remark-lint-no-heading-punctuation",
|
||||
"packages/remark-lint-no-html",
|
||||
"packages/remark-lint-no-inline-padding",
|
||||
"packages/remark-lint-no-literal-urls",
|
||||
"packages/remark-lint-no-missing-blank-lines",
|
||||
"packages/remark-lint-no-multiple-toplevel-headings",
|
||||
"packages/remark-lint-no-paragraph-content-indent",
|
||||
"packages/remark-lint-no-reference-like-url",
|
||||
"packages/remark-lint-no-shell-dollars",
|
||||
"packages/remark-lint-no-shortcut-reference-image",
|
||||
"packages/remark-lint-no-shortcut-reference-link",
|
||||
"packages/remark-lint-no-table-indentation",
|
||||
"packages/remark-lint-no-tabs",
|
||||
"packages/remark-lint-no-undefined-references",
|
||||
"packages/remark-lint-no-unneeded-full-reference-image",
|
||||
"packages/remark-lint-no-unneeded-full-reference-link",
|
||||
"packages/remark-lint-no-unused-definitions",
|
||||
"packages/remark-lint-ordered-list-marker-style",
|
||||
"packages/remark-lint-ordered-list-marker-value",
|
||||
"packages/remark-lint-rule-style",
|
||||
"packages/remark-lint-strikethrough-marker",
|
||||
"packages/remark-lint-strong-marker",
|
||||
"packages/remark-lint-table-cell-padding",
|
||||
"packages/remark-lint-table-pipe-alignment",
|
||||
"packages/remark-lint-table-pipes",
|
||||
"packages/remark-lint-unordered-list-marker-style",
|
||||
"packages/remark-preset-lint-consistent",
|
||||
"packages/remark-preset-lint-markdown-style-guide",
|
||||
"packages/remark-preset-lint-recommended",
|
||||
"packages/unified-lint-rule"
|
||||
],
|
||||
"scripts": {
|
||||
"postinstall": "lerna bootstrap --no-ci",
|
||||
"build-packages": "node script/build-presets && node script/build-rules",
|
||||
"build-workspace": "lerna run build",
|
||||
"build-workspace": "npm run build --workspaces",
|
||||
"build-monorepo": "rimraf \"test.d.ts\" \"script/**/*.d.ts\" && tsc && type-coverage",
|
||||
"build": "npm run build-packages && npm run build-workspace && npm run build-monorepo",
|
||||
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
||||
|
Loading…
Reference in New Issue
Block a user