diff options
Diffstat (limited to 'www/crm/wp-content/plugins/civicrm/civicrm/bower_components/angular-file-upload/Gruntfile.coffee')
-rw-r--r-- | www/crm/wp-content/plugins/civicrm/civicrm/bower_components/angular-file-upload/Gruntfile.coffee | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/www/crm/wp-content/plugins/civicrm/civicrm/bower_components/angular-file-upload/Gruntfile.coffee b/www/crm/wp-content/plugins/civicrm/civicrm/bower_components/angular-file-upload/Gruntfile.coffee new file mode 100644 index 00000000..a3a34ed0 --- /dev/null +++ b/www/crm/wp-content/plugins/civicrm/civicrm/bower_components/angular-file-upload/Gruntfile.coffee @@ -0,0 +1,58 @@ +path = require 'path' + +# Build configurations. +module.exports = (grunt) -> + grunt.initConfig + + # Metadata + pkg: grunt.file.readJSON('package.json'), + + banner: '/*\n' + + ' <%= pkg.name %> v<%= pkg.version %>\n' + + ' <%= pkg.homepage %>\n' + + '*/\n' + + # Deletes built file and temp directories. + clean: + working: + src: [ + 'angular-file-upload.*' + ] + + uglify: + + # concat js files before minification + js: + src: ['angular-file-upload.js'] + dest: 'angular-file-upload.min.js' + options: + banner: '<%= banner %>' + sourceMap: (fileName) -> + fileName.replace /\.js$/, '.map' + concat: + + # concat js files before minification + js: + options: + banner: '<%= banner %>' + stripBanners: true + src: [ + 'src/intro.js', + 'src/module.js', + 'src/outro.js' + ] + dest: 'angular-file-upload.js' + + # Register grunt tasks supplied by grunt-contrib-*. + # Referenced in package.json. + # https://github.com/gruntjs/grunt-contrib + grunt.loadNpmTasks 'grunt-contrib-clean' + grunt.loadNpmTasks 'grunt-contrib-copy' + grunt.loadNpmTasks 'grunt-contrib-uglify' + grunt.loadNpmTasks 'grunt-contrib-concat' + + grunt.registerTask 'default', [ + 'clean' + 'concat' + 'uglify' + ] |