powerdns-admin/app/static/global/plugins/bootstrap-confirmation/Gruntfile.js

49 lines
1.3 KiB
JavaScript
Raw Normal View History

2015-12-13 09:34:12 +00:00
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
banner:
'/*!\n'+
' * Bootstrap Confirmation <%= pkg.version %>\n'+
' * Copyright 2013 Nimit Suwannagate <ethaizone@hotmail.com>\n'+
' * Copyright <%= grunt.template.today("yyyy") %> Damien "Mistic" Sorel <http://www.strangeplanet.fr>\n'+
' * Licensed under the Apache License, Version 2.0 (the "License")\n'+
' */',
// compress js
uglify: {
options: {
banner: '<%= banner %>\n'
},
dist: {
files: {
'bootstrap-confirmation.min.js': [
'bootstrap-confirmation.js'
]
}
}
},
// jshint tests
jshint: {
lib: {
files: {
src: [
'bootstrap-confirmation.js'
]
}
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', [
'uglify'
]);
grunt.registerTask('test', [
'jshint'
]);
};