Permalink
Browse files

update

  • Loading branch information...
1 parent af978ae commit d6ac62d22e8f650d07391d24b6e672a2bcc2163a @jdewit committed Oct 4, 2013
Showing with 414 additions and 19 deletions.
  1. +3 −0 .bowerrc
  2. +4 −2 .gitignore
  3. +3 −0 .travis.yml
  4. +124 −0 Gruntfile.js
  5. +20 −0 LICENSE
  6. +52 −0 README.md
  7. +1 −1 _layouts/default.html
  8. +16 −0 component.json
  9. +13 −0 composer.json
  10. +0 −10 css/bootstrap-timepicker.min.css
  11. +0 −6 js/bootstrap-timepicker.min.js
  12. +146 −0 less/timepicker.less
  13. +32 −0 package.json
View
@@ -0,0 +1,3 @@
+{
+ "directory" : "spec/js/libs/"
+}
View
@@ -1,8 +1,10 @@
*.swp
_site/
node_modules
-grunt.js
+gruntfile.js
.grunt
_SpecRunner.html
spec
-
+_site
+.grunt
+node_modules
View
@@ -0,0 +1,3 @@
+language: node_js
+node_js:
+ - "0.8"
View
@@ -0,0 +1,124 @@
+module.exports = function(grunt) {
+ 'use strict';
+
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-jasmine');
+ grunt.loadNpmTasks('grunt-contrib-less');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+ grunt.loadNpmTasks('grunt-gh-pages');
+
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ meta: {
+ project: 'bootstrap-timepicker',
+ version: '0.2.3'
+ },
+ 'gh-pages': {
+ options: {
+ add: true,
+ push: false
+ },
+ src: [
+ 'css/bootstrap-timepicker.min.css',
+ 'js/bootstrap-timepicker.min.js'
+ ]
+ },
+ jasmine: {
+ build: {
+ src : ['spec/js/libs/jquery/jquery.min.js', 'spec/js/libs/bootstrap/js/bootstrap.min.js', 'spec/js/libs/autotype/index.js', 'js/bootstrap-timepicker.js'],
+ options: {
+ specs : 'spec/js/*Spec.js',
+ helpers : 'spec/js/helpers/*.js',
+ timeout : 100
+ }
+ }
+ },
+ jshint: {
+ options: {
+ browser: true,
+ camelcase: true,
+ curly: true,
+ eqeqeq: true,
+ eqnull: true,
+ immed: true,
+ indent: 2,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ quotmark: true,
+ sub: true,
+ strict: true,
+ trailing: true,
+ undef: true,
+ unused: true,
+ white: false,
+ globals: {
+ jQuery: true,
+ $: true,
+ expect: true,
+ it: true,
+ beforeEach: true,
+ afterEach: true,
+ describe: true,
+ loadFixtures: true,
+ console: true,
+ module: true
+ }
+ },
+ files: ['js/bootstrap-timepicker.js', 'Gruntfile.js', 'package.json', 'spec/js/*Spec.js']
+ },
+ less: {
+ dev: {
+ options: {
+ paths: ['css']
+ },
+ files: {
+ 'css/bootstrap-timepicker.css': ['less/*.less']
+ }
+ },
+ prod: {
+ options: {
+ paths: ['css'],
+ yuicompress: true
+ },
+ files: {
+ 'css/bootstrap-timepicker.min.css': ['less/*.less']
+ }
+ }
+ },
+ uglify: {
+ options: {
+ banner: '/*! <%= meta.project %> v<%= meta.version %> \n' +
+ '* http://jdewit.github.com/bootstrap-timepicker \n' +
+ '* Copyright (c) <%= grunt.template.today("yyyy") %> Joris de Wit \n' +
+ '* MIT License \n' +
+ '*/'
+ },
+ build: {
+ src: ['<banner:meta.banner>','js/<%= pkg.name %>.js'],
+ dest: 'js/<%= pkg.name %>.min.js'
+ }
+ },
+ watch: {
+ js: {
+ files: ['js/bootstrap-timepicker.js', 'spec/js/*Spec.js'],
+ tasks: ['jshint', 'jasmine'],
+ options: {
+ livereload: true
+ }
+ },
+ less: {
+ files: ['less/timepicker.less'],
+ tasks: ['less:dev'],
+ options: {
+ livereload: true
+ }
+ }
+ }
+ });
+
+ grunt.registerTask('default', ['jshint', 'jasmine', 'less:dev']);
+ grunt.registerTask('test', ['jasmine', 'jshint']);
+ grunt.registerTask('compile', ['jshint', 'jasmine', 'uglify', 'less:prod']);
+};
View
20 LICENSE
@@ -0,0 +1,20 @@
+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.
+
View
@@ -1,4 +1,56 @@
Timepicker for Twitter Bootstrap 2.x
+=======
+Timepicker for Twitter Bootstrap 2.x [![Build Status](https://secure.travis-ci.org/jdewit/bootstrap-timepicker.png)](http://travis-ci.org/jdewit/bootstrap-timepicker)
------------------------------------
A simple timepicker component for Twitter Bootstrap.
+
+Demos & Documentation
+=====================
+
+View <a href="http://jdewit.github.com/bootstrap-timepicker">demos & documentation</a>.
+
+Support
+=======
+
+If you make money using this timepicker, please consider
+supporting its development.
+
+<a href="http://www.pledgie.com/campaigns/19125"><img alt="Click here to support bootstrap-timepicker!" src="http://www.pledgie.com/campaigns/19125.png?skin_name=chrome" border="0" target="_blank"/></a> <a class="FlattrButton" style="display:none;" rev="flattr;button:compact;" href="http://jdewit.github.com/bootstrap-timepicker"></a> <noscript><a href="http://flattr.com/thing/1116513/Bootstrap-Timepicker" target="_blank"> <img src="http://api.flattr.com/button/flattr-badge-large.png" alt="Flattr this" title="Flattr this" border="0" /></a></noscript>
+
+Contributing
+============
+
+1. Install <a href="www.nodejs.org">NodeJS</a> and <a href="www.npmjs.org">Node Package Manager</a>.
+
+2. Install packages
+
+``` bash
+ npm install
+```
+
+3. Use <a href="https://github.com/twitter/bower">Bower</a> to get the dev dependencies.
+
+``` bash
+$ bower install
+```
+
+4. Use <a href="www.gruntjs.com">Grunt</a> to run tests, compress assets, etc.
+
+``` bash
+$ grunt test // run jshint and jasmine tests
+$ grunt watch // run jsHint and Jasmine tests whenever a file is changed
+$ grunt compile // minify the js and css files
+```
+
+- Please make it easy on me by covering any new features or issues
+with <a href="http://pivotal.github.com/jasmine">Jasmine</a> tests.
+- If your changes need documentation, please take the time to update the docs.
+
+Acknowledgements
+================
+
+Thanks to everyone who have given feedback and submitted pull requests. A
+list of all the contributors can be found <a href="https://github.com/jdewit/bootstrap-timepicker/graphs/contributors">here</a>.
+
+Special thanks to @eternicode and his <a href="https://github.com/eternicode/bootstrap-datepicker">Twitter Datepicker</a> for inspiration.
View
@@ -106,7 +106,7 @@
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/2.2.2/bootstrap.min.js"></script>
<script type="text/javascript" src="assets/prettify/prettify.js"></script>
- <script type="text/javascript" src="js/bootstrap-timepicker.min.js"></script>
+ <script type="text/javascript" src="js/bootstrap-timepicker.min.js?v0.2.4"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#timepicker1').timepicker();
View
@@ -0,0 +1,16 @@
+{
+ "name": "bootstrap-timepicker",
+ "version": "0.2.3",
+ "description": "A timepicker component for Twitter Bootstrap 2.x",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/jdewit/bootstrap-timepicker"
+ },
+ "main": ["js/bootstrap-timepicker.min.js", "css/bootstrap-timepicker.min.css"],
+ "dependencies": {
+ "bootstrap": ">=2.0.4 <3.0",
+ "jquery": ">=1.8.3",
+ "autotype": "https://raw.github.com/mmonteleone/jquery.autotype/master/jquery.autotype.js"
+ }
+}
+
View
@@ -0,0 +1,13 @@
+{
+ "name" : "jdewit/bootstrap-timepicker",
+ "description" : "A simple timepicker component for Twitter Bootstrap.",
+ "version" : "0.2.3",
+ "license" : "MIT",
+ "authors": [
+ {
+ "name" : "Joris de Wit",
+ "email" : "joris.w.dewit@gmail.com"
+ }
+ ]
+
+}

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit d6ac62d

Please sign in to comment.