snowplow / snowplow-javascript-tracker

Snowplow event tracker for client-side and server-side JavaScript. Add analytics to your websites, web apps and servers.
http://snowplowanalytics.com
BSD 3-Clause "New" or "Revised" License
543 stars 220 forks source link

Port to TypeScript #72

Closed alexanderdean closed 3 years ago

alexanderdean commented 10 years ago

See this intro here: http://10consulting.com/2012/10/12/introduction-to-typescript-presentation/

Porting to TypeScript is quite well aligned with the Snowplow tech goal of strongly typed data pipelines.

Unlike CoffeeScript, TS doesn't introduce any of its own design weirdnesses.

alexanderdean commented 10 years ago

It looks like we can do a "soft" port to TypeScript by:

  1. Renaming our files from .js to .ts (!)
  2. Integrate https://github.com/k-maru/grunt-typescript into the build process

I'm interested as a first step to try this and see what the resulting JavaScript looks like. Is it still pretty efficient?

Let's schedule for 1.1.0

alexanderdean commented 10 years ago

This is ambitious - let's move back to 1.2.0...

alexanderdean commented 10 years ago

Moving back again

chuwy commented 7 years ago

See https://github.com/snowplow/snowplow-javascript-tracker/issues/526

chuwy commented 7 years ago

We even can publish definition files for stringly-typed method like snowplow_name_here('trackEvent')https://github.com/DefinitelyTyped/DefinitelyTyped/blob/types-2.0/google.analytics/index.d.ts

alexanderdean commented 7 years ago

Cool idea!

paulboocock commented 4 years ago

Good opportunity to do this as we move to v3.