Skip to content

Commit

Permalink
Fix maglev create <project> CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
tregagnon committed May 25, 2015
1 parent e888383 commit 7c475b6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions lib/cli/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ var mainTemplate = [
, ' </head>'
, ' <body>'
, ' <h1><%= title %></h1>'
, ' <p>Welcome aboard! Visit <a href="http://maglevjs.org/">maglevjs.org</a> for details.</p>'
, ' <p>Welcome aboard! Visit the <a href="https://github.com/viadeo/maglev">GitHub project page</a> for details.</p>'
, ' </body>'
, '</html>'
].join(eol);
Expand Down Expand Up @@ -174,8 +174,7 @@ var viewsInitializer = [

var middlewareInitializer = [
'var express = require(\'express\')'
, ' , poweredBy = require(\'connect-powered-by\');'
, ' , favicon = require(\'static-favicon\')'
, ' , poweredBy = require(\'connect-powered-by\')'
, ' , bodyParser = require(\'body-parser\')'
, ' , methodOverride = require(\'method-override\')'
, ' , errorHandler = require(\'errorhandler\');'
Expand All @@ -189,11 +188,10 @@ var middlewareInitializer = [
, ' }'
, ''
, ' this.use(poweredBy(\'Maglev\'));'
, ' this.use(favicon());'
, ' this.use(express.static(__dirname + \'/../../public\'));'
, ' this.use(bodyParser());'
, ' this.use(methodOverride());'
, ' this.use(express.json());'
, ' this.use(bodyParser.json());'
, ' this.use(bodyParser.urlencoded({}));'
, ' this.use(this.router);'
, ' this.use(errorHandler());'
, '}'
Expand Down Expand Up @@ -238,14 +236,13 @@ var packageJSON = [
, ' "version": "0.0.1",'
, ' "private": true,'
, ' "dependencies": {'
, ' "maglev": "0.5.x",'
, ' "maglev": "git+ssh://[email protected]/viadeo/maglev.git#v0.6.0",'
, ' "bootable": "0.2.x",'
, ' "bootable-environment": "0.2.x",'
, ' "express": "4.x.x",'
, ' "connect-powered-by": "0.1.x",'
, ' "ejs": "0.8.x"'
, ' "ejs": "0.8.x",'
, ' "morgan": "1.x.x",'
, ' "static-favicon": "1.x.x",'
, ' "body-parser": "1.x.x",'
, ' "method-override": "1.x.x",'
, ' "errorhandler": "1.x.x"'
Expand Down

0 comments on commit 7c475b6

Please sign in to comment.