Permalink
Browse files

Changed location of Grunt files.

  • Loading branch information...
1 parent deda81d commit 927f4125ea53d1b0c4f185dc76d879e189044813 Scott Robbin committed Jun 19, 2013
Showing with 94 additions and 3 deletions.
  1. +2 −1 .gitignore
  2. +2 −2 bower.json
  3. +61 −0 grunt.js
  4. +29 −0 package.json
View
@@ -1 +1,2 @@
-.DS_Store
+.DS_Store
+node_modules
View
@@ -1,14 +1,14 @@
{
"name": "jquery-backstretch",
"description": "A simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element.",
- "version": "2.0.3",
+ "version": "2.0.4",
"homepage": "http://srobbin.com/jquery-plugins/backstretch/",
"author": {
"name": "Scott Robbin",
"email": "scott@robbin.co",
"url": "http://srobbin.com"
},
- "version": "2.0.3",
+ "version": "2.0.4",
"main": ["jquery.backstretch.js"],
"dependencies": {
"jquery": "~1.9.1"
View
@@ -0,0 +1,61 @@
+/*global module:false*/
+module.exports = function(grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: '<json:package.json>',
+ meta: {
+ 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(", ") %> */'
+ },
+ concat: {
+ dist: {
+ src: ['<banner:meta.banner>', '<file_strip_banner:../src/<%= pkg.name %>.js>'],
+ dest: '../<%= pkg.name %>.js'
+ }
+ },
+ min: {
+ dist: {
+ src: ['<banner:meta.banner>', '<config:concat.dist.dest>'],
+ dest: '../<%= pkg.name %>.min.js'
+ }
+ },
+ qunit: {
+ files: ['../test/**/*.html']
+ },
+ lint: {
+ files: ['grunt.js', '../src/**/*.js', '../test/**/*.js']
+ },
+ watch: {
+ files: '<config:lint.files>',
+ tasks: 'lint qunit'
+ },
+ jshint: {
+ options: {
+ curly: true,
+ eqeqeq: true,
+ immed: true,
+ latedef: true,
+ newcap: true,
+ noarg: true,
+ sub: true,
+ undef: true,
+ boss: true,
+ eqnull: true,
+ browser: true,
+ laxcomma: true
+ },
+ globals: {
+ jQuery: true
+ }
+ },
+ uglify: {}
+ });
+
+ // Default task.
+ grunt.registerTask('default', 'lint qunit concat min');
+
+};
View
@@ -0,0 +1,29 @@
+{
+ "name": "jquery.backstretch",
+ "title": "Backstretch",
+ "description": "A simple jQuery plugin that allows you to add a dynamically-resized, slideshow-capable background image to any page or element.",
+ "version": "2.0.3",
+ "homepage": "http://srobbin.com/jquery-plugins/backstretch/",
+ "author": {
+ "name": "Scott Robbin",
+ "email": "scott@robbin.co",
+ "url": "http://srobbin.com"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/srobbin/jquery-backstretch.git"
+ },
+ "bugs": {
+ "url": "https://github.com/srobbin/jquery-backstretch/issues"
+ },
+ "licenses": [
+ {
+ "type": "MIT",
+ "url": "http://srobbin.com/jquery-plugins/backstretch//blob/master/LICENSE-MIT"
+ }
+ ],
+ "dependencies": {
+ "jquery": ">= 1.7"
+ },
+ "keywords": []
+}

0 comments on commit 927f412

Please sign in to comment.