UNPKG

692 BJavaScriptView Raw
1/* eslint-disable no-console */
2'use strict'
3
4const ora = require('ora')
5const depCheck = require('../src/dependency-check')
6
7const EPILOG = `
8Supports options forwarding with '--' for more info check https://github.com/maxogden/dependency-check#cli-usage
9`
10
11module.exports = {
12 command: 'dependency-check',
13 aliases: ['dep-check', 'dep'],
14 desc: 'Run `dependency-check` cli with aegir defaults.',
15 builder: (yargs) => {
16 yargs
17 .epilog(EPILOG)
18 .example('aegir dependency-check -- --unused', 'To check unused packages in your repo.')
19 },
20 async handler (argv) {
21 const spinner = ora('Checking dependencies').start()
22 await depCheck(argv)
23 spinner.succeed()
24 }
25}