Permalink
Browse files

4.2.4 development commit

1 parent 4f6faf3 commit 2f351b89fdd36279d7d5a10a2f2e25accbb687a5 @ewafford ewafford committed Apr 15, 2015
Showing with 6,920 additions and 3,228 deletions.
  1. +323 −0 Gruntfile.js
  2. +0 −82 Gulpfile.js
  3. +21 −0 _config.json
  4. +9 −2 bower.json
  5. +12 −0 dist/LICENSE.md
  6. +652 −0 dist/README.md
  7. +18 −16 dist/jquery.bxslider.css
  8. +1,576 −1,540 dist/jquery.bxslider.js
  9. +10 −0 dist/jquery.bxslider.min.css
  10. +8 −9 dist/jquery.bxslider.min.js
  11. BIN docs_src/assets/img/bx-logo.png
  12. BIN docs_src/assets/img/photo1-cropped.jpeg
  13. BIN docs_src/assets/img/photo1.jpeg
  14. BIN docs_src/assets/img/photo2-cropped.jpeg
  15. BIN docs_src/assets/img/photo2.jpeg
  16. BIN docs_src/assets/img/photo3-cropped.jpeg
  17. BIN docs_src/assets/img/photo3.jpeg
  18. BIN docs_src/assets/img/photo4.jpeg
  19. BIN docs_src/assets/img/photo5.jpeg
  20. BIN docs_src/assets/img/photo6.jpeg
  21. +234 −0 docs_src/assets/js/app.js
  22. +112 −0 docs_src/assets/less/docs.less
  23. +5 −0 docs_src/assets/vendors/jquery.min.js
  24. +1 −0 docs_src/assets/vendors/jquery.min.map
  25. +33 −0 docs_src/templates/layouts/demos.hbs
  26. +30 −0 docs_src/templates/layouts/docs.hbs
  27. +31 −0 docs_src/templates/layouts/home.hbs
  28. +40 −0 docs_src/templates/pages/demos/adaptiveHeight.hbs
  29. +70 −0 docs_src/templates/pages/demos/autoplay.hbs
  30. +41 −0 docs_src/templates/pages/demos/basic.hbs
  31. +88 −0 docs_src/templates/pages/demos/callbacks.hbs
  32. +41 −0 docs_src/templates/pages/demos/captions.hbs
  33. +438 −0 docs_src/templates/pages/demos/carousel.hbs
  34. +51 −0 docs_src/templates/pages/demos/customPager.hbs
  35. +22 −0 docs_src/templates/pages/demos/demos.hbs
  36. +43 −0 docs_src/templates/pages/demos/destroy.hbs
  37. +46 −0 docs_src/templates/pages/demos/fade.hbs
  38. +45 −0 docs_src/templates/pages/demos/manual.hbs
  39. +66 −0 docs_src/templates/pages/demos/shrinkItems.hbs
  40. +89 −0 docs_src/templates/pages/demos/ticker.hbs
  41. +44 −0 docs_src/templates/pages/demos/touch.hbs
  42. +45 −0 docs_src/templates/pages/demos/vertical.hbs
  43. +624 −0 docs_src/templates/pages/docs/options.hbs
  44. +8 −0 docs_src/templates/pages/index.hbs
  45. +14 −0 docs_src/templates/partials/footer.hbs
  46. +25 −0 docs_src/templates/partials/head.hbs
  47. +29 −0 docs_src/templates/partials/header.hbs
  48. +16 −0 docs_src/templates/partials/home-carousel.hbs
  49. +62 −0 docs_src/templates/partials/home-features.hbs
  50. +10 −0 docs_src/templates/partials/home-hero.hbs
  51. +7 −0 docs_src/templates/partials/javascripts.hbs
  52. +7 −0 docs_src/templates/partials/title.hbs
  53. +39 −21 package.json
  54. +176 −0 src/css/jquery.bxslider.css
  55. +81 −0 src/js/.jscsrc
  56. 0 { → src/js}/.jshintrc
  57. +1,569 −1,541 src/js/jquery.bxslider.js
  58. +9 −17 src/less/jquery.bxslider.less
View
@@ -0,0 +1,323 @@
+/**
+ * bxSlider
+ *
+ * Steven Wanderski
+ *
+ * Copyright (c) 2014
+ * Licensed under the MIT license.
+ */
+module.exports = function(grunt) {
+
+ var path = require('path');
+
+ if (!grunt.file.isDir('bower_components')) {
+ grunt.fail.fatal('>> Please run "bower install" before continuing.');
+ }
+ require('load-grunt-tasks')(grunt);
+
+ grunt
+ .initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ app: grunt.file.readJSON('_config.json'),
+ vendor: 'bower_components',
+ // assemble
+ assemble: {
+ options: {
+ flatten: false,
+ expand: true,
+ production: false,
+ assets: '<%= app.docs.dest %>/assets',
+ postprocess: require('pretty'),
+ mybaseDir: path.resolve('<%= app.docs.dest %>'),
+
+ // metadata
+ pkg: '<%= pkg %>',
+ app: '<%= app %>',
+ data: ['<%= app.docs.src %>/data/*.{json,yml}'],
+ helpers: ['handlebars-helpers'],
+
+ // templates
+ partials: '<%= app.docs.templates %>/partials/*.hbs',
+ layoutdir: '<%= app.docs.layouts %>/'
+ },
+ index: {
+ options: {
+ layout: 'home.hbs'
+ },
+ files: [{
+ expand: true,
+ cwd: '<%= app.docs.pages %>/',
+ src: '*.hbs',
+ dest: '<%= app.docs.dest %>/'
+ }]
+ },
+ demos: {
+ options: {
+ layout: 'demos.hbs'
+ },
+ files: [{
+ expand: true,
+ cwd: '<%= app.docs.pages %>/demos/',
+ src: '*.hbs',
+ dest: '<%= app.docs.dest %>/demos'
+ }]
+ },
+ docs: {
+ options: {
+ layout: 'docs.hbs'
+ },
+ files: [{
+ expand: true,
+ cwd: '<%= app.docs.pages %>/docs/',
+ src: '*.hbs',
+ dest: '<%= app.docs.dest %>/docs'
+ }]
+ }
+ },
+
+ // clean
+ clean: {
+ docs: ['<%= app.docs.dest %>/**/*.*'],
+ dist: ['dist/**/*.*']
+ },
+
+ // less
+ less: {
+ docs: {
+ options: {
+ compress: true,
+ paths: ['<%= app.docs.src %>/assets/less/', 'bower_components/bootstrap/less/']
+ },
+ files: {
+ '<%= app.docs.dest %>/assets/css/docs.min.css': '<%= app.docs.src %>/assets/less/docs.less'
+ }
+ },
+ dist: {
+ options: {
+ compress: false
+ },
+ files: [{
+ expand: true,
+ flatten: true,
+ cwd: 'src/less/',
+ src: '*less',
+ dest: 'src/css/',
+ ext: '.css',
+ extDot: 'last'
+ }]
+ }
+ },
+
+ concat: {
+ docs: {
+ src: [
+ 'bower_components/bootstrap/js/transition.js',
+ 'bower_components/bootstrap/js/alert.js',
+ 'bower_components/bootstrap/js/button.js',
+ 'bower_components/bootstrap/js/carousel.js',
+ 'bower_components/bootstrap/js/collapse.js',
+ 'bower_components/bootstrap/js/dropdown.js',
+ 'bower_components/bootstrap/js/modal.js',
+ 'bower_components/bootstrap/js/tooltip.js',
+ 'bower_components/bootstrap/js/popover.js',
+ 'bower_components/bootstrap/js/scrollspy.js',
+ 'bower_components/bootstrap/js/tab.js',
+ 'bower_components/bootstrap/js/affix.js',
+ 'bower_components/highlightjs/highlight.pack.js'
+ ],
+ dest: '<%= app.docs.dest %>/assets/js/vendor.js'
+ },
+ dist: {
+ options: {
+ banner: '/**\n' + ' * bxSlider v<%= pkg.version %>\n' +
+ ' * Copyright 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' +
+ ' * Written while drinking Belgian ales and listening to jazz\n\n' +
+ ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' + ' */\n\n'
+ },
+ files: {
+ 'dist/jquery.<%= pkg.name %>.css': ['src/css/*.css'],
+ 'dist/jquery.<%= pkg.name %>.js': '<%= app.src.scripts %>'
+ }
+ }
+ },
+
+ cssmin: {
+ options: {
+ banner: '/**\n' + ' * bxSlider v<%= pkg.version %>\n' +
+ ' * Copyright 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' +
+ ' * Written while drinking Belgian ales and listening to jazz\n\n' +
+ ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' + ' */\n\n'
+ },
+ dist: {
+ files: {
+ 'dist/jquery.<%= pkg.name %>.min.css': ['src/css/*.css']
+ }
+ }
+ },
+
+ jshint: {
+ options: {
+ jshintrc: 'src/js/.jshintrc'
+ },
+ dist: {
+ src: ['<%= app.src.scripts %>', 'Gruntfile.js']
+ }
+ },
+
+ jscs: {
+ options: {
+ config: 'src/js/.jscsrc',
+ reporter: 'text.js',
+ reporterOutput: 'jscs.report.txt'
+ },
+ dist: {
+ src: ['<%= app.src.scripts %>', 'Gruntfile.js']
+ }
+ },
+
+ uglify: {
+ options: {
+ banner: '/**\n' + ' * bxSlider v<%= pkg.version %>\n' +
+ ' * Copyright 2013-<%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' +
+ ' * Written while drinking Belgian ales and listening to jazz\n\n' +
+ ' * Licensed under <%= pkg.license.type %> (<%= pkg.license.url %>)\n' + ' */\n\n'
+ },
+ dist: {
+ files: {
+ 'dist/jquery.<%= pkg.name %>.min.js': '<%= app.src.scripts %>'
+ }
+ }
+ },
+
+ // copy
+ copy: {
+ distImages: {
+ expand: true,
+ flatten: true,
+ cwd: 'src/',
+ src: ['images/*.*'],
+ dest: 'dist/images'
+ },
+
+ distVendor: {
+ expand: true,
+ flatten: true,
+ cwd: 'src/',
+ src: ['vendor/*.*'],
+ dest: 'dist/vendor'
+ },
+
+ distToDocs: {
+ expand: true,
+ cwd: 'dist/',
+ src: ['**/*.*'],
+ dest: '<%= app.docs.dest %>/assets/bxslider'
+ },
+
+ srcToDocs: {
+ expand: true,
+ cwd: 'src/js',
+ src: ['**/*.js'],
+ dest: '<%= app.docs.dest %>/assets/bxslider/src'
+ },
+
+ docsAssets: {
+ expand: true,
+ cwd: '<%= app.docs.src %>/assets/',
+ src: ['css/*.css', 'vendors/*.js', 'vendors/*.map', 'img/*.*', 'js/*.*'],
+ dest: '<%= app.docs.dest %>/assets/'
+ },
+
+ docsHighlightAssets: {
+ expand: true,
+ cwd: 'bower_components/highlightjs/',
+ src: 'styles/*.css',
+ dest: '<%= app.docs.dest %>/assets/css/'
+ },
+
+ readme: {
+ files: [{
+ 'dist/LICENSE.md': 'LICENSE.md',
+ 'dist/README.md': 'README.md'
+ }]
+ }
+ },
+
+ // connect
+ connect: {
+ options: {
+ port: 9000,
+ open: true,
+ livereload: true,
+ hostname: 'localhost'
+ },
+ docs: {
+ options: {
+ base: '<%= app.docs.dest %>'
+ }
+ }
+ },
+
+ // watch
+ watch: {
+ options: {
+ livereload: true
+ },
+ templates: {
+ files: ['<%= app.docs.templates %>/**/*.hbs'],
+ tasks: ['assemble']
+ },
+ less: {
+ files: ['<%= app.docs.src %>/assets/**/*.less'],
+ tasks: ['less:docs']
+ },
+ lessDist: {
+ files: ['src/**/*.less'],
+ tasks: ['less:dist', 'concat:dist', 'cssmin:dist', 'copy:distToDocs']
+ },
+ jsDocs: {
+ files: ['<%= app.docs.src %>/assets/**/*.js'],
+ tasks: ['copy:docsAssets']
+ },
+ js: {
+ files: ['src/**/*.js'],
+ tasks: ['jscs:dist', 'jshint:dist', 'uglify:dist', 'concat:dist', 'copy:distToDocs', 'copy:srcToDocs']
+ },
+ helpers: {
+ files: ['<%= app.src %>/helpers/*.js'],
+ tasks: ['assemble']
+ }
+ },
+
+ // compress zip
+ compress: {
+ zip: {
+ options: {
+ archive: 'download/<%= pkg.version %>/bxslider.zip'
+ },
+ files: [{
+ expand: true,
+ cwd: 'dist/',
+ src: ['**'],
+ dest: 'bxslider.<%= pkg.version %>'
+ }]
+ }
+ }
+ });
+
+ grunt.loadNpmTasks('assemble');
+
+ // tasks
+ grunt.registerTask('dist', ['clean:dist', 'less:dist', 'concat:dist', 'cssmin:dist', 'copy:distImages', 'copy:distVendor', 'jscs:dist', 'uglify:dist', 'copy:readme']);
+
+ grunt.registerTask('docs', ['clean:docs', 'assemble', 'less:docs', 'concat:docs', 'copy:docsAssets', 'copy:docsHighlightAssets', 'copy:distToDocs']);
+
+ grunt.registerTask('test', ['jshint:dist']);
+
+ grunt.registerTask('default', ['dist', 'docs', 'test']);
+
+ grunt.registerTask('serve', ['connect:docs', 'watch']);
+
+ grunt.registerTask('zip', ['compress']);
+
+};
Oops, something went wrong.

0 comments on commit 2f351b8

Please sign in to comment.