@goldstack/utils-track 0.2.29 → 0.2.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +17 -2
- package/package.json +4 -5
package/README.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
[](https://badge.fury.io/js/%40goldstack%2Futils-track)
|
|
2
|
+
|
|
3
|
+
# Goldstack Track Utilities
|
|
2
4
|
|
|
3
5
|
This library allows linking [Google Analytics](https://analytics.google.com/analytics/web/) to React applications.
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
This utility has been developed for the [Goldstack](https://goldstack.party) starter project builder. Check it out for starting your next project ❤️
|
|
8
|
+
## Installation
|
|
9
|
+
|
|
10
|
+
```bash
|
|
11
|
+
npm install @goldstack/utils-track
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
## Usage
|
|
15
|
+
```typescript
|
|
16
|
+
import { track } from '@goldstack/utils-track';
|
|
17
|
+
|
|
18
|
+
track('event');
|
|
19
|
+
|
|
20
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@goldstack/utils-track",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.31",
|
|
4
4
|
"description": "Utilities for including Google Analytics in React application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"goldstack",
|
|
@@ -28,23 +28,22 @@
|
|
|
28
28
|
"compile-watch:light": "nodemon --watch ./src/ -e '*' --exec 'yarn compile'",
|
|
29
29
|
"coverage": "jest --collect-coverage --passWithNoTests --config=./jest.config.js --runInBand",
|
|
30
30
|
"prepublishOnly": "yarn run build",
|
|
31
|
-
"publish": "
|
|
31
|
+
"publish": "yarn npm publish --tolerate-republish",
|
|
32
32
|
"test": "jest --passWithNoTests --config=./jest.config.js --runInBand",
|
|
33
|
-
"version:apply": "
|
|
33
|
+
"version:apply": "yarn version $@ && yarn version apply",
|
|
34
34
|
"version:apply:force": "yarn version $@ && yarn version apply"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"react": "^19"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@goldstack/utils-git": "0.2.22",
|
|
41
40
|
"@swc/core": "^1.15.8",
|
|
42
41
|
"@swc/jest": "^0.2.39",
|
|
43
42
|
"@types/jest": "^30.0.0",
|
|
44
43
|
"@types/node": "^25.0.3",
|
|
45
44
|
"@types/react": "^19",
|
|
46
45
|
"jest": "^30.2.0",
|
|
47
|
-
"rimraf": "^
|
|
46
|
+
"rimraf": "^6.1.2",
|
|
48
47
|
"typescript": "^5.9.3"
|
|
49
48
|
},
|
|
50
49
|
"publishConfig": {
|