Add license plugin for grunt (#359)

This commit is contained in:
jekkos
2016-07-29 09:58:51 +02:00
parent e1f796cf99
commit 4a54dc7dc7
2 changed files with 13 additions and 1 deletions

View File

@@ -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']);

View File

@@ -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"
}
}