Consult Amazon Kepler documentation
Follow the Intructions for setting up your Amazon Kepler environment
These instructions run the App in Fast Refresh mode so you can make changes and have them reload in the app:
- Go into the
exampledirectory and open 2 terminal windows (A & B) - Terminal A:
kepler device simulator start - Terminal B:
npm start - Terminal A:
kepler device start-port-forwarding --device Simulator -p 8081 --forward false - Terminal A:
kepler build -b Debug - Terminal A:
kepler run-kepler build/vega-tv2023-aarch64-debug/amazonkepler_aarch64.vpkg com.segment.keplersample.main -s
Note: If you have trouble running
kepler buildtry sourcing the environment first!source ~/.kepler/kntools/environment-setup-sdk.sh
The library itself is plain TS code. As such you can use any normal NPM commands.
npm build # compiles TS code
npm pack # pack for sharing a release
Note: Due to how Amazon Vega gets injected currently this only supports Node v18 + NPM. Do not try to use Yarn/PNPM with this!