build: have config prompted and a way to run the build script anywhere #867

mklabs opened this Issue Nov 23, 2011 · 4 comments


None yet

4 participants

mklabs commented Nov 23, 2011

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

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

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

runnable build script from outside the build/ dir

It would probably be better to open another issue, but I'm doing it right here since I see it kinda related.

It would be cool to be able to run the build script from anywhere on the system. I'm not sure how it could be applied to the ant script but I'm thinking basically about some kind of executable wrapper around the build scripts (like an h5bp-build command).

The idea is to make it easier to run the build script on a variety of folder structure, and not necessarely from within an h5bp clone or download.

The scripts should know from where the command is run, and adjust relative paths accordingly. Doing so, it may provide a greater level of flexibility (combined with prompts, or local configuration).

The command may even include some scaffolding helper, by using the script.

I'm also thinking about a way for users to define custom tasks, that would override some part of the build script and let users define their own js task (to run requirejs optimizer for instance), or the css part (like running a less or sass compile step). But this issue description is getting pretty long, so.. I guess I'll stop there :)






necolas commented Feb 3, 2012

@mklabs @roblarsen Please can you guys port this over to the ant/node repos if you're interested in pursuing this. Thanks

@mklabs mklabs referenced this issue in mklabs/node-build-script Feb 3, 2012

build: have config prompted #2

mklabs commented Feb 3, 2012

@necolas Thanks necolas. Moved to mklabs/node-build-script#2

@mklabs mklabs closed this Feb 3, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment