first attempt for Grunt
parent
6d703a95c3
commit
f611b263ad
@ -0,0 +1,28 @@
|
|||||||
|
module.exports = function(grunt) {
|
||||||
|
|
||||||
|
// Project configuration.
|
||||||
|
grunt.initConfig({
|
||||||
|
pkg: grunt.file.readJSON('package.json'),
|
||||||
|
uglify: {
|
||||||
|
options: {
|
||||||
|
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
|
||||||
|
sourceMap: true,
|
||||||
|
// sourceMapIncludeSources: true,
|
||||||
|
sourceMapName: 'colorPicker.js.map',
|
||||||
|
report: 'gzip'
|
||||||
|
},
|
||||||
|
my_target: {
|
||||||
|
files: {
|
||||||
|
'color.all.min.js': ['colors.js', 'colorPicker.data.js', 'colorPicker.js']
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
|
// Load the plugin that provides the "uglify" task.
|
||||||
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||||
|
|
||||||
|
// Default task(s).
|
||||||
|
grunt.registerTask('default', ['uglify']);
|
||||||
|
|
||||||
|
};
|
File diff suppressed because one or more lines are too long
@ -1,28 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "ColorPicker",
|
|
||||||
"title": "jQuery-ColorPicker",
|
|
||||||
"description": "Advanced javaScript color picker for jQuery (rgb, hsv, hsl, hex, cmyk, cmy, XYZ, Lab, alpha, WCAG 2.0, ...)",
|
|
||||||
"keywords": [
|
|
||||||
"color-picker",
|
|
||||||
"color",
|
|
||||||
"colour"
|
|
||||||
],
|
|
||||||
"version": "1.0.0.1",
|
|
||||||
"author": {
|
|
||||||
"name": "Peter Dematté",
|
|
||||||
"email": "colorPicker@dematte.at",
|
|
||||||
"url": "http://dematte.at/colorPicker"
|
|
||||||
},
|
|
||||||
"licenses": [
|
|
||||||
{
|
|
||||||
"type": "MIT",
|
|
||||||
"url": "https://github.com/PitPik/colorPicker/blob/master/MIT-LICENSE.txt"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"bugs": "https://github.com/PitPik/colorPicker/issues",
|
|
||||||
"homepage": "http://dematte.at/colorPicker",
|
|
||||||
"docs": "https://github.com/PitPik/colorPicker",
|
|
||||||
"dependencies": {
|
|
||||||
"jquery": ">=1.7"
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because one or more lines are too long
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "colorPicker",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "http://github.com/PitPik/colorPicker.git"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"grunt": "^0.4.5",
|
||||||
|
"grunt-contrib-uglify": "^0.5.1"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue