bind.js icon indicating copy to clipboard operation
bind.js copied to clipboard

[low] Comment header

Open BtM909 opened this issue 10 years ago • 3 comments

Would it be possible to add a comment header to the build version of bind.js (or even include this to the dev version as well)?

I've taken the liberty to write a sample for you :)

dist version

/*! bind v0.40 | (c) 2013, 2015 Remy Sharp | rem.mit-license.org */

dev version

/*!
 * bind.js v0.4.0
 * https://github.com/remy/bind/
 *
 * Copyright 2013, 2015 Remy Sharp
 * Released under the MIT license
 * http://rem.mit-license.org/
 */

BtM909 avatar Sep 03 '15 10:09 BtM909

Happy to add to the dist version (via this https://github.com/remy/bind.js/blob/master/package.json#L10 build) but the dev version won't/can't contain the version string since the source isn't generated.

remy avatar Sep 03 '15 10:09 remy

Ah ok, so would you prefer to just add this to the dist version or add them to both and omit the version for the dev version?

BtM909 avatar Sep 03 '15 10:09 BtM909

Happy to add to both, but just omit the version string from the dev version. It should be straight forward to do a perl regexp replace to get the version inserted into the right position.

On Thu, 3 Sep 2015 at 11:33 BtM909 [email protected] wrote:

Ah ok, so would you prefer to just add this to the dist version or add them to both and omit the version for the dev version?

— Reply to this email directly or view it on GitHub https://github.com/remy/bind.js/issues/9#issuecomment-137404195.

remy avatar Sep 03 '15 10:09 remy