0.2.4 • Published 2 years ago

@mauriora/workspace-tools v0.2.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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-tools

Modules

  • (Un)loadModules scripts work on submodules already part of the root module (workspace). After (un)loading it will call yarn 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-Tools

unloadModules

empties the working tree of a module already part of the root workspace.

yarn unloadModules .\shared\Package-Tools\

or

yarn unloadModules shared/Package-Tools

discardModulesChanges

discards all local changes including staged changes for all changed sub modules.

yarn discardModulesChanges

discardModulesCommit

discards all local commits that have not been pushed for all sub modules adhead.

yarn discardModulesCommit

Publish

To publish a new version of this module, in this folder execute:

yarn publish --access public