This commit is contained in:
Nick Winter 2014-01-05 12:32:54 -08:00
commit f0989b67c9
5 changed files with 29 additions and 6 deletions

View file

@ -1,7 +1,14 @@
#!/bin/bash
# full script path include his name
_script="$(readlink -f ${BASH_SOURCE[0]})"
# Script location path (dir)
_base="$(dirname $_script)"
sleep 5
cd ~/Desktop/coco
cd $_base
cd ../
until node_modules/karma/bin/karma start; do
echo "Karma crashed with exit code $?. Respawning.." >&2
sleep 1

View file

@ -1,5 +1,11 @@
#!/bin/bash
#sleep 5
cd ~/Desktop/coco
# full script path include his name
_script="$(readlink -f ${BASH_SOURCE[0]})"
# Script location path (dir)
_base="$(dirname $_script)"
cd $_base
cd ../
node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --autotest --captureExceptions

View file

@ -1,4 +1,11 @@
#!/bin/bash
cd ~/Desktop/coco
# full script path include his name
_script="$(readlink -f ${BASH_SOURCE[0]})"
# Script location path (dir)
_base="$(dirname $_script)"
cd $_base
cd ../
node_modules/.bin/nodemon . --ext ".coffee|.js" --watch server --watch server.coffee --unittest

View file

@ -39,7 +39,10 @@ class DirectoryController(object):
raise errors.CoCoError(u"There was an error creating the directory structure, do you have correct permissions? Please remove all and start over.")
def remove_directories(self):
shutil.rmtree(self.tmp_directory)
shutil.rmtree(self.bin_directory + os.sep + "node",ignore_errors=True)
shutil.rmtree(self.bin_directory + os.sep + "mongo",ignore_errors=True)
def remove_tmp_directory(self):
shutil.rmtree(self.tmp_directory)

View file

@ -63,7 +63,7 @@ class SetupFactory(object):
print("3. ./coco-dev-server")
print("Once brunch is done, visit http://localhost:3000!")
def cleanup(self):
self.config.directory.remove_directories()
self.config.directory.remove_tmp_directory()
class MacSetup(SetupFactory):
def setup(self):