Created
October 19, 2016 17:47
-
-
Save typeoneerror/8209fec54f7565ea7ce18ac60d40a230 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
if (deployTarget === 'development') { | |
ENV['ember-cli-mirage'] = { enabled: process.env.WITH_MIRAGE || false }; | |
} |
This file contains hidden or 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
{ | |
"scripts": { | |
"mirage": "./scripts/run -m" | |
} | |
} |
This file contains hidden or 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
#!/bin/bash | |
echo -n -e "\033]0;Ember\007"; | |
subdomain="" | |
mirage="" | |
while getopts d:m opts; do | |
case $opts in | |
d) subdomain="DOKI_SUBDOMAIN=$OPTARG " ;; | |
m) mirage="WITH_MIRAGE=true " ;; | |
esac | |
done | |
run_command="${subdomain}${mirage}ember server" | |
echo "Running \"${run_command}\"..." | |
eval $run_command | |
echo -n -e "\033]0;\007"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment