Created
May 27, 2016 09:30
-
-
Save petrjasek/3697d7254800d2fc3d19bf5135968e5b to your computer and use it in GitHub Desktop.
This file contains hidden or 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
'use strict'; | |
module.exports = function(grunt) { | |
require('superdesk-core/Gruntfile')(grunt); | |
grunt.loadNpmTasks('grunt-connect-proxy'); | |
var middlewareConfig = grunt.config('connect.test.options.middleware'); | |
grunt.config('connect.test.options.middleware', function(connect, options, middlewares) { | |
middlewares.push(require('grunt-connect-proxy/lib/utils').proxyRequest); | |
middlewareConfig(connect, options, middlewares); | |
return middlewares; | |
}); | |
grunt.config('connect.proxies', [ | |
{ | |
context: '/test', | |
host: 'superdesk.org', | |
port: 5000 | |
} | |
]); | |
grunt.registerTask('server', [ | |
'clean', | |
'style', | |
'template:test', | |
'configureProxies:test', | |
'connect:test', | |
'watch' | |
]); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment