-
Notifications
You must be signed in to change notification settings - Fork 133
Add Jordan's Spago flowchart for visual overview of workflow #211
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
Conversation
@JordanMartinez thanks! As I mentioned in Slack, I think we should adjust the diagram a bit, because:
|
Agreed.
I think the 'what happens under the hood' is the basic idea I'm trying to explain here. It helps one understand the larger context and why Spago uses the terms it does. We could cover the typical user workflow in a separate flowchart or just via a step-by-step process similar to what I did in https://github.com/JordanMartinez/purescript-jordans-reference/blob/latestRelease/02-Build-Tools/05-Spago--Project-Workflow.md |
@f-f Can you ping me on this PR once all dependent work is finished? Then I can get back to it. |
@JordanMartinez sorry for delay, the global cache thing was kind of a big brick but now everything has been merged 🎉
Wonderful! Then how about splitting this in two sections under Explanations:
Nice, this is basically what we already have in the "Super quick tutorial", except you also have a section about Parcel, which we could add here! |
@f-f I'm going to check out the latest Spago release and then get back to this. However, it's going to be a few more days before I do anything. |
@JordanMartinez that's basically it! Some small notes:
|
Does this mean code can only be fetched from GitHub (as opposed to things like BitBucket/Gitlab)?
I think copying them makes more sense. If I deleted the global cache file, shouldn't my code still compile? If we just pointed there, that would no longer be the case. Although this is also true with local dependencies, it's fine in that situation because the end-user is the one adding them and is thus responsible for maintaining them.
Yeah. This isn't a first draft to what I want to produce, but more just a way for me to ensure I'm understanding it correctly myself. |
@JordanMartinez yes, we literally hardcode GitHub here: Though I know that GitLab also has a url for tarballs, so if we ever get non-GitHub packages in the package set we can probably extend this. |
@JordanMartinez looks good. Some further comments:
|
Sorry for my lack of response. I was at LambdaConf this past week/weekend.
Perhaps I should visually distinguish one group of arrows from another? In such a case, black arrows could represent copying from one place to another, and blue arrows could represent transitions (or some other color scheme like that).
Ah... Good to know.
Hmm... Ok. I'll have to rethink how to do that one. I'll try to finish this PR by tomorrow. |
@JordanMartinez no worries, hope you enjoyed the conf! 🙂
I thought about that, but maybe it's better to just let go of the arrows. After all if you need to modify your package set the flow is straight: you add the packages there and eventually
Another thing I noticed is that there should be some instructions on how to edit and regenerate the diagram. We already have a section with instructions on how to hack on Spago so they could be added there |
Good point. I'll work on that, too. |
A few other questions I have... Where should I store the |
Sigh... That whitespace issue again... Let me fix it. |
@JordanMartinez looks great!
Let's go with
I actually gave up on that markdown feature, so don't worry about whitespace refactoring 🙂 |
@JordanMartinez thank you very much for doing this! 👏 |
Np! Thanks for working on this project. It's been very useful! |
…ipt#211) A flowchart of what Spago does 'under the hood'
Description of the change
Adds the flowchart I created in my learning repo's Spago-Explained.md file.
PR checklist:
Ok @f-f Let's discuss!