Tire
This project is not maintained anymore
Tire is a lightweight JavaScript library for modern browsers. The goal is to create a framework that's around 15-16kb minified and 5-6kb minified and gzipped. The syntax is inspired from jQuery. It is modular so you can extend it however you like, also replace our features with your own.
Fixes for older browsers increase the file size and we don't want that. So if you like a library to support Internet Explorer 6 or 7, Tire isn't for you.
That said, all features can probably be rewritten/extended to add support for old browsers. In that case, you have to create a fork of Tire and fix it yourself.
Browser support
- Chrome
- Safari 4.0.5
- Internet Explorer 8
- Firefox 3.5
- Opera 10
Older browsers
Tire may work in older browsers but is not tested in older than the above.
Documentation
- Read the docs.
Download
Current release: 1.3.1
- tire.js - 49kB uncompressed (lots of comments), for development
- tire.min.js - 3.9kB when gzipped, for production
Please do not hotlink directly to the files hosted on code.tirejs.com. Download a local copy instead.
CDN
- tire.js
//cdn.jsdelivr.net/tire/1.3.1/tire.js
- tire.min.js
//cdn.jsdelivr.net/tire/1.3.1/tire.min.js
Build
npm install
make
On Windows
npm install
grunt.cmd
Test
Install connect
via npm
and start the server. This will create a local server (on port 3000) so the ajax tests don't failes. Be sure to build tire first or all tests will fail! Then you can open http://localhost:3000/
in your browser to run the tests.
npm install
node server.js
Contribute
Everyone is welcome to contribute with patches, bug-fixes and new features.
- Create an issue on Github so the community can comment on your idea.
- Fork
tire
on Github. - Create a new branch:
git checkout -b my_branch
. - Create tests for the changes you made.
- Make sure you pass both existing and newly inserted tests.
- Commit your changes.
- Push to your branch:
git push origin my_branch
. - Create a pull request against
*-wip
branches.
Note:
- Please follow the code style in Tire.
- If you are making several changes at once please divide them into multiple pull requests.
- Always create the pull request against the
*-wip
branches (usemaster
when no*-wip
exists), not themaster
.