Browse Source

🔥 removed cli extentions

pull/2/head
Nicolas Beaussart 7 years ago
parent
commit
634598af7f
No known key found for this signature in database GPG Key ID: 51D5A407BFCE64A9
  1. 26
      src/extensions/cli-extension.ts

26
src/extensions/cli-extension.ts

@ -1,26 +0,0 @@
import { GluegunToolbox } from 'gluegun'
// add your CLI-specific functionality here, which will then be accessible
// to your commands
module.exports = (toolbox: GluegunToolbox) => {
toolbox.foo = () => {
toolbox.print.info('called foo extension')
}
toolbox.utils = {
verboseDebug: (value: any, title?: string) => {
const o = toolbox.parameters.options;
if (Boolean(o.v || o.verbose)) {
toolbox.print.debug(value, title);
}
}
}
// enable this if you want to read configuration in from
// the current folder's package.json (in a "nbx" property),
// nbx.config.json, etc.
// toolbox.config = {
// ...toolbox.config,
// ...toolbox.config.loadConfig(process.cwd(), "nbx")
// }
}
Loading…
Cancel
Save