-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Update gulp tasks to allow setting different destinations - Add gulp prep-diff - Add travis.yml for CI - Add validate.sh for travis to run & diff files to ensure build run before branch merging - update npm dependencies, lock to specific versions
- Loading branch information
1 parent
93e5658
commit ec6d8b2
Showing
8 changed files
with
110 additions
and
63 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS_Store | ||
.tmp | ||
node_modules | ||
bower_components | ||
concept |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
red=`tput setaf 1` | ||
green=`tput setaf 2` | ||
reset=`tput sgr0` | ||
|
||
echo 'Validating build' | ||
# options tried: | ||
# -uB --ignore-blank-lines --ignore-space-change --strip-trailing-cr | ||
if ! assetdiff=$(diff -uB --ignore-blank-lines --ignore-space-change --strip-trailing-cr ./.tmp/build ./dist) ; then | ||
echo "${red}[ERROR] There is a diff that needs to be resolved (run gulp min) ${reset}" | ||
echo "$assetdiff" | ||
exit 1 | ||
else | ||
echo "${green}[SUCCESS] No diff ${reset}" | ||
exit 0 | ||
fi |