Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | module.exports = function(grunt) { |
| 2 | grunt.initConfig({ |
||
| 3 | pkg: grunt.file.readJSON('package.json'), |
||
| 4 | |||
| 5 | banner: |
||
| 6 | '/*!\n'+ |
||
| 7 | ' * Bootstrap Confirmation <%= pkg.version %>\n'+ |
||
| 8 | ' * Copyright 2013 Nimit Suwannagate <ethaizone@hotmail.com>\n'+ |
||
| 9 | ' * Copyright <%= grunt.template.today("yyyy") %> Damien "Mistic" Sorel <http://www.strangeplanet.fr>\n'+ |
||
| 10 | ' * Licensed under the Apache License, Version 2.0 (the "License")\n'+ |
||
| 11 | ' */', |
||
| 12 | |||
| 13 | // compress js |
||
| 14 | uglify: { |
||
| 15 | options: { |
||
| 16 | banner: '<%= banner %>\n' |
||
| 17 | }, |
||
| 18 | dist: { |
||
| 19 | files: { |
||
| 20 | 'bootstrap-confirmation.min.js': [ |
||
| 21 | 'bootstrap-confirmation.js' |
||
| 22 | ] |
||
| 23 | } |
||
| 24 | } |
||
| 25 | }, |
||
| 26 | |||
| 27 | // jshint tests |
||
| 28 | jshint: { |
||
| 29 | lib: { |
||
| 30 | files: { |
||
| 31 | src: [ |
||
| 32 | 'bootstrap-confirmation.js' |
||
| 33 | ] |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 | }); |
||
| 38 | |||
| 39 | grunt.loadNpmTasks('grunt-contrib-uglify'); |
||
| 40 | grunt.loadNpmTasks('grunt-contrib-jshint'); |
||
| 41 | |||
| 42 | grunt.registerTask('default', [ |
||
| 43 | 'uglify' |
||
| 44 | ]); |
||
| 45 | |||
| 46 | grunt.registerTask('test', [ |
||
| 47 | 'jshint' |
||
| 48 | ]); |
||
| 49 | }; |