tool for turning many repos into a meta repo. why choose many repos or a monolithic repo, when you can have both with a meta repo?
Last updated 2 years ago by sebastian.meier .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @essential-projects/meta 
SYNC missed versions from official npm registry.


meta is a tool for managing multi-project systems and libraries. It answers the conundrum of choosing between a mono repo or many repos by saying "both", with a meta repo!

meta is powered by plugins that wrap common commands, letting you execute them against some or all of the repos in your solution at once. meta is built on loop, and as such inherits loops ability to easily target a particular set of directories for executing a common command.

getting started


npm i -g meta will install a meta command on your system.

meta init & meta project add

To create a new meta project:

  1. create a new directory for your meta project mkdir my-meta-repo
  2. initialize a new git repository in your new dir: cd my-meta-repo && git init
  3. initialize your new repository as a meta repo: meta init

meta will have created a .meta file to hold references to any child repositories you add.

  1. to add new projects, use meta project add [folder] [repo url]

for each project added, meta will update your .gitignore file and the .meta file with references to the new child repo


meta git clone

To clone an existing meta repo, you need only execute meta git clone [meta repo url]. meta will clone your meta repo and all child repositories at once.


working with meta

Because meta plugins wrap common commands, you shouldn't have much new syntax to memorize for some crazy new utilities nobody knows about. For instance, if you want to check the git status of all your repositories at once, you can just type meta git status:


View what branches exist on all your repos with meta git branch:


Creating a new feature that cross-cuts a number of services, a site, and an API? Create new branches on all your repos at once with meta git checkout -b [branch-name]. Or, revert all modified files to their remote status with meta git checkout .:


Track your progress on all branches at once with meta git status:


Remove unwanted untracked files on all repos with meta git clean -fd:


really working with meta


All meta functionality is contributed by plugins - node modules that begin with meta- and are either installed globally or in your meta repo's node_modules directory. We recommend you install them as devDependencies in your meta repo's package.json. Plugins add additional sub commands to meta, and can leverage loop or meta-loop to easily execute a common command against your meta repo and all child repos.

Here's how easy it is to install meta-npm as a plugin, and gain the ability to meta npm install all your repos at once:


And if you prefer the speediness of yarn, try meta-yarn with npm install --save-dave meta-yarn:


Why meta?

  • clone a many-project architecture in one line
  • give every engineer on your team the same project setup, regardless of where it's cloned
  • npm / yarn install against all your projects at once
  • execute arbitrary commands against many repos to manage your projects
  • super simple plugin architecture using commander.js
  • easily wrap commands for working with any platform, not just Node!
  • meta repo keeps code in per project repos, benefiting deployment and reuse
  • use the same tools you always use. no strange side effects of git submodules or subtree
  • give different teams different slices of your architecture, with multiple metarepos!

Available Plugins

Available Templates

Want to help develop meta locally?

The best way to get started is to do the following:

npm i -g meta
meta git clone git@github.com:mateodelnorte/meta.git
cd ./meta
npm install
meta npm install
meta npm link --all
npm link

This will clone the meta project, meta, enter the directory, and then use meta to perform npm install, npm link --all in each directory listed in projects of the .meta JSON configuration file, and link meta itself to be used as a global command.

You can then write your command and test using ./bin/meta git gh [subcommand].

You can run the above as a single command:

meta git clone git@github.com:mateodelnorte/meta.git && cd ./meta && npm i && meta npm install && meta npm link --all && npm link

Yarn lovers can do the same:

npm i -g meta
meta git clone git@github.com:mateodelnorte/meta.git
cd ./meta
meta yarn install
meta yarn link --all
yarn link


meta git clone git@github.com:mateodelnorte/meta.git && cd ./meta && yarn && meta yarn install && meta yarn link --all && yarn link

See discussion here for more details

Current Tags

  • 1.0.56                                ...           latest (2 years ago)

9 Versions

  • 1.0.56                                ...           2 years ago
  • 1.0.55                                ...           2 years ago
  • 1.0.54                                ...           2 years ago
  • 1.0.53                                ...           2 years ago
  • 1.0.52                                ...           2 years ago
  • 1.0.51                                ...           2 years ago
  • 1.0.50                                ...           2 years ago
  • 1.0.49                                ...           2 years ago
  • 1.0.48                                ...           2 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (13)
Dev Dependencies (4)
Dependents (0)

Copyright 2014 - 2017 © taobao.org |