lwc-build-utils
v0.0.5
Published
Scripts to run a Lightning Web Components (LWC) project
Readme
lwc-build-utils
Scripts to run a Lightning Web Components (LWC) project
Usage
To use these utils, you must first create a Lightning Web Components project.
$ heroku plugins:install heroku-lwc-plugin
$ heroku lwc:create
$ cd <app_name>To run the project in development mode, run the below command. This command uses lwc-build-utils to create the necessary assets like wire adapters, service workers, server scripts and more. It then runs the project locally, and watches the files for any changes and reloads the browser to reflect the changes.
$ npm run watchTo run the project in production mode, run the following commands
$ npm run build
$ npm run startWhen deploying this project to Heroku, just commit the changes to the Heroku GIT Remote endpoint that automatically gets created when you run the heroku lwc:create command.
$ git add .
$ git commit -m "first commit"
$ git push heroku mainHeroku automatically runs the build and start scripts.
See LWC in action
If you want to see Lightning Web Components in action - check out https://recipes.lwc.dev.
