Permalink
Browse files

updating grunt file and moving minified file to dist folder

  • Loading branch information...
1 parent 3b16044 commit 528dcc5be46b88bbb753c93c4e87ec048b0d29e5 @bgrins committed Nov 28, 2012
Showing with 31 additions and 2 deletions.
  1. +5 −0 dist/tinycolor-min.js
  2. +22 −0 grunt.js
  3. +4 −2 tinycolor.js
View
Oops, something went wrong.
View
@@ -2,6 +2,27 @@
module.exports = function(grunt) {
grunt.initConfig({
+ pkg: '<json:package.json>',
+ meta: {
+ banner: '// TinyColor v<%= pkg.version %>\n' +
+ '// https://github.com/bgrins/TinyColor\n' +
+ '// <%= grunt.template.today("yyyy-mm-dd") %>, Brian Grinstead, MIT License\n'
+ },
+
+ concat: {
+ dist: {
+ src: ['<banner:meta.banner>', 'tinycolor.js'],
+ dest: 'dist/tinycolor.js'
+ }
+ },
+
+ min: {
+ dist: {
+ src: ['<banner:meta.banner>', 'tinycolor.js', '\n'],
+ dest: 'dist/tinycolor-min.js'
+ }
+ },
+
lint: {
all: ['tinycolor.js']
},
@@ -18,5 +39,6 @@ module.exports = function(grunt) {
});
grunt.registerTask('default', 'lint');
+ grunt.registerTask('build', 'min');
};
View
@@ -1,4 +1,6 @@
-// TinyColor.js - <https://github.com/bgrins/TinyColor> - 2012 Brian Grinstead - v0.9.12
+// TinyColor v0.9.12
+// https://github.com/bgrins/TinyColor
+// 2012-11-28, Brian Grinstead, MIT License
(function(root) {
@@ -815,4 +817,4 @@ else {
root.tinycolor = tinycolor;
}
-})(this);
+})(this);

0 comments on commit 528dcc5

Please sign in to comment.