diff --git a/cases/scenarios/mui-docs/scenario.json b/cases/scenarios/mui-docs/scenario.json new file mode 100644 index 0000000..042e7fa --- /dev/null +++ b/cases/scenarios/mui-docs/scenario.json @@ -0,0 +1,13 @@ +{ + "name": "mui-docs", + "kind": "tsc", + "args": [ + "-p", + "${suiteDirectory}/mui-docs/docs", + "--outdir", + "${outDirectory}" + ], + "platforms": [ + "linux" + ] +} diff --git a/cases/scenarios/mui-docs/setup.sh b/cases/scenarios/mui-docs/setup.sh new file mode 100755 index 0000000..35aba05 --- /dev/null +++ b/cases/scenarios/mui-docs/setup.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash + +set -exo pipefail + +cd "${0%/*}" +SCENARIO_NAME=$(basename $PWD) +SOLUTION_DIR=../../solutions/$SCENARIO_NAME + +if ! test -d $SOLUTION_DIR; then + git clone --filter blob:none https://github.com/mui/material-ui.git $SOLUTION_DIR +fi + +cd $SOLUTION_DIR +git clean -fdx +git reset --hard HEAD +git switch --detach 48a29227cb737c6f008a62f9c8c4c47aedd99c43 +pnpm install --ignore-scripts diff --git a/cases/solutions/.gitignore b/cases/solutions/.gitignore index 08d648a..22d27ee 100644 --- a/cases/solutions/.gitignore +++ b/cases/solutions/.gitignore @@ -1,3 +1,4 @@ /vscode/ /self-compiler/ /self-build-src/ +/mui-docs/ diff --git a/scripts/src/generateMatrix.ts b/scripts/src/generateMatrix.ts index 650f448..1c4d3d8 100644 --- a/scripts/src/generateMatrix.ts +++ b/scripts/src/generateMatrix.ts @@ -43,6 +43,7 @@ const scenarioConfig = { { name: "vscode", agent: "ts-perf1", location: "public" }, { name: "self-compiler", agent: "ts-perf2", location: "public" }, { name: "self-build-src", agent: "ts-perf3", location: "public" }, + { name: "mui-docs", agent: "ts-perf1", location: "public" }, ], tsserver: [ { name: "Compiler-UnionsTSServer", agent: "ts-perf1", location: "internal" },