init project
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
how2ice
2025-12-12 14:26:25 +09:00
commit 005cf56baf
43188 changed files with 1079531 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
import yargs, { ArgumentsCamelCase } from 'yargs';
import { ProjectSettings, buildApi } from '@mui-internal/api-docs-builder';
import {
joyUiProjectSettings,
materialUiProjectSettings,
muiSystemProjectSettings,
} from '@mui-internal/api-docs-builder-core';
const projectSettings: ProjectSettings[] = [
materialUiProjectSettings,
joyUiProjectSettings,
muiSystemProjectSettings,
];
type CommandOptions = { grep?: string; rawDescriptions?: boolean };
async function run(argv: ArgumentsCamelCase<CommandOptions>) {
const grep = argv.grep == null ? null : new RegExp(argv.grep);
const rawDescriptions = argv.rawDescriptions === true;
return buildApi(projectSettings, grep, rawDescriptions);
}
yargs(process.argv.slice(2))
.command({
command: '$0',
describe: 'Generates API documentation for the MUI packages.',
builder: (command) => {
return command
.option('grep', {
description:
'Only generate files for component filenames matching the pattern. The string is treated as a RegExp.',
type: 'string',
})
.option('rawDescriptions', {
description: 'Whether to output raw JSDoc descriptions or process them as markdown.',
type: 'boolean',
default: false,
});
},
handler: run,
})
.help()
.strict(true)
.version(false)
.parse();

View File

@@ -0,0 +1,25 @@
{
"compilerOptions": {
"module": "node16",
"target": "es2022",
"moduleResolution": "node16",
"isolatedModules": true,
"resolveJsonModule": true,
"noEmit": true,
"allowJs": true,
"esModuleInterop": true,
"noUnusedLocals": false,
"skipLibCheck": true,
"strict": true,
"jsx": "react",
"types": ["node", "vitest/globals"],
"paths": {
"@mui/types": ["../../packages/mui-types"],
"@mui/utils": ["../../packages/mui-utils/src"],
"@mui/utils/*": ["../../packages/mui-utils/src/*"]
}
},
"include": ["./**/*.ts"]
}