File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ const fs = require('fs-extra')
1616const path = require ( 'path' )
1717
1818const 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' } )
2020const { 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
9898This 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
104104Note 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
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ OF ANY KIND, either express or implied. See the License for the specific languag
1010governing 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' )
1414const fs = require ( 'fs-extra' )
1515const ora = require ( 'ora' )
1616const chalk = require ( 'chalk' )
@@ -22,7 +22,7 @@ jest.mock('fs-extra')
2222jest . mock ( 'ora' , ( ) => jest . fn ( ) )
2323jest . 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 ( )
You can’t perform that action at this time.
0 commit comments