Skip to content

karol-f/meta-repository

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

META repository


This project is based on the Meta package and features multi GIT repositories which can be auto-linked for easy workflow. For detailed explanation on how things work, checkout the documentation

Getting Started

yarn install
yarn setup // this will:
           // - execute 'yarn meta-git update' - to pull from Git all repositories defined in .meta file
           // - execute 'yarn meta-yarn install' to install all dependencies in subfolders
           // - execute 'yarn meta-yarn link --all' to symlink necessary dependencies (shared-library symlink in node_module of consumer projects)

Pushing changes to shared library

You will need this point only AFTER developement. The 'Getting started' instructions set everything up, so that you can develop shared library instantly and changes will be visible in consumer projects.

But if you want to share the results and make it permament, push your changes in shared library to git, normal way, then execute:

yarn meta-bump-yarn shared-library

This command will auto git-tag last commit and update correct tag version in package.json files of all consumer libraries.

Alternatively you can use

yarn release

in shared-library directory and then manually update package.json in consumer libraries

Workflow

You can link all packages (subfolders) to easy work with them without need of repositories to update it's dependencies in package.json:

yarn meta-yarn link --all

This command is auto executed after yarn setup, so you have to use yarn meta-yarn link --all (in root directory of meta-repository) only in case of symlink (e.g. consumer-library/node_modules/shared-library) overwrite.

Sidenote

You can change yarn meta-bump-yarn or meta-yarn link to npm versions like yarn meta-bump-npm or meta-npm link.

About

meta repository example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published