Permalink
Browse files

Infrastructure updates and improvements

  • Loading branch information...
1 parent e2d7fdf commit b423c9c95ff035b7b975a94384c729a7d352e1f2 @jsor committed Feb 20, 2013
Showing with 812 additions and 402 deletions.
  1. +2 −2 .gitignore
  2. +15 −0 .jshintrc
  3. +156 −0 Gruntfile.js
  4. +1 −1 LICENSE
  5. +1 −1 README.md
  6. +3 −5 dist/jquery.jcarousel-autoscroll.js
  7. +4 −5 dist/jquery.jcarousel-autoscroll.min.js
  8. +3 −5 dist/jquery.jcarousel-control.js
  9. +4 −5 dist/jquery.jcarousel-control.min.js
  10. +3 −5 dist/jquery.jcarousel-core.js
  11. +4 −5 dist/jquery.jcarousel-core.min.js
  12. +3 −5 dist/jquery.jcarousel-pagination.js
  13. +4 −5 dist/jquery.jcarousel-pagination.min.js
  14. +3 −5 dist/jquery.jcarousel-scrollintoview.js
  15. +4 −5 dist/jquery.jcarousel-scrollintoview.min.js
  16. +3 −5 dist/jquery.jcarousel.js
  17. +4 −5 dist/jquery.jcarousel.min.js
  18. +1 −1 docs/conf.py
  19. +1 −1 docs/index.rst
  20. +49 −0 examples/simple/index.html
  21. +82 −0 examples/simple/jcarousel.simple.css
  22. +13 −0 examples/simple/jcarousel.simple.js
  23. +0 −146 grunt.js
  24. +4 −0 jcarousel.jquery.json
  25. +12 −0 libs/jquery-loader.js
  26. 0 libs/{ → jquery}/jquery.js
  27. +12 −3 libs/qunit/qunit.css
  28. +334 −159 libs/qunit/qunit.js
  29. +8 −2 package.json
  30. +15 −0 src/.jshintrc
  31. +1 −1 test/functional/animation.html
  32. +1 −1 test/functional/autoscroll/default.html
  33. +1 −1 test/functional/control/default.html
  34. +1 −1 test/functional/control/event.html
  35. +1 −1 test/functional/dynamic.html
  36. +1 −1 test/functional/event.html
  37. +1 −1 test/functional/focus.html
  38. +1 −1 test/functional/hidden.html
  39. +1 −1 test/functional/pagination/default.html
  40. +1 −1 test/functional/plugin.html
  41. +1 −1 test/functional/scrollintoview/default.html
  42. +1 −1 test/functional/start.html
  43. +1 −1 test/functional/wrap.html
  44. +32 −0 test/unit/.jshintrc
  45. +7 −0 test/unit/{core_plugin.js → core_plugin_test.js}
  46. +12 −13 test/unit/index.html
View
@@ -1,3 +1,3 @@
.DS_Store
-docs/_build
-node_modules
+/docs/_build
+/node_modules
View
@@ -0,0 +1,15 @@
+{
+ "curly": true,
+ "eqeqeq": true,
+ "immed": true,
+ "latedef": true,
+ "newcap": true,
+ "noarg": true,
+ "sub": true,
+ "undef": true,
+ "unused": true,
+ "boss": true,
+ "eqnull": true,
+ "node": true,
+ "es5": true
+}
View
@@ -0,0 +1,156 @@
+'use strict';
+
+module.exports = function(grunt) {
+
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('jcarousel.jquery.json'),
+ banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
+ '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
+ '<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
+ '* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>;' +
+ ' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
+ clean: {
+ files: ['dist']
+ },
+ concat: {
+ options: {
+ banner: '<%= banner %>',
+ stripBanners: true
+ },
+ all: {
+ src: [
+ 'src/core.js',
+ 'src/core_plugin.js',
+ 'src/scrollintoview.js',
+ 'src/control.js',
+ 'src/pagination.js',
+ 'src/autoscroll.js'
+ ],
+ dest: 'dist/jquery.<%= pkg.name %>.js'
+ },
+ core: {
+ src: [
+ 'src/core.js',
+ 'src/core_plugin.js'
+ ],
+ dest: 'dist/jquery.<%= pkg.name %>-core.js'
+ },
+ scrollintoview: {
+ src: [
+ 'src/scrollintoview.js'
+ ],
+ dest: 'dist/jquery.<%= pkg.name %>-scrollintoview.js'
+ },
+ control: {
+ src: [
+ 'src/control.js'
+ ],
+ dest: 'dist/jquery.<%= pkg.name %>-control.js'
+ },
+ pagination: {
+ src: [
+ 'src/pagination.js'
+ ],
+ dest: 'dist/jquery.<%= pkg.name %>-pagination.js'
+ },
+ autoscroll: {
+ src: [
+ 'src/autoscroll.js'
+ ],
+ dest: 'dist/jquery.<%= pkg.name %>-autoscroll.js'
+ }
+ },
+ uglify: {
+ options: {
+ banner: '<%= banner %>'
+ },
+ all: {
+ src: '<%= concat.all.dest %>',
+ dest: 'dist/jquery.<%= pkg.name %>.min.js'
+ },
+ core: {
+ src: '<%= concat.core.dest %>',
+ dest: 'dist/jquery.<%= pkg.name %>-core.min.js'
+ },
+ scrollintoview: {
+ src: '<%= concat.scrollintoview.dest %>',
+ dest: 'dist/jquery.<%= pkg.name %>-scrollintoview.min.js'
+ },
+ control: {
+ src: '<%= concat.control.dest %>',
+ dest: 'dist/jquery.<%= pkg.name %>-control.min.js'
+ },
+ pagination: {
+ src: '<%= concat.pagination.dest %>',
+ dest: 'dist/jquery.<%= pkg.name %>-pagination.min.js'
+ },
+ autoscroll: {
+ src: '<%= concat.autoscroll.dest %>',
+ dest: 'dist/jquery.<%= pkg.name %>-autoscroll.min.js'
+ }
+ },
+ replace: {
+ dist: {
+ options: {
+ variables: {
+ 'VERSION': '<%= pkg.version %>',
+ 'DATE': '<%= grunt.template.today() %>'
+ },
+ prefix: '@'
+ },
+ files: {
+ 'dist/': ['dist/*.js']
+ }
+ }
+ },
+ qunit: {
+ files: ['test/unit/**/*.html']
+ },
+ jshint: {
+ gruntfile: {
+ options: {
+ jshintrc: '.jshintrc'
+ },
+ src: 'Gruntfile.js'
+ },
+ src: {
+ options: {
+ jshintrc: 'src/.jshintrc'
+ },
+ src: ['src/**/*.js']
+ },
+ test: {
+ options: {
+ jshintrc: 'test/unit/.jshintrc'
+ },
+ src: ['test/unit/**/*.js']
+ }
+ },
+ watch: {
+ gruntfile: {
+ files: '<%= jshint.gruntfile.src %>',
+ tasks: ['jshint:gruntfile']
+ },
+ src: {
+ files: '<%= jshint.src.src %>',
+ tasks: ['jshint:src', 'qunit']
+ },
+ test: {
+ files: '<%= jshint.test.src %>',
+ tasks: ['jshint:test', 'qunit']
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('grunt-replace');
+ grunt.loadNpmTasks('grunt-contrib-clean');
+ grunt.loadNpmTasks('grunt-contrib-concat');
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-contrib-qunit');
+ grunt.loadNpmTasks('grunt-contrib-jshint');
+ grunt.loadNpmTasks('grunt-contrib-watch');
+
+ grunt.registerTask('default', ['jshint', 'qunit']);
+ grunt.registerTask('dist', ['clean', 'concat', 'replace', 'uglify']);
+
+};
View
@@ -1,4 +1,4 @@
-Copyright (c) 2012 Jan Sorgalla
+Copyright (c) 2013 Jan Sorgalla
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
View
@@ -60,5 +60,5 @@ inspired by the [Carousel Component](http://billwscott.com/carousel/) by
License
-------
-Copyright (c) 2012 Jan Sorgalla.
+Copyright (c) 2013 Jan Sorgalla.
Released under the [MIT](https://github.com/jsor/jcarousel/blob/master/LICENSE-MIT) license.
@@ -1,8 +1,6 @@
-/*! jCarousel - v0.3.0-beta.2 - 2013-01-31
-* http://sorgalla.com/jcarousel/
-* Copyright 2013 Jan Sorgalla
-* Released under the MIT license */
-
+/*! jCarousel - v0.3.0-beta.2 - 2013-02-19
+* http://sorgalla.com/jcarousel
+* Copyright (c) 2013 Jan Sorgalla; Licensed MIT */
(function($) {
'use strict';

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

Oops, something went wrong.
@@ -1,8 +1,6 @@
-/*! jCarousel - v0.3.0-beta.2 - 2013-01-31
-* http://sorgalla.com/jcarousel/
-* Copyright 2013 Jan Sorgalla
-* Released under the MIT license */
-
+/*! jCarousel - v0.3.0-beta.2 - 2013-02-19
+* http://sorgalla.com/jcarousel
+* Copyright (c) 2013 Jan Sorgalla; Licensed MIT */
(function($) {
'use strict';

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

Oops, something went wrong.
@@ -1,8 +1,6 @@
-/*! jCarousel - v0.3.0-beta.2 - 2013-01-31
-* http://sorgalla.com/jcarousel/
-* Copyright 2013 Jan Sorgalla
-* Released under the MIT license */
-
+/*! jCarousel - v0.3.0-beta.2 - 2013-02-19
+* http://sorgalla.com/jcarousel
+* Copyright (c) 2013 Jan Sorgalla; Licensed MIT */
(function($) {
'use strict';
Oops, something went wrong.

0 comments on commit b423c9c

Please sign in to comment.