Skip to content

tmchow/Amplitude-TypeScript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Amplitude-TypeScript

This is Amplitude's latest version of the JavaScript SDK, written in TypeScript.

Development

If you plan on contributing to this SDK, here's how you can start.

  1. Clone GitHub repo
  2. Install dependencies
  3. Build and link packages
$ git clone git@github.com:amplitude/Amplitude-TypeScript.git
$ nvm use
$ yarn --version
$ yarn install
$ yarn build

Check our guidelines for repo contributions on CONTRIBUTING.md.

Projects

Testing Locally

To test the SDK locally, you can run our test server.

Before running the test server for the first time, copy ".env.example" as ".env" and replace the variables in '.env' with your own variables.

Run yarn dev to run the test server. It will open up to the home page automatically in your default browser.

For more details visit the Test Server README.md

Troubleshooting

If you ever see an error that looks like this while running an Nx command (yarn test, yarn build, etc...):

 Lerna (powered by Nx)   DB transaction operation error: SqliteFailure(Error { code: SystemIoFailure, extended_code: 522 }, Some("disk I/O error"))

Run npx nx reset and try again

Documentation

See our Typescript SDK Reference for a list and description of all available SDK methods.

About

TypeScript Amplitude Analytics SDK

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 87.1%
  • HTML 5.1%
  • JavaScript 3.0%
  • Kotlin 1.5%
  • EJS 1.4%
  • Swift 1.2%
  • Other 0.7%