.setup/install.sh
Oh. That's it.
Here's a small shell script that you can save as server.sh
which opens and servers the current directory on the port specified:
port=$1
if [ $# -ne 1 ]
then
port=8000
fi
if [ $(uname -s) == "Darwin" ]
then
open=open
else
open=xdg-open
fi
$open http://localhost:$port && python -m SimpleHTTPServer $port;
For example, run this guy as:
./server.sh 8000
Yeoman supports:
- Modern browsers (latest versions of Chrome, Safari, Firefox, Opera and IE10)
- Chrome on Android
- Mobile Safari
The current documentation can be found here.