mateodelnorte / meta

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?
MIT License
2.05k stars 99 forks source link

Use of environmental variables? #225

Closed TD-3294 closed 4 years ago

TD-3294 commented 4 years ago

Hi,

Thanks for this tool. One question, I would like to use environmental variables in the .meta file, so it can be used by various developers without having to change the .meta file.

I would like to have something like:

{ "projects": { "project-1": "ssh://${GIT_USER}@bitbucket.org:mycompany/p1.git", "project-2": "ssh://${GIT_USER}@bitbucket.org:mycompany/p2.git", "project-3": "ssh://${GIT_USER}@bitbucket.org:mycompany/p3.git" } }

Is that possible? (I tried as above and it doesn't work, variables are not resolved).

Thanks,

Juan

mateodelnorte commented 4 years ago

It is possible. .meta can be a json file or a .js file. When using js, simply make sure you module.export a valid js object.