lwc-component

1.0.2 • Public • Published

lwc-component

Use this to create a lwc component

npx lwc-component

Then answer a few questions...

  • namespace (skipped if there is only one found src/modules/<ns>)
    • Add an empty namespace folder to get this option.
  • component name (the point of this script)
  • css (Yn)
  • unit Tests (yN)
  • wdio Tests (yN)

Done, you now have a nice empty component!

If a TypeScript tsconfig.json is found we will assume .ts.

Features

  • Default if only one namespace is found.
  • Convert foo-bar to fooBar.
  • Validate component name.
  • Validate component already exists.

Readme

Keywords

Package Sidebar

Install

npm i lwc-component

Weekly Downloads

6

Version

1.0.2

License

MIT

Unpacked Size

9.69 kB

Total Files

4

Last publish

Collaborators

  • templarian