Skip to content

a new project template for Express 4 (connect middleware is now splitted into several modules) #162

Closed

Description

@paulvi

discussion started in #161

As far as I remember, Express 4 has other way to create new project

  • TODO read docs,
  • make option in wizard about what executable to call

Activity

  1. dwwaddell commented on Sep 15, 2014

    @dwwaddell

    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

  2. paulvi commented on Sep 15, 2014

    @paulvi
    MemberAuthor

    From http://expressjs.com/guide.html "Using express(1) to generate an app"

    $ npm install -g express-generator

    then it is identical to what was before

    the option is not mentioned at http://expressjs.com/guide.html

    --hbs add handlebars engine support

  3. paulvi commented on Sep 15, 2014

    @paulvi
    MemberAuthor

    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).

  4. paulvi commented on Sep 16, 2014

    @paulvi
    MemberAuthor

    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.

  5. paulvi commented on Sep 16, 2014

    @paulvi
    MemberAuthor

    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

  6. paulvi commented on Sep 25, 2014

    @paulvi
    MemberAuthor

    As answered on
    http://stackoverflow.com/questions/26007228/how-to-update-express-js-template-in-nodeclipse
    2 steps are enough:

    1. get latest express-generator installed

      npm install -g express-generator

    it would add express executable with the same params but for 4.x version of express

    2 .Then Eclipse Nodeclipse preferences should be updated, e.g.

    C:\Users\yourusername\AppData\Roaming\npm\node_modules\express-generator\bin\express

  7. added this to the milestone on Sep 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions