jackrobertscott / solis-151011

Task running utilities for website development
0 stars 0 forks source link

Template module structure #15

Closed jackrobertscott closed 8 years ago

jackrobertscott commented 8 years ago

Reconsider how templates may be built.

Consider current structure of template modules:

.
+-- init
    +-- questions.json
    +-- templates
        +-- .gitignore
        +-- bower.tpl.json
        +-- etc...

This structure allows templates to decide which files should be rendered through templating engine (by appeding the ext '.tpl' to a file) and provides questions for inquirer.js to ask to which the answers are used in templating the files.

This format is lacking following abilities:

That said, this is not a complete list of desired features and not all mentioned features may be desired for compilation, but there is definitely room for improvement in current system.

jackrobertscott commented 8 years ago

Custom file names may be set by renaming files like the following:

example.file.txt --> {{fname}}.file.txt

Then using the corresponding inquirer data value, replace {{fname}} with data value.

jackrobertscott commented 8 years ago

Give templates the ability to run shell scripts before or after generator runs.