1express = require 'express' 2 3module.exports = (grunt) -> 4 grunt.registerTask 'test', [ 'build', 'express' ] 5 6 grunt.registerTask 'express', 'Launches basic HTTP server for tests', -> 7 app = express() 8 9 app.use express.static __dirname + '/' 10 app.use express.directory __dirname + '/' 11 app.use '/src', express.static __dirname + '/../src' 12 app.use '/pkg', express.static __dirname + '/../pkg' 13 app.use '/components', express.static __dirname + '/../components' 14 15 app.listen 3000 16 grunt.log.ok 'You can access tests on ' + 'http://localhost:3000'.blue + ' (Ctrl+C to stop)' 17 @async() 18