Inconsistent build process
Describe the bug The build process seems inconsistent.
It sometimes builds a subset of the guides, and other times all the guides.
Demo: https://www.loom.com/share/b2c20155becc4801b9e3c35d45b44572?sid=37898b64-4289-4ab3-b95e-9d1af9876f40
To Reproduce Steps to reproduce the behavior:
- Create a guide
- Edit the guide
- Run
npm run serve - Rinse & repeat 1 through 3
Current commit: https://github.com/ykdojo/sfquickstarts/commit/a7d3a7510c9360c1843cbf06fd3e03f6b4b6f2e6
Update: I found a good way to get around this problem.
The complication arises because npm run serve tries to build all guides all at once, which takes a lot of time and can run into many issues.
So, I realized I can do:
find . -maxdepth 1 -type d ! -name 'a_comprehensive_guide_creating_graphql_api_on_top_of_snowflake_using_propel' -exec rm -rf {} +
To temporarily remove all guides except for the one I'm working on.
Then, npm run serve runs much faster and more reliably.
When I'm done with the current change, I can do:
git add a_comprehensive_guide_creating_graphql_api_on_top_of_snowflake_using_propel
git commit -m "Commit message"
to commit it.
Then:
git checkout HEAD -- .
to clean it up.
With this, I was able to make a draft PR: https://github.com/Snowflake-Labs/sfquickstarts/pull/991/files#diff-c512cdadf2ecc97067d940ff4417aa35760469f0d5a459ae2a5e555adc212821
(I'll clean it up soon - updating screenshots, going through the whole flow again, and then I'll send it as a regular PR.)