Tools to manage yarn workspace and git modules.
This is part of the hybrid repro MVC SharePoint example implementation
Add this packge as a dependecy to the root workspace:
yarn add @mauriora/workspace-tools --dev --ignore-workspace-root-check
Execute the scripts from the root workspace folder:
Users\Me\code\MauriOra\Announcements-Bar-Spfx> yarn loadModules shared/workspace-tools
- (
Un
)loadModules
scripts work on submodules already part of the root module (workspace). After (un)loading it will callyarn install
. discardModules
(Changes
|Commit
) help for instance when publishing failed.
(down)loads a module, wich is already part of the root workspace.
yarn loadModules .\shared\Package-Tools\
or
yarn loadModules shared/Package-Tools
empties the working tree of a module already part of the root workspace.
yarn unloadModules .\shared\Package-Tools\
or
yarn unloadModules shared/Package-Tools
discards all local changes including staged changes for all changed sub modules.
yarn discardModulesChanges
discards all local commits that have not been pushed for all sub modules adhead.
yarn discardModulesCommit
To publish a new version of this module, in this folder execute:
yarn npm publish --access public