Skip to content

Commit

Permalink
bump version to 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sualko committed Aug 5, 2015
1 parent bc7726f commit 8030361
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 2 deletions.
18 changes: 17 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
module.exports = function(grunt) {

grunt.initConfig({
app: grunt.file.readJSON('package.json'),
meta: {
banner: grunt.file.read('banner.js')
},
jshint: {
options: {
jshintrc: '.jshintrc'
Expand All @@ -26,12 +30,24 @@ module.exports = function(grunt) {
browserify: {
module:{src: ['strophe.jinglejs.js'],
dest: 'strophe.jinglejs-bundle.js'}
},
usebanner: {
dist: {
options: {
position: 'top',
banner: '<%= meta.banner %>'
},
files: {
src: ['strophe.jinglejs-bundle.js']
}
}
}
});

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-jsbeautifier');
grunt.loadNpmTasks('grunt-browserify');
grunt.loadNpmTasks('grunt-banner');

grunt.registerTask('default', ['jshint', 'jsbeautifier', 'browserify']);
grunt.registerTask('default', ['jshint', 'jsbeautifier', 'browserify', 'usebanner']);
};
12 changes: 12 additions & 0 deletions banner.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*!
* <%= app.name %> v<%= app.version %> - <%= grunt.template.today("yyyy-mm-dd") %>
*
* Copyright (c) <%= grunt.template.today("yyyy") %> <%= app.author %> <br>
* Released under the <%= app.license %> license
*
* Please see <%= app.homepage %>
*
* @author <%= app.author %>
* @version <%= app.version %>
* @license <%= app.license %>
*/
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"name": "strophe.jinglejs",
"version": "0.1.0",
"version": "0.1.1",
"description": "This package adds jingle.js to strophe.js",
"main": "strophe.jinglejs.js",
"author": "Klaus Herberth <[email protected]>",
"homepage": "https://github.com/sualko/strophe.jinglejs/",
"repository": {
"type": "git",
"url": "https://github.com/sualko/strophe.jinglejs"
Expand All @@ -16,6 +17,7 @@
},
"devDependencies": {
"grunt": "^0.4.5",
"grunt-banner": "^0.4.0",
"grunt-browserify": "^3.8.0",
"grunt-contrib-jshint": "^0.11.2",
"grunt-jsbeautifier": "^0.2.10"
Expand Down
13 changes: 13 additions & 0 deletions strophe.jinglejs-bundle.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*!
* strophe.jinglejs v0.1.1 - 2015-08-05
*
* Copyright (c) 2015 Klaus Herberth <[email protected]> <br>
* Released under the MIT license
*
* Please see https://github.com/sualko/strophe.jinglejs/
*
* @author Klaus Herberth <[email protected]>
* @version 0.1.1
* @license MIT
*/

(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

},{}],2:[function(require,module,exports){
Expand Down

0 comments on commit 8030361

Please sign in to comment.