diff --git a/CHANGELOG.textile b/CHANGELOG.textile index ab7aa4cd..2716c0c7 100644 --- a/CHANGELOG.textile +++ b/CHANGELOG.textile @@ -29,6 +29,19 @@ h4. Install with "bower":http://bower.io
$ bower install jquery.lazyload
+h4. Run local "Grunt":http://gruntjs.com test to see examples + +Install dependencies: +install "node.js":http://nodejs.org/ +Install Grunt and dependencies (in jquery_lazyload directory) +
+$ npm install -g grunt-cli
+$ npm install
+
+ +Start server: +
$ grunt server
+ h1. License All code licensed under the "MIT License":http://www.opensource.org/licenses/mit-license.php. All images licensed under "Creative Commons Attribution 3.0 Unported License":http://creativecommons.org/licenses/by/3.0/deed.en_US. In other words you are basically free to do whatever you want. Just don't remove my name from the source. diff --git a/Gruntfile.js b/Gruntfile.js index b0b55224..e0961a69 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -31,6 +31,15 @@ module.exports = function(grunt) { specs: "test/spec/*Spec.js", vendor: ["test/vendor/jquery-1.9.0.js", "test/vendor/jasmine-jquery.js"] } + }, + connect: { + all: { + options:{ + port: 8080, + hostname: "localhost", + keepalive : true + } + } } }); @@ -38,9 +47,11 @@ module.exports = function(grunt) { grunt.loadNpmTasks("grunt-contrib-jshint"); grunt.loadNpmTasks("grunt-contrib-jasmine"); grunt.loadNpmTasks("grunt-contrib-watch"); + grunt.loadNpmTasks('grunt-contrib-connect'); //grunt.registerTask("test", ["jshint", "jasmine"]); grunt.registerTask("test", ["jshint"]); grunt.registerTask("default", ["test", "uglify"]); + grunt.registerTask("server", ["connect"]); }; \ No newline at end of file diff --git a/package.json b/package.json index fac855d6..3c461593 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,9 @@ "grunt-contrib-jasmine": "~0.5.2", "grunt-contrib-watch": "~0.5.3" }, + "dependencies": { + "grunt-contrib-connect": "^0.8.0" + }, "description": "Lazyload images with jQuery", "bugs": { "url": "https://github.com/tuupola/jquery_lazyload/issues"