Generate tracking code based on Mixpanel's lexicon definitions.
npm install lexigen
npx lexigen -u -s -p -t > tracking.ts
`
> The generated code is printed in stdout. You can simply redirect it to a file to save it.$3
`
-u, --username Mixpanel service account username. [string] [required]
-s, --secret Mixpanel service account secret/password. [string] [required]
-p, --project Mixpanel project id to pull the schema definitions from.
[string] [required]
-t, --target A target API to generate.
[string] [choices: "typescript", "dart"] [default: "typescript"]
--server-side, --ss Generate server-side code. [boolean] [default: false]
-f, --filter Filters the events by a specific tag. [string]
``> The generator assumes that the mixpanel tracking package is already installed and setup. It only imports the package at the top of the generated file.