'use strict';
var fs = require('fs');
var util = require('util');
var path = require('path');
var yeoman = require('yeoman-generator');


var ServerGenerator = yeoman.generators.Base.extend({
	init: function () {},

	directories: function() {
		this.dest.mkdir('routes');
		this.dest.mkdir('views');
	},

	serverFiles: function() {
		var done = this.async();
		
		this.remote('linnovate', 'mean', 'master', function(err, remote) {
			if (err) {
				return done(err);
			}

			// remote.copy('server.js', 'server.js');

			// remote.directory('server', 'server');

			done();
		});
	}
});

module.exports = ServerGenerator;
@@ -255,16 +255,129 @@
 .mkdir('
+server');%0A%09%09this.dest.mkdir('server/config');%0A%09%09this.dest.mkdir('server/controllers');%0A%09%09this.dest.mkdir('server/
 routes')
@@ -397,16 +397,23 @@
 .mkdir('
+server/
 views');

change server directory structure