 ### config begin ###
-appName = 'app'
-
-scripts = [
+APP_NAME = 'app'
+
+SCRIPTS = [
 	'scripts/vendor/angular.min.js'
 	'scripts/vendor/angular-mocks.js'
 	'scripts/vendor/angular-animate.min.js'

			'angular-animate/angular-animate.min.js{,.map}'
			'angular-mocks/angular-mocks.js'
			'angular-route/angular-route.min.js{,.map}'
		], cwd: bowerDirectory
		.pipe flatten()
		.pipe gulp.dest "#{componentsDirectory}scripts/vendor/"

gulp.task 'flatten:styles', ['bower', 'clean:working'], ->
	gulp
		.src 'bootstrap/less/**/*.less', cwd: bowerDirectory
		.pipe flatten()
		.pipe gulp.dest "#{componentsDirectory}styles/"

gulp.task 'jade', ['copy:temp'], ->
	options =
		pretty: true

	gulp
		.src '**/*.jade', cwd: tempDirectory
		.pipe jade options
		.pipe gulp.dest tempDirectory

gulp.task 'less', ['copy:temp'], ->
	options =
		sourceMap: true
		sourceMapBasepath: path.resolve path.join tempDirectory, 'styles'

	gulp
		.src 'styles/styles.less', cwd: tempDirectory
		.pipe less options
		.pipe gulp.dest 'styles/', cwd: tempDirectory

gulp.task 'markdown', ['copy:temp'], ->
	gulp
		.src '**/*.{md,markdown}', cwd: tempDirectory
		.pipe markdown()
		.pipe gulp.dest tempDirectory

gulp.task 'ngClassify', ['copy:temp'], ->
	options =
		appName: appName or 'app'
		data:
			environment: 'dev'

	gulp
		.src '**/*.coffee', cwd: tempDirectory
		.pipe ngClassify options
		.pipe gulp.dest tempDirectory

gulp.task 'reload', ['build'], ->
	gulp
		.src 'index.html', cwd: distDirectory
		.pipe connect.reload()

gulp.task 'scripts', ['coffee']

			p.replace regex, '/'

	includify = ->
		scripts = []
		styles = []

		bufferContents = (file) ->
			return if file.isNull()
