Skip to content

Commit

Permalink
Refactoring! Use 2 space instead of tab char.
Browse files Browse the repository at this point in the history
  • Loading branch information
needim committed May 22, 2014
1 parent 093ed06 commit 01d4e74
Show file tree
Hide file tree
Showing 20 changed files with 1,677 additions and 1,591 deletions.
68 changes: 34 additions & 34 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,47 +1,47 @@
module.exports = function (grunt) {
grunt.initConfig({
module.exports = function(grunt) {
grunt.initConfig({

bump: {
bump : {
options: {
files: ['package.json', 'noty.jquery.json', 'bower.json', 'js/noty/jquery.noty.js'],
updateConfigs: [],
commit: false,
commitMessage: 'Release v%VERSION%',
commitFiles: ['-a'],
createTag: true,
tagName: 'v%VERSION%',
tagMessage: 'Version %VERSION%',
push: false,
pushTo: 'upstream',
files : ['package.json', 'noty.jquery.json', 'bower.json', 'js/noty/jquery.noty.js'],
updateConfigs : [],
commit : false,
commitMessage : 'Release v%VERSION%',
commitFiles : ['-a'],
createTag : true,
tagName : 'v%VERSION%',
tagMessage : 'Version %VERSION%',
push : false,
pushTo : 'upstream',
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d'
}
},
concat: {
dist: {
src: ['js/noty/jquery.noty.js', 'js/noty/layouts/*.js', 'js/noty/themes/*.js'],
dest: 'js/noty/packaged/jquery.noty.packaged.js'
}
},
concat: {
dist: {
src : ['js/noty/jquery.noty.js', 'js/noty/layouts/*.js', 'js/noty/themes/*.js'],
dest: 'js/noty/packaged/jquery.noty.packaged.js'
}
},

uglify: {
options: {
uglify: {
options : {
preserveComments: function(a) {
return !!(a.start.file == 'js/noty/jquery.noty.js' && a.start.line == 11);
}
},
minifyJS: {
files: {
'js/noty/packaged/jquery.noty.packaged.min.js': ['js/noty/jquery.noty.js', 'js/noty/layouts/*.js', 'js/noty/themes/*.js']
}
}
}
});
minifyJS: {
files: {
'js/noty/packaged/jquery.noty.packaged.min.js': ['js/noty/jquery.noty.js', 'js/noty/layouts/*.js', 'js/noty/themes/*.js']
}
}
}
});

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

grunt.registerTask('build', ['bump', 'concat', 'uglify:minifyJS']);
grunt.registerTask('conc', ['concat']);
grunt.registerTask('ugly', ['uglify:minifyJS']);
grunt.registerTask('build', ['bump', 'concat', 'uglify:minifyJS']);
grunt.registerTask('conc', ['concat']);
grunt.registerTask('ugly', ['uglify:minifyJS']);
};
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "noty",
"version" : "2.2.4",
"version" : "2.2.5",
"authors" : [
"Nedim Arabacı"
],
Expand Down
Loading

0 comments on commit 01d4e74

Please sign in to comment.