-
-
Notifications
You must be signed in to change notification settings - Fork 32.8k
[code-infra] Make error code extraction independent of build #46865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| import { createBaseConfig } from '@mui/internal-code-infra/markdownlint'; | ||
|
|
||
| export default createBaseConfig(); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ | |
| "docs:sync-team": "tsx ./docs/scripts/syncTeamMembers.ts && pnpm prettier", | ||
| "docs:mdicons:synonyms": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js,.mjs\" ./docs/scripts/updateIconSynonyms && pnpm prettier", | ||
| "docs:zipRules": "cd docs && rm mui-vale.zip && zip -r mui-vale.zip mui-vale && cd ../ && pnpm vale sync", | ||
| "extract-error-codes": "cross-env MUI_EXTRACT_ERROR_CODES=true lerna run --concurrency 1 build:stable", | ||
| "extract-error-codes": "code-infra extract-error-codes --errorCodesPath docs/public/static/error-codes.json --skip @mui/core-downloads-tracker @mui/envinfo @mui/docs @mui/codemod @mui/icons-material", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice, moving this to a global CLI fixes the concurrency problem. I get why this CLI can be superfast now 🤩 |
||
| "template:screenshot": "cross-env BABEL_ENV=development babel-node --extensions \".tsx,.ts,.js\" ./docs/scripts/generateTemplateScreenshots", | ||
| "jsonlint": "code-infra jsonlint", | ||
| "eslint": "eslint . --cache --report-unused-disable-directives --ext .js,.ts,.tsx --max-warnings 0", | ||
|
|
@@ -110,9 +110,9 @@ | |
| "@babel/plugin-transform-react-constant-elements": "^7.27.1", | ||
| "@mui-internal/api-docs-builder": "workspace:^", | ||
| "@mui-internal/api-docs-builder-core": "workspace:^", | ||
| "@mui/internal-babel-plugin-minify-errors": "^2.0.8-canary.8", | ||
| "@mui/internal-bundle-size-checker": "^1.0.9-canary.39", | ||
| "@mui/internal-code-infra": "^0.0.3-canary.3", | ||
| "@mui/internal-babel-plugin-minify-errors": "^2.0.8-canary.10", | ||
| "@mui/internal-code-infra": "^0.0.3-canary.5", | ||
| "@mui/internal-docs-utils": "workspace:^", | ||
| "@mui/internal-scripts": "workspace:^", | ||
| "@mui/internal-test-utils": "workspace:^", | ||
|
|
||
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could consider
'throw'here. I believe the idea behind'annotate'is that in CI you run a search on built files for these annotations, but we don't do that. We can try this later though.