Skip to content

Commit

Permalink
github action workflow for publishing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
skarim committed Aug 19, 2024
1 parent d4bbb71 commit f6152d8
Show file tree
Hide file tree
Showing 3 changed files with 151 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# @flisk/analyze-tracking

Analyzes tracking code in a project and generates data schemas

[![Build Status](https://github.com/fliskdata/analyze-tracking/workflows/npm-publish/badge.svg)](https://github.com/fliskdata/analyze-tracking/actions)
[![NPM version](https://img.shields.io/npm/v/@flisk/analyze-tracking.svg)](https://www.npmjs.com/package/@flisk/analyze-tracking)


## Usage
```sh
npx @flisk/analyze-tracking /path/to/project
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flisk/analyze-tracking",
"version": "0.1.0",
"version": "0.1.1",
"description": "Analyzes tracking code in a project and generates data schemas",
"main": "src/index.js",
"bin": {
Expand Down
145 changes: 145 additions & 0 deletions tracking-schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
version: 1
events:
orderCompleted:
sources:
- repository: unknown
path: checkout.ts
line: 120
function: handler
- repository: unknown
path: main.js
line: 18
function: test
destinations:
- segment
- mixpanel
properties:
timestamp:
type: any
order_id:
type: any
total_amount:
type: number
currency:
type: any
items:
type: string[]
payment_method:
type: any
shipping_address:
type: object
properties:
street:
type: string
city:
type: string
state:
type: string
postal_code:
type: number
country:
type: string
customer:
type: object
properties:
customer_id:
type: any
email:
type: any
first_name:
type: any
last_name:
type: any
newsletter_opt_in:
type: any
number_of_past_orders:
type: any
phone_number:
type: any
last_order_id:
type: any
default_payment_method:
type: any
created_at:
type: any
updated_at:
type: any
products:
type: any
total:
type: any
login:
sources:
- repository: unknown
path: main.js
line: 27
function: checkout
- repository: unknown
path: main.js
line: 74
function: checkout2
- repository: unknown
path: main.js
line: 96
function: checkout3
- repository: unknown
path: main.js
line: 107
function: global
destinations:
- amplitude
properties:
order_id:
type: any
products:
type: any
total:
type: any
address:
type: object
properties:
city:
type: string
state:
type: string
someevent:
sources:
- repository: unknown
path: main.js
line: 37
function: checkout
destinations:
- snowplow
properties:
category:
type: string
action:
type: string
label:
type: string
property:
type: string
value:
type: number
purchase:
sources:
- repository: unknown
path: main.js
line: 46
function: checkout
destinations:
- googleanalytics
properties:
order_id:
type: any
products:
type: any
total:
type: any
address:
type: object
properties:
city:
type: string
state:
type: string

0 comments on commit f6152d8

Please sign in to comment.