Theres a feature in TM to automatically keep bundles updated
How does this work exactly? Is it just for the default bundles, and theres some web service on the TM website?
I'm wondering if I can hook into it somehow and have my third party git-based bundles updated also
Thanks
On 20 Oct 2014, at 13:34, Carpii UK wrote:
Theres a feature in TM to automatically keep bundles updated
How does this work exactly? Is it just for the default bundles, and theres some web service on the TM website?
Yes, it is only for default bundles, I should move the checkbox to the Bundles preferences page.
I'm wondering if I can hook into it somehow and have my third party git-based bundles updated also
Only if we add those bundles to the main index; if they are of general use, that should not be a problem.
On 20 October 2014 18:30, Allan Odgaard mailinglist@textmate.org wrote:
On 20 Oct 2014, at 13:34, Carpii UK wrote:
Yes, it is only for default bundles, I should move the checkbox to the
Bundles preferences page.
The bundle I refer to is JSHint.. https://github.com/bodnaristvan/JSHint.tmbundle
But it requires jshint npm module to be installed (globally I think), so Im not sure it meets your bundle guidelines in a way that it could be added to the main index - I might be wrong though.
I'm wondering if I can hook into it somehow and have my third party
git-based bundles updated also
Only if we add those bundles to the main index; if they are of general use, that should not be a problem.
What would be really cool is if a bundle could specify two scripts which textmate would automatically invoke when its trying to update bundles
One script would check to see if a new version was available The second script would run any procedure to update the bundle (such as git clone, make, and install etc).
Admittedly I don't have a huge understanding of bundles in TM2, but on the face of it it seems like it would be a really nice addition It would also mean you could install third party bundles which are capable of auto-updating themselves, without needing to be added to the TM index.
On 24 Oct 2014, at 1:48, Carpii UK wrote:
The bundle I refer to is JSHint.. https://github.com/bodnaristvan/JSHint.tmbundle
But it requires jshint npm module to be installed (globally I think), so Im not sure it meets your bundle guidelines in a way that it could be added to the main index - I might be wrong though.
There is no requirement that bundles can’t have third party dependencies, in fact, many do rely on externally installed things.
What would be really cool is if a bundle could specify two scripts which textmate would automatically invoke when its trying to update bundles
I don’t think that is a good approach, but you could make such a system yourself and have launchd run these scripts periodically.