Skip to content

Commit 46b41f5

Browse files
adds release publishing instructions to readme
1 parent 1fb1565 commit 46b41f5

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,24 @@ If your requirements aren't met by the predefined placeholders, you can always a
1313

1414
By design, this plugin will reject input which doesn't complete the mask. You can bypass this by using a '?' character at the position where you would like to consider input optional. For example, a mask of "(999) 999-9999? x99999" would require only the first 10 digits of a phone number with extension being optional.
1515

16+
Publishing a Release
17+
--------------------
18+
jQuery Masked Input uses git tags to publish releases to [Bower](http://www.bower.io). We used to just tag directly off of master but this added a lot of cruft - the entire git directory - to our users `bower_components` directory. A lot of other libraries are nice enough to clean up their distributions and so we should too.
19+
20+
So here is how you go about publishing a new release. _This assumes you've updated the version strings in the dist/bower.json and the source js_.
21+
22+
```
23+
$ git subtree split --prefix dist --branch release
24+
25+
$ git checkout release
26+
27+
$ git merge -s subtree master
28+
29+
$ git tag <VERSION>
30+
31+
$ git push origin release && git push origin --tags
32+
```
33+
1634
Setting up your Developer Environment
1735
-------------------------------------
1836
jQuery Masked Input uses [NodeJS](http://www.nodejs.org) and [GruntJS](http://www.gruntjs.com) as it's developer platform and build automation tool.

0 commit comments

Comments
 (0)