No description, website, or topics provided.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


I spent 3 week spare time to create a simple lighting app (or lighting tab) in order to grasp the essences of Salesforce lightning component, SFDX, and deployment pipeline.

Command steps

  1. install sfdx command toolkit

  2. download source code

  • git clone to a local directory
  • cd into this directory
  1. log into devhub
  • sfdx force:auth:web:login -a test-inthearea -d
  1. spin up a scratch org
  • sfdx force:org:create -s -f config/project-scratch-def.json -a temptest
  1. install LTS to the default scratch org for unit testing
  • sfdx force:lightning:test:install
  1. push source code to this scratch org
  • sfdx force:source:push
  1. assign permission set to read/edit location field in Account
  • sfdx force:user:permset:assign -n Geolocation
  1. copy sample Account data
  • sfdx force:data:tree:import --sobjecttreefiles data/Account.json
  1. run simple LTS unit tests
  • sfdx force:lightning:test:run -a -o
  1. run the whole setup in Travis
  • fork this repo
  • create a Travis account and link your forked repo
  • make a new commit to your repo would trigger the steps defined in .travis.yml file

Extra stuff

I will write blog threads and create short youtube video clips on this later.