h5bp/ant-build-script — Issue #7: Interactive Tasks to Prompt for Configuration Information
Author: roblarsen
Created: 2012-02-04 13:31:35+00:00
State: open
Labels: new feature

from: https://github.com/h5bp/html5-boilerplate/issues/867

Here are random thoughts and ideas on the build scripts. I think it could apply to both the ant and cake version.

The idea here is to make the scripts easier to work with, guiding the user along the way and prompting for the more common configuration values.

The more I think about it, the more I see this as some kind of wizards, maybe related to #796. The docs and guiding could be part of the build script itself. Might be a terrible idea though, but I'd like to hear other thoughts on this. Users may configure how the build script behaves without editing configuration files.

What I can think of is

some of the directory paths (like source, publish, js paths, css and images).
the list of html pages to process
probably other options like file.root.script and file.root.stylesheet

Each of these prompted values would have a description and a default value (most likely from default.properties). We may think of using the project.properties file to store these values.

For ant, the input task may be used to do this.