Skip to content

Commit

Permalink
feat: scaffolding for initial cmpDev command
Browse files Browse the repository at this point in the history
  • Loading branch information
nrkruk committed Feb 12, 2025
1 parent 311d6ad commit ce1f9b6
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 233 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"@inquirer/select": "^2.4.7",
"@lwc/lwc-dev-server": "~11.5.0",
"@lwc/sfdc-lwc-compiler": "~11.5.0",
"@lwrjs/api": "0.16.4",
"@lwrjs/api": "0.16.6",
"@oclif/core": "^4.1.0",
"@salesforce/core": "^8.6.2",
"@salesforce/kit": "^3.1.6",
Expand Down
10 changes: 9 additions & 1 deletion src/commands/lightning/dev/component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import { SfCommand, Flags } from '@salesforce/sf-plugins-core';
import { Messages } from '@salesforce/core';
import { cmpDev } from '@lwrjs/api';

Messages.importMessagesDirectoryFromMetaUrl(import.meta.url);
const messages = Messages.loadMessages('@salesforce/plugin-lightning-dev', 'lightning.dev.component');
Expand All @@ -33,7 +34,14 @@ export default class LightningDevComponent extends SfCommand<LightningDevCompone
const { flags } = await this.parse(LightningDevComponent);

const name = flags.name ?? 'world';
this.log(`hello ${name}`);
this.log(`preview component: ${name}`);

// TODO implement me
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
await cmpDev({
componentName: name,
});

return {
path: '',
};
Expand Down
Loading

0 comments on commit ce1f9b6

Please sign in to comment.