1 | #!/usr/bin/env node
|
2 |
|
3 | const
|
4 | parseArgs = require('minimist'),
|
5 | path = require('path'),
|
6 | chalk = require('chalk')
|
7 |
|
8 | const
|
9 | appPaths = require('../lib/app-paths'),
|
10 | log = require('../lib/helpers/logger')('app:clean')
|
11 |
|
12 | const argv = parseArgs(process.argv.slice(2), {
|
13 | alias: {
|
14 | h: 'help'
|
15 | },
|
16 | boolean: ['h']
|
17 | })
|
18 |
|
19 | if (argv.help) {
|
20 | console.log(`
|
21 | Description
|
22 | Cleans all build artifacts
|
23 | Usage
|
24 | $ quasar clean
|
25 | Options
|
26 | --help, -h Displays this message
|
27 | `)
|
28 | process.exit(0)
|
29 | }
|
30 |
|
31 | require('../lib/artifacts').cleanAll()
|
32 |
|
33 | console.log()
|
34 | log(`Done cleaning build artifacts`)
|
35 | log()
|