Skip to content

Commit 29365d9

Browse files
purplecabbageJesse MacFadyen
authored andcommitted
clean-build becomes just clean (#862)
* clean-build becomes just clean
1 parent 266dd14 commit 29365d9

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ const fs = require('fs-extra')
1616
const path = require('path')
1717

1818
const BaseCommand = require('../../BaseCommand')
19-
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:clean-build', { provider: 'debug' })
19+
const aioLogger = require('@adobe/aio-lib-core-logging')('@adobe/aio-cli-plugin-app:clean', { provider: 'debug' })
2020
const { LAST_BUILT_ACTIONS_FILENAME, LAST_DEPLOYED_ACTIONS_FILENAME } = require('../../lib/defaults')
2121

22-
class CleanBuild extends BaseCommand {
22+
class Clean extends BaseCommand {
2323
async run () {
24-
const { flags } = await this.parse(CleanBuild)
24+
const { flags } = await this.parse(Clean)
2525
const configs = await this.getAppExtConfigs(flags)
2626

2727
const spinner = ora()
@@ -94,7 +94,7 @@ class CleanBuild extends BaseCommand {
9494
}
9595
}
9696

97-
CleanBuild.description = `Remove all build artifacts from the local machine
97+
Clean.description = `Remove all build artifacts from the local machine
9898
This command completely cleans all build artifacts from the dist directory including:
9999
- Action build files
100100
- Web assets (both production and development)
@@ -103,8 +103,8 @@ This command completely cleans all build artifacts from the dist directory inclu
103103
104104
Note that this will require a full rebuild on your next build command.`
105105

106-
CleanBuild.flags = {
106+
Clean.flags = {
107107
...BaseCommand.flags
108108
}
109109

110-
module.exports = CleanBuild
110+
module.exports = Clean
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
1010
governing permissions and limitations under the License.
1111
*/
1212

13-
const CleanBuild = require('../../../src/commands/app/clean-build')
13+
const Clean = require('../../../src/commands/app/clean')
1414
const fs = require('fs-extra')
1515
const ora = require('ora')
1616
const chalk = require('chalk')
@@ -22,7 +22,7 @@ jest.mock('fs-extra')
2222
jest.mock('ora', () => jest.fn())
2323
jest.mock('@adobe/aio-lib-core-logging', () => jest.fn().mockReturnValue({ debug: jest.fn(), error: jest.fn() }))
2424

25-
describe('CleanBuild Command', () => {
25+
describe('Clean Command', () => {
2626
let cmd, spinner
2727

2828
beforeEach(() => {
@@ -45,7 +45,7 @@ describe('CleanBuild Command', () => {
4545
ora.mockReturnValue(spinner)
4646

4747
// Instantiate command
48-
cmd = new CleanBuild([])
48+
cmd = new Clean([])
4949
cmd.parse = jest.fn().mockResolvedValue({ flags: {} })
5050
cmd.getAppExtConfigs = jest.fn().mockResolvedValue({})
5151
cmd.log = jest.fn()

0 commit comments

Comments
 (0)