Open remko opened 8 years ago
Curious whether anyone on @AmpersandJS/core-team @AmpersandJS/community-leaders finds what this module provides valuable?
One key issue with it, is that in its current form it requires the end user to be bundling with browserify (I don't think webpack runs the transforms by default?) so currently it's not doing anything if you use e.g. webpack (which is growing for sure).
So we should probably either implement #1 or just drop it?
Thoughts?
I would also note that I expected this functionality to be something handled in the build/prepublish of each ampersand module itself, instead of pushing the task of running the version string patching to the build of Ampersand users. This would make it entirely independent of any build system used, would probably be safer and more robust, and wouldn't burden the users with useless extra dependencies or transformations done at build time.
As an ampersand user already struggling with dependencies, I would suggest to either drop it, or reorganize ampersand modules to use it as a build step and only include it as a devDependency; as long as the dependency is gone for the end user, I'm happy.
Shoulda woulda coulda ;)
Philip Roberts
On 24 Dec 2015, at 11:57, Remko Tronçon notifications@github.com wrote:
I would also note that I expected this functionality to be something handled in the build/prepublish of each ampersand module itself, instead of pushing the task of running the version string patching to the build of Ampersand users. This would make it entirely independent of any build system used, would probably be safer and more robust, and wouldn't burden the users with useless extra dependencies or transformations done at build time.
— Reply to this email directly or view it on GitHub.
Looking at
npm-shrinkwrap.json
, the dependency tree of ampersand-version is quite large because of thethrough2
dependency (see below). For a module that isn't supposed to do much, and that every other ampersand module depends on, this is annoying, because it makes the entire tree of a project that depends on ampersand (uselessly) explode (which worries me as a maintainer of a project). Could thethrough2
dependency be avoided?The dependency tree looks as follows: