Add cobra, move the server code into its own package

This commit is contained in:
khlieng 2015-05-01 22:59:46 +02:00
parent bb729a5c8e
commit e63c012aad
57 changed files with 6910 additions and 145 deletions

View file

@ -85,11 +85,11 @@ gulp.task('gzip', ['html', 'css', 'js', 'fonts'], function() {
function bindata(cb) {
if (argv.production) {
exec('go-bindata -nomemcopy -o ../bindata.go dist/...', function(err) {
exec('go-bindata -nomemcopy -pkg server -o ../server/bindata.go dist/...', function(err) {
cb(err);
});
} else {
exec('go-bindata -debug -o ../bindata.go dist/...', function(err) {
exec('go-bindata -debug -pkg server -o ../server/bindata.go dist/...', function(err) {
cb(err);
});
}