UNPKG

@sap/cds-dk

Version:

Command line client and development toolkit for the SAP Cloud Application Programming Model

21 lines (16 loc) 462 B
const mvn = require('../../mvn') const { readProject } = require('../../projectReader') const { H2 } = require('../../constants').OPTIONS module.exports = class H2Template extends require('../../plugin') { static help() { return 'database support for H2' } async canRun() { const { isNodejs } = readProject() if (isNodejs) throw `'cds add ${H2}' is not available for Node.js` return true } async run() { await mvn.add(H2) } }