pretext-cli icon indicating copy to clipboard operation
pretext-cli copied to clipboard

default value for `project/@stage`

Open Alex-Jordan opened this issue 1 year ago • 2 comments

In a project file, the default value for project/@output-dir is output. And the default value for project/@stage is output/stage. If you override the first default, with say project/@output-dir="myoutput" and then you deploy, it creates an output/stage/ folder (creating the intermediate output/ folder) and now your file tree has both output/ and myoutput/.

Thoughts on making stage just not be a subfolder of output?

Alex-Jordan avatar Feb 09 '24 17:02 Alex-Jordan

Hot take, I forget why we put the default stage in output (maybe just to be lazy with gitignores), but I think having stage as a sibling of output makes sense.

StevenClontz avatar Feb 09 '24 18:02 StevenClontz

I don't love having another root-level folder for this, as for most users currently, stage will be identical to output/web. I think having both will be confusing.

No reason we can't get the location of stage to be relative to the value of project/@stage with default being the stage subdirectory of the actual project/@output directory.

oscarlevin avatar Feb 17 '24 23:02 oscarlevin