Distribution for "helper" scripts #33
Comments
I would vote for a |
Do them all independently. This has the added advantage of not privileging first-party plugins over third-party ones, like with gulp/grunt plugins. |
I'm usually in favor of separate repos, but in this case it might be daunting to create a repo for each helper, maintain that, have users search over them, etc. That's potentially 100s! A repo for all helpers would be nice. My thinking is that most helpers will be very small (2-3 LOC) and ultimately, most developers will want to use several at a time. Bringing down a single repo with everything would be great. For starters, we can start with 1st party (well known) plugins. |
I initially voted for us to separate these out into their own dedicated repos, but on re-thinking the problem space we aren't going to have a lot of helpers that are particularly large or complex. It may make sense to initially just have a master repo and if the collection of helpers grows sufficiently that we need to split them out, we can always do that later and submodule them back in. Does anyone else strongly feel we should split these out? |
I'd vote one separate repo to contain them all and see what the response is like. Anyone have any ideas on criteria for acceptance? |
If we assume that This assumes that we're okay with being unfriendly towards |
If we can have a separate package per subdirectory that would be awesome!!! |
Oh, so this is apparently referred to as a "monorepo", and it's A Thing: https://github.com/babel/babel/blob/master/doc/design/monorepo.md There's a tool for working with this structure (https://github.com/kittens/lerna) but that seems to focus on needing to version all the individual modules with the same release number, which we explicitly don't want to do. So just versioning them by hand should work. |
Here's a good monorepo example that we might be able to learn from: https://github.com/danigb/tonal I don't think we'd want the single-version-semantics implied by using https://github.com/kittens/lerna, but we might be able to learn something about overall repo structure and generating documentation (via https://www.npmjs.com/package/documentation, it looks like). I'm putting together a formal proposal that I'll circulate for comment and feedback, and then we can move forward. |
Sounds awesome thanks Jeff On Fri, 18 Mar 2016, 21:26 Jeffrey Posnick, notifications@github.com
|
@jeffposnick do you think we can close this issue now? |
There are a number of novel things you can build on top of the core
sw-toolbox
library, e.g.:We should come up with a standard way of distributing first-party helper scripts.
Possible approaches:
helpers
oraddons
directory within the main project. This would make the helper scripts more discoverable, but versioning them sanely would be difficult.sw-toolbox-helpers
repo to host them all en masse. This would be less discoverable than if they were bundled withsw-toolbox
, and versioning each script independently of the others wouldn't be possible.sw-toolbox-helper-XYZ
repo for each helper script. This would have similar discoverability problems but we would be able to version each helper script properly.Thoughts? CC: @wibblymat @addyosmani
The text was updated successfully, but these errors were encountered: