Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

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

Closed
mklabs opened this Issue · 4 comments

4 participants

Mickael Daniel Divya Manian Addy Osmani Nicolas Gallagher
Mickael Daniel

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

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 createproject.sh 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 :)

Cheers,

Addy Osmani

+9001

Nicolas Gallagher
Owner

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

Mickael Daniel

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

Mickael Daniel mklabs closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.