Skip to content

Commit

Permalink
Replaced Makefile with Grunt; only distribute relevant files via bower.
Browse files Browse the repository at this point in the history
  • Loading branch information
blueimp committed Nov 11, 2013
1 parent a9260ea commit d178be6
Show file tree
Hide file tree
Showing 4 changed files with 159 additions and 112 deletions.
52 changes: 52 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
/*
* JavaScript Load Image Gruntfile
* https://github.com/blueimp/JavaScript-Load-Image
*
* Copyright 2013, Sebastian Tschan
* https://blueimp.net
*
* Licensed under the MIT license:
* http://www.opensource.org/licenses/MIT
*/

/*global module */

module.exports = function (grunt) {
'use strict';

grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'js/load-image.js',
'js/load-image-ios.js',
'js/load-image-orientation.js',
'js/load-image-meta.js',
'js/load-image-exif.js',
'js/load-image-exif-map.js',
'js/demo.js'
]
},
uglify: {
production: {
src: [
'js/load-image.js',
'js/load-image-ios.js',
'js/load-image-orientation.js',
'js/load-image-meta.js',
'js/load-image-exif.js',
'js/load-image-exif-map.js'
],
dest: 'js/load-image.min.js'
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-bump-build-git');

grunt.registerTask('test', ['jshint']);
grunt.registerTask('default', ['test', 'uglify']);

};
11 changes: 0 additions & 11 deletions Makefile

This file was deleted.

112 changes: 58 additions & 54 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,56 +1,60 @@
{
"name": "blueimp-load-image",
"version": "1.9.1",
"title": "JavaScript Load Image",
"description": "JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.",
"keywords": [
"javascript",
"load",
"loading",
"image",
"file",
"blob",
"url",
"scale",
"crop",
"img",
"canvas",
"meta",
"exif",
"thumbnail",
"resizing"
],
"homepage": "https://github.com/blueimp/JavaScript-Load-Image",
"author": {
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
},
"maintainers": [
{
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
}
],
"repository": {
"type": "git",
"url": "git://github.com/blueimp/JavaScript-Load-Image.git"
},
"devDependencies": {
"uglify-js": "2.3.6"
},
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues",
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
}
],
"main": [
"./js/load-image.js",
"./js/load-image-ios.js",
"./js/load-image-orientation.js",
"./js/load-image-meta.js",
"./js/load-image-exif.js",
"./js/load-image-exif-map.js"
]
"name": "blueimp-load-image",
"version": "1.10.0",
"title": "JavaScript Load Image",
"description": "JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.",
"keywords": [
"javascript",
"load",
"loading",
"image",
"file",
"blob",
"url",
"scale",
"crop",
"img",
"canvas",
"meta",
"exif",
"thumbnail",
"resizing"
],
"homepage": "https://github.com/blueimp/JavaScript-Load-Image",
"author": {
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
},
"maintainers": [
{
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
}
],
"repository": {
"type": "git",
"url": "git://github.com/blueimp/JavaScript-Load-Image.git"
},
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues",
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
}
],
"main": [
"js/load-image.js",
"js/load-image-ios.js",
"js/load-image-orientation.js",
"js/load-image-meta.js",
"js/load-image-exif.js",
"js/load-image-exif-map.js"
],
"ignore": [
"/*.*",
"css",
"js/vendor",
"js/demo.js",
"test"
]
}
96 changes: 49 additions & 47 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,49 +1,51 @@
{
"name": "blueimp-load-image",
"version": "1.9.1",
"title": "JavaScript Load Image",
"description": "JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.",
"keywords": [
"javascript",
"load",
"loading",
"image",
"file",
"blob",
"url",
"scale",
"crop",
"img",
"canvas",
"meta",
"exif",
"thumbnail",
"resizing"
],
"homepage": "https://github.com/blueimp/JavaScript-Load-Image",
"author": {
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
},
"maintainers": [
{
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
}
],
"repository": {
"type": "git",
"url": "git://github.com/blueimp/JavaScript-Load-Image.git"
},
"devDependencies": {
"uglify-js": "2.3.6"
},
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues",
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
}
],
"main": "./js/load-image.min.js"
"name": "blueimp-load-image",
"version": "1.10.0",
"title": "JavaScript Load Image",
"description": "JavaScript Load Image is a library to load images provided as File or Blob objects or via URL. It returns an optionally scaled and/or cropped HTML img or canvas element. It also provides a method to parse image meta data to extract Exif tags and thumbnails and to restore the complete image header after resizing.",
"keywords": [
"javascript",
"load",
"loading",
"image",
"file",
"blob",
"url",
"scale",
"crop",
"img",
"canvas",
"meta",
"exif",
"thumbnail",
"resizing"
],
"homepage": "https://github.com/blueimp/JavaScript-Load-Image",
"author": {
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
},
"maintainers": [
{
"name": "Sebastian Tschan",
"url": "https://blueimp.net"
}
],
"repository": {
"type": "git",
"url": "git://github.com/blueimp/JavaScript-Load-Image.git"
},
"bugs": "https://github.com/blueimp/JavaScript-Load-Image/issues",
"licenses": [
{
"type": "MIT",
"url": "http://www.opensource.org/licenses/MIT"
}
],
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-jshint": "~0.7.1",
"grunt-bump-build-git": "~1.0.0"
}
}

0 comments on commit d178be6

Please sign in to comment.