UNPKG

@enjin/ionic1

Version:

A comprehensive build system for Ionic 1 apps by Madness Labs as part of the Madness Enjin

24 lines (20 loc) 786 B
const del = require('del'); module.exports = function(params, callback) { var scssPath = global.enjin.css.srcDir + 'popover/' + params.name + '.scss'; var pugPath = global.enjin.html.srcDir + 'popover/' + params.name + '.pug'; var htmlPath = global.enjin.root + global.enjin.html.dir + 'popover/' + params.name + '.html'; console.log(`Removing popover @ `); console.log(scssPath); console.log(pugPath); console.log(htmlPath); del([scssPath, pugPath, htmlPath]).then(() => { if (callback && typeof callback === 'function') { callback(); } }).catch((err) => { console.log('[ERROR] This happened: ' + err); if (callback && typeof callback === 'function') { callback(); } }); };