Skip to content

Commit

Permalink
Add license plugin for grunt (opensourcepos#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
jekkos committed Aug 8, 2016
1 parent e1f796c commit 4a54dc7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 4a54dc7

Please sign in to comment.