In this repository you can find the lwc components demonstrated in November Salesforce Developer Meeting in WEE, Thessaloniki. Follow the instructions to deploy the code in your org.
Disclaimer: Most of the instructions in this repo are based to lwc-reciepes repo https://github.com/trailheadapps/lwc-recipes.
-
Installing the app using a Scratch Org: This is the recommended installation option. Use this option if you are a developer who wants to experience the app and the code.
-
Installing the app using a Developer Edition Org or a Trailhead Playground: Useful when tackling Trailhead Badges or if you want the app deployed to a more permanent environment than a Scratch org.
-
Set up your environment. Follow the steps in the Quick Start: Lightning Web Components Trailhead project. The steps include:
- Enable Dev Hub in your Trailhead Playground
- Install Salesforce CLI
- Install Visual Studio Code
- Install the Visual Studio Code Salesforce extensions, including the Lightning Web Components extension
-
If you haven't already done so, authorize your hub org and provide it with an alias (myhuborg in the command below):
sfdx auth:web:login -d -a myhuborg
-
Clone the lwc-recipes repository:
git clone https://github.com/mmousiou/lwcWinter23Demo.git cd lwcWinter23Demo
-
Create a scratch org and provide it with an alias (winter-23-release-notes in the command below):
sfdx force:org:create -s -f config/project-scratch-def.json -a winter-23-release-notes
-
Push the app to your scratch org:
sfdx force:source:push
-
Assign the Winter_Release_23 permission set to the default user:
sfdx force:user:permset:assign -n Winter_Release_23
-
Import sample data:
sfdx force:data:tree:import -p ./data/data-plan.json
-
Open the scratch org:
sfdx force:org:open
-
In App Launcher, click View All then select the Winter '23 release notes app.
Follow this set of instructions if you want to deploy the app to a more permanent environment than a Scratch org. This includes non source-tracked orgs such as a free Developer Edition Org or a Trailhead Playground.
Make sure to start from a brand-new environment to avoid conflicts with previous work you may have done.
-
Clone this repository:
git clone https://github.com/mmousiou/lwcWinter23Demo.git
-
Authorize your Trailhead Playground or Developer org and provide it with an alias (mydevorg in the command below):
sfdx auth:web:login -s -a mydevorg
-
Run this command in a terminal to deploy the app.
sfdx force:source:deploy -p force-app
-
Assign the
Winter_Release_23
permission set to the default user:sfdx force:user:permset:assign -n Winter_Release_23
-
Import some sample data.
sfdx force:data:tree:import -p ./data/data-plan.json
-
If your org isn't already open, open it now:
sfdx force:org:open -u mydevorg
-
In App Launcher, select the Winter '23 release notes app.
Run this command in a terminal npm
npm install
Prettier is a code formatter used to ensure consistent formatting across your code base. To use Prettier with Visual Studio Code, install this extension from the Visual Studio Code Marketplace. The .prettierignore and .prettierrc files are provided as part of this repository to control the behavior of the Prettier formatter.
Warning The current Apex Prettier plugin version requires that you install Java 11 or above.
ESLint is a popular JavaScript linting tool used to identify stylistic errors and erroneous constructs. To use ESLint with Visual Studio Code, install this extension from the Visual Studio Code Marketplace. The .eslintignore file is provided as part of this repository to exclude specific files from the linting process in the context of Lightning Web Components development.
authors: Bitzenis Stefanos, Mousiou Maria