vuepress-plugin-blog
vuepress-plugin-blog copied to clipboard
fix dev/build scripts
Summary
Cleanup commands (rimraf lib
) should be completed before all other dev/build commands.
What kind of change does this PR introduce? (check at least one)
- [x] Bugfix
- [ ] Feature
- [ ] Code style update
- [ ] Refactor
- [ ] Docs
- [x] Build-related changes
- [ ] Other, please describe:
If changing the UI of default theme, please provide the before/after screenshot:
Does this PR introduce a breaking change? (check one)
- [ ] Yes
- [x] No
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
- [ ] When resolving a specific issue, it's referenced in the PR's title (e.g.
fix #xxx[,#xxx]
, where "xxx" is the issue number)
You have tested in the following browsers: (Providing a detailed version will be better.)
- [ ] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Edge
- [ ] IE
If adding a new feature, the PR's description includes:
- [ ] A convincing reason for adding this feature
- [ ] Related documents have been updated
- [ ] Related tests have been updated
To avoid wasting your time, it's best to open a feature request issue first and wait for approval before working on it.
Other information:
What's the side effect if we do not delete the lib before all other dev/build commands.?
-
Why delete? If we change file structure and rebuild, some files under output directory may remain though they are not required.
-
Why before?
rimraf lib
may remove contents generated bynpm:build:*
becauseconcurrently
run the four jobs parallelly.
Hi @GNQG
So far, it has worked as I expected and concurrently \"echo 1\" \"echo 2\" \"echo 3\"
will always print 1 2 3. I don't really know how does it work behind the scenes, but I'm now too busy to investigate. Could you confirm that possibility?🙏