Set templates to use `re-base` as dependency
piranna opened this issue · 3 comments
Set and define all templates to use re-base
as a dependency so there's no duplicated code, and also would help to create new ones.
This is on my mind too but I am not sure what is the right way to proceed forward with it. Any suggestions?
One easy option would be to apply re-base
and later modify and tune-up the generated results, for example. Other option would be to have some kind of skeleton/placeholders/hooks so templates can attach and fill themselves.
According to react-native-cli source code, it seems to me that's possible to define dependencies
on a template dummy package.json
file, and since they are installed using npm install
and copied its content to the current folder, then a template would have as dependency a parent template. I think it would work, and also maybe the dependencies.json
file could be removed too...