Skip to content

Commit

Permalink
Cakefile tasks have been moved to module.
Browse files Browse the repository at this point in the history
  • Loading branch information
fahad19 committed Mar 5, 2013
1 parent c2c65c6 commit 7f1f27c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 34 deletions.
33 changes: 2 additions & 31 deletions Cakefile
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
config = require './config'
Singool = require 'singool'

server = (serveStatic = false) ->
singool = new Singool config
server = singool.createServer(serveStatic)
port = process.env.PORT || 3000
server.listen port
console.log 'Server running at http://localhost:' + port

task 'server', 'Real time server', ->
server()

task 'build', 'Build layout, js and css', ->
singool = new Singool config
singool.build()

task 'static', 'Build and serve static files', ->
singool = new Singool config
singool.build ->
server true

task 'clear', 'Delete build files', ->
singool = new Singool config
singool.clear()

task 'test', 'Run tests', ->
config.test = true
config.init = false
singool = new Singool config
server = singool.createServer()
port = process.env.PORT || 3000
server.listen port
console.log 'Test server running at http://localhost:' + port
singool = new Singool config
singool.registerTasks()
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"name": "my-singool-app",
"version": "0.0.1",
"engines": {
"node": "0.6.x",
"npm": "1.1.x"
"node": "0.8.x",
"npm": "1.2.x"
},
"dependencies": {
"coffee-script": "1.3.x",
"coffee-script": "1.6.x",
"singool": "0.5.x"
}
}

0 comments on commit 7f1f27c

Please sign in to comment.