 
 BUILD_FOLDER = './phonegap-build/www/'
 EXPRESS_PORT = 4000
+ANY_GLOB =     'src/*'
+CONTENT_GLOB = 'src/**/*.png'
+STYLES_GLOB =  'src/*.less'
+SCRIPTS_GLOB = 'src/*.coffee'
+MARKUP_GLOB =  'src/*.jade'
+MAIN_SCRIPT =  'src/index.coffee'
 
 startExpress = ->
 	app = express()

		.pipe fixSourceMaps()
		.pipe gulp.dest BUILD_FOLDER

MARKUP_GLOB = './src/*.jade'
markup = ->
	gulp.src MARKUP_GLOB
		.pipe jade pretty: true


gulp.task 'browse', ['watch'], ->
	startExpress()
	gulp.src ANY_GLOB
		.pipe open '', url: "http://localhost:#{EXPRESS_PORT}/"

gulp.task 'run-android', ['build'], ->
	gulp.src ANY_GLOB
		.pipe exec 'pushd phonegap-build && phonegap run android && popd'

gulp.task 'run-ios', ['build'], ->
	gulp.src ANY_GLOB
		.pipe exec 'pushd phonegap-build && phonegap run ios && popd'

gulp.task 'default', ['build']
