Browse Source

first attempt for Grunt

pull/16/head
peterd 7 years ago
parent
commit
f611b263ad
  1. 28
      Gruntfile.js
  2. 11
      color.all.min.js
  3. 28
      colorPicker.jquery.json
  4. 1
      colorPicker.js.map
  5. 12
      package.json

28
Gruntfile.js

@ -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']);
};

11
color.all.min.js
File diff suppressed because it is too large
View File

28
colorPicker.jquery.json

@ -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"
}
}

1
colorPicker.js.map
File diff suppressed because it is too large
View File

12
package.json

@ -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…
Cancel
Save