Permalink
Browse files

Moved files to /src and compiled files to /build

  • Loading branch information...
neojp committed May 8, 2012
1 parent 9b7773f commit 1f8f146714b08e248df58686f4630ca84c718085
View
@@ -3,8 +3,5 @@
Thumbs.db
node_modules
public/uploads/*
-./*.js
-models/*.js
-lib/*.js
-config.json
-logs/*
+build/*
+config.json
View
@@ -13,7 +13,7 @@ task 'build:stylus', 'Watch Stylus source files and build CSS files', ->
'--compress',
'--watch',
- # Output files on /public
+ # Output files to /public
'--out',
'public'
]
@@ -52,14 +52,16 @@ task 'build:coffee-src', 'Watch CoffeeScript source files and build JS files', -
# watch and compress
'--bare',
'--watch',
- '--compile'
+ '--compile',
+
+ # Output files to /build
+ '--output',
+ 'build/'
]
# list of files to compile
files = [
- 'app',
- 'lib/',
- 'models'
+ 'src'
]
# merge args & files
@@ -130,7 +132,7 @@ task 'supervisor', 'Watch source files and restart the server upon changes', ->
# option arguments
options = [
'--watch',
- '.,lib,models',
+ '.,build/,build/lib/,build/models/',
'--exec',
'node',
'app.js'
@@ -159,7 +161,7 @@ task 'mkdir', 'Create directories and set permissions', ->
fs = require 'fs'
path = require 'path'
- directories = ['public/uploads', 'logs']
+ directories = ['public/uploads', 'logs', 'build']
directories.forEach (dir) ->
fs.mkdirSync dir unless path.existsSync dir
Oops, something went wrong.

0 comments on commit 1f8f146

Please sign in to comment.