forked from aaronlord/laroute
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moved zero routes check to artisan command for testability purposes Changed js file paths Removed public folder Updated changelog
- Loading branch information
Showing
25 changed files
with
152 additions
and
282 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 |
---|---|---|
@@ -1,9 +1,8 @@ | ||
build | ||
docs | ||
vendor | ||
node_modules | ||
coverage | ||
phpunit.xml | ||
composer.phar | ||
composer.lock | ||
.idea | ||
/.idea | ||
/build | ||
/public | ||
/vendor | ||
/node_modules | ||
/coverage | ||
/composer.lock | ||
/composer.phar |
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
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
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,55 @@ | ||
#!/usr/bin/env bash | ||
|
||
# GET SCRIPT PATH | ||
SOURCE="${BASH_SOURCE[0]}" | ||
# Resolve $SOURCE until the file is no longer a symlink | ||
while [[ -h "$SOURCE" ]]; do | ||
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" | ||
SOURCE="$(readlink "$SOURCE")" | ||
# if $SOURCE was a relative symlink, we need to resolve it relative | ||
# to the path where the symlink file was located | ||
[[ ${SOURCE} != /* ]] && SOURCE="$DIR/$SOURCE" | ||
done | ||
SCRIPT_PATH="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )" | ||
if [[ -z "$SCRIPT_PATH" ]] ; then | ||
exit 1 # fail | ||
fi | ||
|
||
# CD TO SCRIPT PATH | ||
cd ${SCRIPT_PATH} | ||
|
||
# CHECK TEST DEPENDENCIES | ||
if ! hash grunt; then | ||
echo "You must have grunt-cli installed!" | ||
exit 1 | ||
fi | ||
if [[ ! -f ./composer.phar ]] && ! hash composer; then | ||
echo "You must have composer installed or PHP and composer.phar!" | ||
exit 1 | ||
fi | ||
if ! hash npm; then | ||
echo "You must have npm installed!" | ||
exit 1 | ||
fi | ||
|
||
# GET TOOLS PATHS | ||
if [[ -f ./composer.phar ]]; then | ||
if ! hash php; then | ||
echo "You must have PHP installed!" | ||
exit 1 | ||
fi | ||
PHP_BIN=$(which php) | ||
COMPOSER_BIN="$PHP_BIN ./composer.phar" | ||
else | ||
COMPOSER_BIN=$(which composer) | ||
fi | ||
GRUNT_BIN=$(which grunt) | ||
NPM_BIN=$(which npm) | ||
|
||
# RUN TESTS | ||
# Uglify/minify JS template file | ||
${GRUNT_BIN} | ||
# Run PHP tests | ||
${COMPOSER_BIN} test | ||
# Run JS tests | ||
${NPM_BIN} test |
Oops, something went wrong.