Files
blockly/scripts/gulpfiles/license_tasks.js
Christopher Allen e602358dd5 feat(build): Make cleanup, license [sic] tasks invoke their prerequisites
Turns out they don't have any, so this commit just classifies
their gulp targets according to the established scheme.
2022-09-27 14:02:32 +01:00

23 lines
487 B
JavaScript

/**
* @license
* Copyright 2018 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Gulp tasks to check the licenses of Blockly dependencies.
*/
const jsgl = require('js-green-licenses');
function checkLicenses() {
const checker = new jsgl.LicenseChecker();
checker.setDefaultHandlers();
return checker.checkLocalDirectory('.');
};
module.exports = {
// Manually-invokable targets, with prequisites where required.
checkLicenses: checkLicenses
};