Conversation
|
Awesome!
Agree with that. I tried to centralize the config so that the parcel dev dep is only in the workspace dev dependencies. This works fine. The only thing I didn't manage to get working for some reason is to use Also, I removed the yalc:publish since this will not be necessary, when yalc is called after each build or branch change, or did I oversee something? Will add the git hook later tonight. |
|
Great, thank you !
Too bad. But from my experience, it's pretty rare I need to watch all frontend packages at the same time. Usually one or two is enough.
The case I could see is on a fresh git clone: you don't need to do the build (packages are already built), but you need the yalc publish. However if this can be automated with the git hooks, it probably won't be needed. |
My bad, that's the scenario that'd be useful to have the script for, I suppose :D |
use nx for build and watch
|
Thanks, the git hooks are working great ! |
yalc:publishNPM script on the /src/frontend directory which publish all SemApps packages to Yalc.buildNPM script is called.buildandwatchNPM scripts on the@semapps/auth-providerpackage (according to this issue, nodemon is the only way to trigger a command after parcel build)See this PR on ActivityPods for changes on the other side: activitypods/activitypods#108
What's next ?
yalc:publishevery time the git branch is changed. Apparently this is possible with a git hook. @mguihal @Laurin-W What do you think of this idea ? Would one of you give it a try ? We would need a flexible error handling, in case yalc is not installed.buildandwatchscripts on all SemApps packages.Remaining issue
yarn linkfor middleware packages ? That seems easier since we don't have to bother about watching and publishing.