You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Come up with better code-sharing across starters #32
Right now we have a lot of duplicate configs between starters. It would be nice to share some of it - candidates include:
lint rules
circle.yml
Procfile
package.json run scripts
server.js
webpack.conf
collections of dependencies:
typescript stuff
babel stuff
redux stuff
react stuff
Etc.
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.
so @SethDavenport should we try to do anything on this ?
First off I'd like to suggest that we keep official rangle repos for our linting, circle files and other somewhat static assets. These files can then be updated into the project, diffed and merged as needed.
Secondly, any dynamic/templated code that we may want to generate, could be generated using lodash templates, however once we go down that road we may have to deal with more maintenance that we may want to deal with.
Activity
SethDavenport commentedon Feb 19, 2016
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 commentedon Feb 20, 2016
It would also be nice to make the rangle-starter CI run itself and
npm starton all four repos to make sure they're functional.SethDavenport commentedon Feb 20, 2016
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
... and it would cook up a starter from bits for you. Remains to be seen if this is less effort or not.
kosz commentedon Mar 7, 2016
are we still not interested in using Slush for some of this ?
kosz commentedon Mar 23, 2016
so @SethDavenport should we try to do anything on this ?
SethDavenport commentedon Mar 23, 2016
This is a low priority right now.
JaKXz commentedon Jun 8, 2016
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-sharedpackage) 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 commentedon Jun 8, 2016
yeah it's a decent idea, just haven't had time to think through all the permutations.