mirror of
https://github.com/cwinfo/powerdns-admin.git
synced 2025-01-10 04:15:40 +00:00
49 lines
1.3 KiB
JavaScript
49 lines
1.3 KiB
JavaScript
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'
|
|
]);
|
|
}; |