re-start icon indicating copy to clipboard operation
re-start copied to clipboard

Set templates to use `re-base` as dependency

Open piranna opened this issue 6 years ago • 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.

piranna avatar Jan 20 '18 17:01 piranna

This is on my mind too but I am not sure what is the right way to proceed forward with it. Any suggestions?

amoghbanta avatar Jan 25 '18 06:01 amoghbanta

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.

piranna avatar Jan 25 '18 20:01 piranna

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...

piranna avatar Apr 11 '18 07:04 piranna