UNPKG

@ruanitto/adonis-report-builder

Version:

Report Builder for Adonis 4. Builds a PDF from view

25 lines (21 loc) 555 B
'use strict' /* * adonis-report-builder * * (c) Rafael Gomes <madrafael.gsilva@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ const path = require('path') module.exports = async (cli) => { try { await cli.copy( path.join(__dirname, './examples/config.js'), path.join(cli.helpers.configPath(), 'reportbuilder.js') ) await cli.command.completed('create', 'config/reportbuilder.js') } catch (error) { // ignore error } }