You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
a new project template for Express 4 (connect middleware is now splitted into several modules) #162
A common option in creating a project is the "-e" which uses ejs instead of Jade:
express --help
Usage: express [options] [dir]
Options:
-h, --help output usage information
-V, --version output the version number
-e, --ejs add ejs engine support (defaults to jade)
--hbs add handlebars engine support
-H, --hogan add hogan.js engine support
-c, --css add stylesheet support (less|stylus|compass) (defaults to plain css)
-f, --force force on non-empty directory
As I see now, no changes are needed, but user needs to insure that he/she has run
$ npm install -g express-generator
so that he generated newer 4.x version
(When I was looking at express 3 months before, there was a mess with new express-generator using different executable name and syntax. Now it looks like version compatible).
There is hidden EXPRESS_VERSION preference, but I don't really follow logic.
It was written by @tomotaro1065 more than a ear ago.
Making it all straight need some time (about half a day), but I don't plan to spend time for Express that I don't use. At least alone... If we can agree to push it out together, I would sign up, even if you won't code.
Activity
dwwaddell commentedon Sep 15, 2014
A common option in creating a project is the "-e" which uses ejs instead of Jade:
express --help
Usage: express [options] [dir]
Options:
-h, --help output usage information
-V, --version output the version number
-e, --ejs add ejs engine support (defaults to jade)
--hbs add handlebars engine support
-H, --hogan add hogan.js engine support
-c, --css add stylesheet support (less|stylus|compass) (defaults to plain css)
-f, --force force on non-empty directory
paulvi commentedon Sep 15, 2014
From http://expressjs.com/guide.html "Using express(1) to generate an app"
then it is identical to what was before
the option is not mentioned at http://expressjs.com/guide.html
paulvi commentedon Sep 15, 2014
Related code
https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/src/org/nodeclipse/ui/wizards/ExpressProjectWizard.java
https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/src/org/nodeclipse/ui/wizards/ExpressProjectWizardPage.java
paulvi commentedon Sep 15, 2014
As I see now, no changes are needed, but user needs to insure that he/she has run
$ npm install -g express-generatorso that he generated newer 4.x version
(When I was looking at express 3 months before, there was a mess with new express-generator using different executable name and syntax. Now it looks like version compatible).
paulvi commentedon Sep 16, 2014
Things get blurred when looking at existing code
https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/src/org/nodeclipse/ui/preferences/PreferenceInitializer.java#L105-109
There is hidden EXPRESS_VERSION preference, but I don't really follow logic.
It was written by @tomotaro1065 more than a ear ago.
Making it all straight need some time (about half a day), but I don't plan to spend time for Express that I don't use. At least alone... If we can agree to push it out together, I would sign up, even if you won't code.
paulvi commentedon Sep 16, 2014
First, I don't like creating GUI solution for some specific versions of specific frameworks.
FYI, some parts would be like executing from command line, see https://github.com/Nodeclipse/nodeclipse-1/blob/master/org.nodeclipse.ui/src/org/nodeclipse/ui/preferences/PreferenceInitializer.java#L176-190
paulvi commentedon Sep 25, 2014
As answered on
http://stackoverflow.com/questions/26007228/how-to-update-express-js-template-in-nodeclipse
2 steps are enough:
get latest
express-generatorinstallednpm install -g express-generator
it would add
expressexecutable with the same params but for 4.x version of express2 .Then Eclipse Nodeclipse preferences should be updated, e.g.
C:\Users\yourusername\AppData\Roaming\npm\node_modules\express-generator\bin\express