rangle / rangle-starter

48 stars 23 forks source link

Come up with better code-sharing across starters #32

Open SethDavenport opened 8 years ago

SethDavenport commented 8 years ago

Right now we have a lot of duplicate configs between starters. It would be nice to share some of it - candidates include:

If we harmonize the apps we can maybe even centralize the store and reducer logic.

One option would be a generator, but that adds complexity. Another option would be to beef up the repocopy script from rangle-starter to swap in template configs depending on techstack.

I'm open to suggestions on this one.

SethDavenport commented 8 years ago

It would also be nice to make the rangle-starter CI run itself and npm start on all four repos to make sure they're functional.

SethDavenport commented 8 years ago

One interesting approach might be have the repo copy script ask for a bunch of choices instead of a single tech stack argument - something like:

rangle-starter-2

repo-url? GH username? UI ecosystem? [react | angular | angular2] transpiler? [babel | react]

... and it would cook up a starter from bits for you. Remains to be seen if this is less effort or not.

kosz commented 8 years ago

are we still not interested in using Slush for some of this ?

kosz commented 8 years ago

so @SethDavenport should we try to do anything on this ?

SethDavenport commented 8 years ago

This is a low priority right now.

JaKXz commented 8 years ago

I just came across: https://github.com/kentcdodds/kcd-common-tools, which I think is a great idea - just have this npm package (or some rangle-starter-shared package) have all the files we want shared, and then add it as a dependency and symlink to the given files.

Thoughts @SethDavenport @kosz? I would make a PR instead of a comment but I really should get back to studying for midterms 😆

SethDavenport commented 8 years ago

yeah it's a decent idea, just haven't had time to think through all the permutations.