Script to check licenses (#3757)

* Add script task to check licenses of all dependenies
This commit is contained in:
Sam El-Husseini
2020-03-19 10:53:29 -07:00
committed by GitHub
parent a6e3f78425
commit d838778a4a
4 changed files with 423 additions and 10 deletions

View File

@@ -0,0 +1,21 @@
/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Gulp tasks to check the licenses of Blockly depenedencies.
*/
const jsgl = require('js-green-licenses');
function checkLicenses() {
const checker = new jsgl.LicenseChecker();
checker.setDefaultHandlers();
return checker.checkLocalDirectory('.');
};
module.exports = {
checkLicenses: checkLicenses
};