-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cakefile tasks have been moved to module.
- Loading branch information
Showing
2 changed files
with
5 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters