Skip to content

Commit

Permalink
updated grunt js tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
Roy van Kaathoven committed Mar 4, 2013
1 parent 53628d8 commit 5cab548
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 12 deletions.
23 changes: 14 additions & 9 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/**
* Grunt Build File
*/

module.exports = function(grunt) {

var banner = '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */\n';

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
// Project metadata, used by the <banner> directive.
meta: {
banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %> */'
},
pkg: require('./package.json'),
concat: {
options: {
banner: banner
},
normal: {
src: ['<banner>', 'src/inline-attach.js' ],
dest: 'dist/inline-attach.js'
Expand All @@ -27,7 +27,10 @@ module.exports = function(grunt) {
}
},
// Lists of files to be minified with UglifyJS.
min: {
uglify: {
options: {
banner: banner
},
normal: {
src: [ '<banner>', 'dist/inline-attach.js' ],
dest: 'dist/inline-attach.min.js',
Expand Down Expand Up @@ -61,7 +64,9 @@ module.exports = function(grunt) {
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-uglify');

grunt.registerTask('qa', ['jshint']);
grunt.registerTask('default', ['qa', 'concat', 'min']);
grunt.registerTask('default', ['qa', 'concat', 'uglify']);
};
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Inline Attachment 1.2.2 [![Master Branch Build Status](https://api.travis-ci.org/Rovak/InlineAttachment.png?branch=master)](http://travis-ci.org/Rovak/InlineAttachment) ![project status](http://stillmaintained.com/Rovak/InlineAttachment.png)
# Inline Attachment 1.2.3 [![Master Branch Build Status](https://api.travis-ci.org/Rovak/InlineAttachment.png?branch=master)](http://travis-ci.org/Rovak/InlineAttachment) ![project status](http://stillmaintained.com/Rovak/InlineAttachment.png)

Adds upload functionality to a textarea or CodeMirror instance by either drag-dropping or pasting (only in chrome) an image inside it.

Expand Down Expand Up @@ -120,6 +120,10 @@ This should build the project and the files will appear in the `dist/` folder

## Changelog

### 1.2.3 (04-03-2012)

* Updated Grunt.js tasks

### 1.2.2 (04-03-2012)

* Fixed some documentation errors
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@
"authors": [
"Roy van Kaathoven @razko <[email protected]> (https://github.com/rovak)"
],
"version": "1.2.2",
"version": "1.2.3",
"devDependencies": {
"grunt": "~0.4",
"grunt-contrib-jshint": "~0.2.0"
"grunt-contrib-jshint": "~0.2.0",
"grunt-contrib-concat": "~0.1.3",
"grunt-contrib-uglify": "~0.1.2"
}
}

0 comments on commit 5cab548

Please sign in to comment.