2014-02-11 00:09:04 +01:00
|
|
|
module.exports = function (grunt) {
|
2014-06-19 19:18:56 +02:00
|
|
|
grunt.registerTask('server', function (keepalive) {
|
2014-06-13 00:51:06 +02:00
|
|
|
var done = this.async();
|
|
|
|
var DevServer = require('../test/utils/dev_server');
|
|
|
|
var server = new DevServer();
|
2014-09-16 20:19:36 +02:00
|
|
|
|
2014-06-19 19:21:20 +02:00
|
|
|
server.listen(8000).then(function () {
|
2014-06-13 00:51:06 +02:00
|
|
|
console.log('visit http://localhost:8000');
|
2014-09-16 20:19:36 +02:00
|
|
|
|
|
|
|
if (keepalive !== 'keepalive') {
|
|
|
|
done();
|
|
|
|
}
|
2014-06-13 00:51:06 +02:00
|
|
|
});
|
|
|
|
});
|
2015-01-14 22:46:04 +01:00
|
|
|
};
|