A small gem for rolling out JS libraries (includes repository, demo page and version release rake task)
- TopUp – A 100% unobtrusive Apple-styled Lightbox
- RaccoonTip – A lightweight, unobtrusive balloon tip
- SeatHolder – A modest placeholder library
- csonv.js – A tiny library to fetch relational CSV data at client-side just like JSON
- oned.js – Trigger callback functions when native HTML or jQuery elements get added to the DOM tree
During this process, I have developed a routine repository structure. So to make my life a little bit easier, I have created
JazzLibs which generates a repository containing the routine files:
- .gitignore file
- demo page (an online example)
- MIT license
- version file
- jQuery core library
- rakefile containg a rake task for releasing library versions
Run the following command in your console:
gem install jazz_libs
jazz new your_library_name
Note: You will be asked a couple questions concerning the library (e.g. a small description, your Twitter name).
The generated library repository contains a rake task with which you can release new versions with ease. Just run the following command in the console:
VERSION with the actual version number (e.g.
A directory will be created containing the new version within
/releases/VERSION, it includes the following:
- jquery/core.js (only when applicable of course)
- the uncompressed library source (e.g.
- the minified library source (e.g.
- the demo page
For support, remarks and requests please mail me at firstname.lastname@example.org.
Copyright © 2011 Paul Engel, released under the MIT license
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.