- Salesforce CLI/sfdx
- webpack v4, including webpack dev server for live reloading
- React
- Lightning Design System
- Lightning Testing Service (LTS) with Jasmine
- Node >= 8.9.0
- To use Salesforce CLI (SFDX), install Salesforce CLI and finish authentication to Dev Hub org.
$ npm install
Local w/ Hot Reload (Recommended)
$ npm run start
Full build
$ npm run build
$ open build/index.html // or open your browser and access to file://<current path>/build/index.html
Create and connect scratch org if not created.
$ sfdx force:org:create -f config/project-scratch-def.json -a MyScratchOrg
(Workaround): To test using LTS, install LTS
$ sfdx force:lightning:test:install -u MyScratchOrg
Package applications and push to the scratch org.
$ npm run package
$ sfdx force:source:push -u MyScratchOrg
Open the application.
$ sfdx force:org:open -u MyScratchOrg -p c/app.app
Test for Lightning Components
$ npm run test:lightning -- -u MyScratchOrg
force-app
: sfdx source foldersrc
: application source folder (not dependent Salesforce)