Skip to content

Commit

Permalink
add babel
Browse files Browse the repository at this point in the history
  • Loading branch information
liuxingbaoyu committed Jan 11, 2024
1 parent 8778a65 commit a51f28f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
13 changes: 13 additions & 0 deletions cases/scenarios/babel/scenario.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "babel",
"kind": "tsc",
"args": [
"-p",
"${suiteDirectory}/babel",
"--outdir",
"${outDirectory}"
],
"platforms": [
"linux"
]
}
17 changes: 17 additions & 0 deletions cases/scenarios/babel/setup.sh
Original file line number Diff line number Diff line change
@@ -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/babel/babel.git $SOLUTION_DIR
fi

cd $SOLUTION_DIR
git clean -fdx
git reset --hard HEAD
git switch --detach 00853017dda14778bdb9bafd651d2e6b64449e2a
COREPACK_ENABLE_STRICT=0 corepack yarn@1.22.21 install --ignore-scripts
1 change: 1 addition & 0 deletions cases/solutions/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/self-build-src/
/mui-docs/
/webpack/
/babel/

0 comments on commit a51f28f

Please sign in to comment.