Skip to content

Commit

Permalink
Be like all the cool guys.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuupola committed Sep 19, 2013
1 parent f5935a7 commit ddd2991
Show file tree
Hide file tree
Showing 6 changed files with 96 additions and 71 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 1 @@
/.project
node_modules
15 changes: 15 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 1,15 @@
{
"curly": true,
"eqeqeq": true,
"eqnull": true,
"immed": true,
"noarg": true,
"quotmark": "double",
"trailing": true,
"undef": true,
"unused": true,

"node": true,
"jquery": true,
"browser": true
}
59 changes: 59 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 1,59 @@
module.exports = function(grunt) {
"use strict";

grunt.initConfig({
pkg: grunt.file.readJSON("package.json"),
uglify : {
options: {
banner: "/*\n"
" * Lazy Load - jQuery plugin for lazy loading images\n"
" *\n"
" * Copyright (c) 2007-2013 Mika Tuupola\n"
" *\n"
" * Licensed under the MIT license:\n"
" * http://www.opensource.org/licenses/mit-license.php\n"
" *\n"
" * Project home:\n"
" * http://www.appelsiini.net/projects/lazyload\n"
" *\n"
" * Version: <%= pkg.version %>\n"
" *\n"
" */\n"
},
target: {
files: {
"jquery.lazyload.min.js" : "jquery.lazyload.js",
"jquery.scrollstop.min.js" : "jquery.scrollstop.js"
}
}
},
watch: {
files: ["*.js", "!*.min.js" ,"test/spec/*Spec.js"],
tasks: ["test"],
},
jshint: {
files: ["*.js", "!*.min.js" ,"test/spec/*Spec.js"],
options: {
jshintrc: ".jshintrc"
}
},
jasmine: {
src: ["jquery.lazyload.js"],
options: {
helpers: "test/spec/*Helper.js",
specs: "test/spec/*Spec.js",
vendor: ["test/vendor/jquery-1.9.0.js", "test/vendor/jasmine-jquery.js"]
}
}
});

grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-jasmine");
grunt.loadNpmTasks("grunt-contrib-watch");

//grunt.registerTask("test", ["jshint", "jasmine"]);
grunt.registerTask("test", ["jshint"]);
grunt.registerTask("default", ["test", "uglify"]);

};
17 changes: 0 additions & 17 deletions Makefile

This file was deleted.

22 changes: 0 additions & 22 deletions Rakefile

This file was deleted.

52 changes: 21 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,32 1,22 @@
{
"name": "lazyload",
"version": "1.9.0",
"title": "Lazy Load",
"author": {
"name": "Mika Tuupola",
"url": "http://www.appelsiini.net/"
},
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
],
"dependencies": {
"jquery": "1"
},
"description": "Delay loading of images in long web pages. Images outside of viewport wont be loaded before user scrolls to them.",
"keywords": [
"lazyload",
"lazy",
"load",
"image"
],
"homepage": "http://www.appelsiini.net/projects/lazyload",
"files": [
"jquery.lazyload.js",
"jquery.lazyload.min.js",
"jquery.scrollstop.js",
"jquery.scrollstop.min.js"
]
}
"name": "lazyload",
"version": "1.9.0",
"engines": {
"node": ">= 0.8.0"
},
"repository": {
"type": "git",
"url": "[email protected]:tuupola/jquery_lazyload.git"
},
"author": "Mika Tuupola <[email protected]>",
"scripts": {
"test": "grunt test"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.6.4",
"grunt-contrib-uglify": "~0.2.4",
"grunt-contrib-jasmine": "~0.5.2",
"grunt-contrib-watch": "~0.5.3"
}
}

0 comments on commit ddd2991

Please sign in to comment.