-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
1,110 additions
and
180 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
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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Forbidden if something has not been commited | ||
if ! git diff-index --quiet HEAD --; then | ||
echo "Please commit your local changes!" | ||
exit 1 | ||
fi | ||
|
||
# Extract details concerning the current environnment | ||
rawCurrentBranch="$(git branch | grep "*")" | ||
currentBranch="$(expr substr "${rawCurrentBranch}" 3 1000)" | ||
|
||
# Move to commit and build it | ||
commitId=$1 | ||
if [ -z "$commitId" ] | ||
then | ||
echo "Please provide a commit id!" | ||
exit 1 | ||
fi | ||
target=$2 | ||
if [ -z "$target" ] | ||
target="es6" | ||
fi | ||
git checkout "${commitId}" | ||
yarn | ||
./node_modules/typescript/bin/tsc --target "${target}" --outDir "lib-${commitId}/" | ||
|
||
# Move back to original location | ||
git checkout "${currentBranch}" |
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
Oops, something went wrong.