Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build group for fake. Different Bootstrap files. mode for webpack
- Loading branch information
Showing
7 changed files
with
48 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -395,3 +395,4 @@ paket-files/ | |
tests | ||
*eventstore.json | ||
.history/ | ||
packages/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
#!/bin/bash | ||
if test "$OS" = "Windows_NT" | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
cd "$(dirname "$0")" | ||
|
||
PAKET_EXE=.paket/paket.exe | ||
FAKE_EXE=packages/build/FAKE/tools/FAKE.exe | ||
|
||
FSIARGS="" | ||
FSIARGS2="" | ||
OS=${OS:-"unknown"} | ||
if [ "$OS" != "Windows_NT" ] | ||
then | ||
# use .Net | ||
.paket/paket.exe restore | ||
exit_code=$? | ||
if [ $exit_code -ne 0 ]; then | ||
exit $exit_code | ||
fi | ||
# Can't use FSIARGS="--fsiargs -d:MONO" in zsh, so split it up | ||
# (Can't use arrays since dash can't handle them) | ||
FSIARGS="--fsiargs" | ||
FSIARGS2="-d:MONO" | ||
fi | ||
|
||
packages/FAKE/tools/FAKE.exe $@ --fsiargs build.fsx | ||
else | ||
# use mono | ||
mono .paket/paket.exe restore | ||
exit_code=$? | ||
if [ $exit_code -ne 0 ]; then | ||
exit $exit_code | ||
run() { | ||
if [ "$OS" != "Windows_NT" ] | ||
then | ||
mono "$@" | ||
else | ||
"$@" | ||
fi | ||
mono packages/FAKE/tools/FAKE.exe $@ --fsiargs -d:MONO build.fsx | ||
fi | ||
} | ||
|
||
run $PAKET_EXE restore | ||
run $FAKE_EXE "$@" $FSIARGS $FSIARGS2 build.fsx | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters