File tree Expand file tree Collapse file tree 3 files changed +241
-233
lines changed
src/commands/lightning/dev Expand file tree Collapse file tree 3 files changed +241
-233
lines changed Original file line number Diff line number Diff line change 99 "@inquirer/select" : " ^2.4.7" ,
1010 "@lwc/lwc-dev-server" : " ~11.5.0" ,
1111 "@lwc/sfdc-lwc-compiler" : " ~11.5.0" ,
12- "@lwrjs/api" : " 0.16.4 " ,
12+ "@lwrjs/api" : " 0.16.6 " ,
1313 "@oclif/core" : " ^4.1.0" ,
1414 "@salesforce/core" : " ^8.6.2" ,
1515 "@salesforce/kit" : " ^3.1.6" ,
Original file line number Diff line number Diff line change 77
88import { SfCommand , Flags } from '@salesforce/sf-plugins-core' ;
99import { Messages } from '@salesforce/core' ;
10+ import { cmpDev } from '@lwrjs/api' ;
1011
1112Messages . importMessagesDirectoryFromMetaUrl ( import . meta. url ) ;
1213const messages = Messages . loadMessages ( '@salesforce/plugin-lightning-dev' , 'lightning.dev.component' ) ;
@@ -33,7 +34,14 @@ export default class LightningDevComponent extends SfCommand<LightningDevCompone
3334 const { flags } = await this . parse ( LightningDevComponent ) ;
3435
3536 const name = flags . name ?? 'world' ;
36- this . log ( `hello ${ name } ` ) ;
37+ this . log ( `preview component: ${ name } ` ) ;
38+
39+ // TODO implement me
40+ // eslint-disable-next-line @typescript-eslint/no-unsafe-call
41+ await cmpDev ( {
42+ componentName : name ,
43+ } ) ;
44+
3745 return {
3846 path : '' ,
3947 } ;
You can’t perform that action at this time.
0 commit comments