Skip to content

Commit 8a9531f

Browse files
Paul Boocockpaulboocock
authored andcommitted
Publish "lite" version of sp.js (close snowplow#900)
1 parent d47cdae commit 8a9531f

31 files changed

Lines changed: 1009 additions & 569 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,10 @@ jobs:
6060
uses: actions/upload-artifact@v2
6161
with:
6262
name: sp.js
63-
path: trackers/browser-tracker/dist/sp.js
63+
path: trackers/javascript-tracker/dist/sp.js
64+
65+
- name: Upload sp.lite.js artifact
66+
uses: actions/upload-artifact@v2
67+
with:
68+
name: sp.lite.js
69+
path: trackers/javascript-tracker/dist/sp.lite.js

.github/workflows/publish.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4848
with:
4949
tag_name: ${{ github.ref }}
50-
release_name: Snowplow JavaScript Tracker v${{ github.ref }}
50+
release_name: v${{ github.ref }}
5151
draft: false
5252
prerelease: ${{ contains(steps.version.outputs.TAG_VERSION, '-M') }}
5353

@@ -57,6 +57,16 @@ jobs:
5757
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5858
with:
5959
upload_url: ${{ steps.create_release.outputs.upload_url }}
60-
asset_path: ./trackers/browser-tracker/dist/sp.js
60+
asset_path: ./trackers/javascript-tracker/dist/sp.js
6161
asset_name: sp.js
6262
asset_content_type: application/javascript
63+
64+
- name: Upload sp.lite.js asset
65+
uses: actions/upload-release-asset@v1
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
68+
with:
69+
upload_url: ${{ steps.create_release.outputs.upload_url }}
70+
asset_path: ./trackers/javascript-tracker/dist/sp.lite.js
71+
asset_name: sp.lite.js
72+
asset_content_type: application/javascript

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JavaScript web analytics for Snowplow
1+
# Web analytics for Snowplow
22

33
[![actively-maintained]][tracker-classificiation]
44
[![Build Status][gh-actions-image]][gh-actions]

common/config/rush/browser-approved-packages.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
"name": "@babel/register",
2323
"allowedCategories": [ "trackers" ]
2424
},
25+
{
26+
"name": "@rollup/plugin-alias",
27+
"allowedCategories": [ "trackers" ]
28+
},
2529
{
2630
"name": "@rollup/plugin-babel",
2731
"allowedCategories": [ "trackers" ]
@@ -54,6 +58,10 @@
5458
"name": "@snowplow/browser-helpers",
5559
"allowedCategories": [ "plugins", "trackers" ]
5660
},
61+
{
62+
"name": "@snowplow/browser-plugin-ad-tracking",
63+
"allowedCategories": [ "trackers" ]
64+
},
5765
{
5866
"name": "@snowplow/browser-plugin-browser-features",
5967
"allowedCategories": [ "trackers" ]
@@ -62,6 +70,10 @@
6270
"name": "@snowplow/browser-plugin-client-hints",
6371
"allowedCategories": [ "trackers" ]
6472
},
73+
{
74+
"name": "@snowplow/browser-plugin-consent",
75+
"allowedCategories": [ "trackers" ]
76+
},
6577
{
6678
"name": "@snowplow/browser-plugin-core",
6779
"allowedCategories": [ "plugins" ]
@@ -114,6 +126,10 @@
114126
"name": "@snowplow/browser-plugin-performance-timing",
115127
"allowedCategories": [ "trackers" ]
116128
},
129+
{
130+
"name": "@snowplow/browser-plugin-site-tracking",
131+
"allowedCategories": [ "trackers" ]
132+
},
117133
{
118134
"name": "@snowplow/browser-plugin-timezone",
119135
"allowedCategories": [ "trackers" ]

common/config/rush/pnpm-lock.yaml

Lines changed: 85 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

common/config/rush/repo-state.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// DO NOT MODIFY THIS FILE. It is generated and used by Rush.
22
{
3-
"pnpmShrinkwrapHash": "68162c3dfe23f5c13da901dd96dfbc5e5e8bf0c8",
3+
"pnpmShrinkwrapHash": "97757513f4ef24bfcf9dfb49a522ca6e2d358f5d",
44
"preferredVersionsHash": "bf21a9e8fbc5a3846fb05b4fa0859e0917b2202f"
55
}
File renamed without changes.

plugins/browser-plugin-gdpr/package.json renamed to plugins/browser-plugin-ad-tracking/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"name": "@snowplow/browser-plugin-gdpr",
2+
"name": "@snowplow/browser-plugin-ad-tracking",
33
"version": "1.0.0",
4-
"description": "Automatically attaches GDPR data as a context to events",
4+
"description": "Add Ad Tracking functions to Snowplow Tracker",
55
"license": "BSD-3-Clause",
66
"author": "Paul Boocock",
77
"main": "dist/cjs/index.js",
File renamed without changes.

0 commit comments

Comments
 (0)