@juwel-development/meta-repo
v0.1.7
Published
This is a toolkit to easily manage a meta repository that includes multiple related JavaScript modules. It is written in Rust (and blazing fast. πππ).
Downloads
2
Readme
meta-repo
This is a toolkit to easily manage a meta repository that includes multiple related JavaScript modules. It is written in Rust (and blazing fast. πππ).
Terminology
- Meta Repository: A repository that contains multiple related repositories.
- Package: A JavaScript module that is publishing a library.
- Application: A JavaScript module that is part of the meta repository and can be started.
Features
- Run
npm install
on multiple repositories. - Link local dependencies automatically.
- Run
npm start
via a single command to start all applications and packages.
Commands
| command | description |
|-----------------------------------------|--------------------------------------------------------------------------------------------------|
| meta-repo setup
| Creates a file mata-repo.config.json
in the root directory of the meta repo. |
| mete-repo init
| Run git clone
for all repositories that are included. |
| meta-repo install
| Run npm install
for all applications and links local packages, that are part of the meta repo. |
| meta-repo start-app [name of the app]
| Run npm start
for all libraries and for the application that was given. |
Configuration
You need to configure the meta repository by creating a file meta-repo.config.json
in the root directory of the meta repository.
{
"apps": [
{
"dir": "local directory where the app is located",
"git": "git url of the app"
}
],
"packages": [
{
"dir": "local directory where the package is located",
"git": "git url of the package"
}
]
}