0.2.4 • Published 3 years ago
@mauriora/workspace-tools v0.2.4
Workspace-Tools
Tools to manage yarn workspace and git modules.
Install
Add this packge as a dependecy to the root workspace:
yarn add @mauriora/workspace-tools --dev --ignore-workspace-root-check
Use
Execute the scripts from the root workspace folder:
Users\Me\code\MauriOra\Announcements-Bar-Spfx> yarn loadModules shared/workspace-toolsModules
- (
Un)loadModulesscripts 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.
loadModules
(down)loads a module, wich is already part of the root workspace.
yarn loadModules .\shared\Package-Tools\or
yarn loadModules shared/Package-ToolsunloadModules
empties the working tree of a module already part of the root workspace.
yarn unloadModules .\shared\Package-Tools\or
yarn unloadModules shared/Package-ToolsdiscardModulesChanges
discards all local changes including staged changes for all changed sub modules.
yarn discardModulesChangesdiscardModulesCommit
discards all local commits that have not been pushed for all sub modules adhead.
yarn discardModulesCommitPublish
To publish a new version of this module, in this folder execute:
yarn publish --access public