expressjs / expressjs/generator

Improvements to the Generator

Open
#80 5 comments 1 reaction 0 assignees View on GitHub
ideas
Dominant language
JavaScript
Stars
1.9k
Forks
548
PR merge metrics
No merged PRs in 30d

Description

After a discussion (quite a while ago) with @dougwilson I've been thinking about how we could improve the boilerplate generator for express. The generator itself hasn't really gone through an overhaul since it was converted from a short script that concat'd a bunch of source together and outputted some files into a nice set of templates with improvements to the file structure.

With some large changes to the generator I think we can make express a lot better as a starting point for building your own tailored framework. Right now the choices you have for the generated code are fairly shallow. I think we can expand these choices to include what a lot of people are using express for. The changes are fairly large though.

Here is what I am thinking:
- A preference file, allowing you to configure every aspect of the generated code. [Here is an example](https://gist.github.com/ritch/9f1aeccde4bdd01bb12a)
- A set of templates that you can modify to generate code in your exact style.
- The executable would take the preferences and templates as input and output an Express app.

Obviously there are a lot of specifics missing and the example preference file is fairly magic looking. So before I go much further with the idea I wanted to test the waters to see if this idea had any merit. Also there might be other ideas / projects underway that do this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.