@sap/cds-dk
Version:
Command line client and development toolkit for the SAP Cloud Application Programming Model
39 lines (36 loc) • 862 B
JavaScript
/* eslint-disable no-unused-vars */
/** @typedef {import("./buildTaskProviderFactory").Task} Task */
/** @typedef {import("./plugin")} Plugin_ */
/**
* @abstract
*/
module.exports = class BuildTaskProvider {
/**
* @abstract
* @param {{for: string}} key
* @returns {boolean | undefined}
*/
providesTask(key) { }
/**
* @param {{for: string}} key
* @returns {} task
*/
getTask(key) { return key }
/**
* @abstract
* @param {Task} task
* @returns {typeof Plugin_}
*/
getPlugin(task) { /** abstract */ }
/**
* @abstract
* @param {Array} tasks
* @param {boolean} dependencies
*/
async lookupTasks(tasks, dependencies) { /* abstract */ }
/**
* @abstract
* @param {Task} task
*/
async applyTaskDefaults(task) { /** abstract */ }
}