-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Derive the output directory of a web project repo #91
Comments
What problem are you trying to solve with this? In what situation would you use this? |
I have an electron app.. you input a repo url
Without knowing the resultant I don't want to impose anything on the developer and at the same time I would like to support as many apps as possible, out of the box so to speak. An optimistic (but still naive) approach I took was to go through the common list of output directory names and check if the said directory exists in the I just know that there is a better approach and despite it's impure nature, I thought it might be your type of problem 💯 (again, I am aware of the fact there there really is no way of guaranteeing a correct answer and that this problem is very domain specific, sorry). Even something like comparing the directory structure before and after |
I built a whole suite of modules to make build output and their paths more deterministic and standardized. See build-dir and friends. I could probably make some kind of adapter that would funnel builds from other systems into a well-known location created by I think a directory diff before & after |
@sholladay that sounds awesome! I still haven't made any attempt to resolve the issue myself, if you take a stab at it keep me posted. If it works I will happily resurrect the project mentioned above and try it out 👍 |
The norm for web based projects (that employ a build pipeline at least) is that there are
src
files that get built into an output directory.. there is no established naming convention for such output directories although there are some common names:I would love a script that does its best to derive the name of the output directory containing the distributed files.. ideally before a build has happened.
I realise this operation is never going to be fully deterministic.. but I know that the problem can be tackled procedurally by human with a good degree of accuracy. Some pointers can often be found by:
README.md
package.json
namely thebuild
script taskgulp
orgrunt
file.gitignore
The text was updated successfully, but these errors were encountered: