/
quicktest.sh
40 lines (31 loc) · 1006 Bytes
/
quicktest.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# First time after cloning the repository, run:
# bash quicktest.sh --build-core
# Next time, if src/js/fable-core files haven't changed, just:
# bash quicktest.sh
ARGS="$@"
if [ "${ARGS/--no-build/}" = "$ARGS" ]; then
echo "Building Fable.Compiler..."
dotnet build ../dotnet/Fable.Compiler
fi
if [ "${ARGS/--build-core/}" != "$ARGS" ]; then
echo "Building fable-core..."
rm -rf .fable
pushd ../..
dotnet publish src/dotnet/Fable.Core -o ../../../build/fable
yarn
# Compile fable-splitter
yarn tsc --project src/js/fable-splitter
cp src/js/fable-splitter/src/*.js src/js/fable-splitter/dist/
# yarn tslint --project src/js/fable-core
yarn tsc --project src/js/fable-core
popd
pushd ../js/fable-core
dotnet restore
bash quickfsbuild.sh --no-build
popd
dotnet restore
fi
pushd ../dotnet/Fable.Compiler
dotnet run --no-build yarn-splitter --cwd ../../tools --fable-core ../../../build/fable-core
popd
node temp/QuickTest.js