Skip to content

mauriora/workspace-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Workspace-Tools

Tools to manage yarn workspace and git modules.

This is part of the hybrid repro MVC SharePoint example implementation

Table of content

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 npm publish --access public

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published