From 4a54dc7dc784fe25bfa412b8152898c7825c419e Mon Sep 17 00:00:00 2001 From: jekkos Date: Fri, 29 Jul 2016 09:58:51 +0200 Subject: [PATCH] Add license plugin for grunt (#359) --- Gruntfile.js | 11 +++++++++++ package.json | 3 ++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index ed6f31094..a3e10e1ed 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -183,11 +183,22 @@ module.exports = function(grunt) { src: ['**/header.php', '**/login.php'] } } + }, + license: { + all: { + // Target-specific file lists and/or options go here. + options: { + // Target-specific options go here. + directory: 'bower_components', + output: 'license/LICENSES' + } + } } }); require('load-grunt-tasks')(grunt); grunt.loadNpmTasks('grunt-mocha-webdriver'); + grunt.loadNpmTasks('grunt-license-bower'); grunt.registerTask('default', ['wiredep', 'bower_concat', 'bowercopy', 'concat', 'uglify', 'cssmin', 'tags', 'cachebreaker']); diff --git a/package.json b/package.json index 07e635981..8c5a65fde 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "load-grunt-tasks": "^3.4.0", "mocha": "^2.2.1", "phantomjs": "~1.9.2", - "wd": "^0.3.3" + "wd": "^0.3.3", + "grunt-license-bower": "~1.0.1" } }