diff --git a/README.md b/README.md index 9a6b225..b52fcc6 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ ![Bundle Size](https://img.shields.io/bundlephobia/minzip/gtm-event-tracker/latest?style=flat&colorA=000&colorB=000&label=bundle%20size "Bundle Size") ![Version](https://img.shields.io/npm/v/gtm-event-tracker?style=flat&colorA=000&colorB=000 "Version") -A tiny (1.05KB gzip), type-safe and zero-dependency solution for triggering [Google Tag Manager](https://tagmanager.google.com) track events. +A tiny (1KB gzip), type-safe and zero-dependency solution for triggering [Google Tag Manager](https://tagmanager.google.com) track events. It's designed for applications that need to trigger a lot of track events, and it solves common problems like writing similar events multiple times, managing "global" event properties, and debugging track events. This solution is framework agnostic and configurable, so it's probably the only solution you need for your web application for triggering track events. diff --git a/package.json b/package.json index c55aae6..92537f4 100644 --- a/package.json +++ b/package.json @@ -5,13 +5,86 @@ "email": "nicolasemkis@gmail.com" }, "license": "MIT", - "version": "1.8.0", + "version": "0.0.0-semantically-released", "description": "A tiny, type-safe and zero-dependency solution for triggering Google Tag Manager track events.", + "keywords": [ + "gtm", + "tracking", + "google-tag-manager", + "analytics" + ], "main": "dist/cjs/index.js", "module": "dist/es/index.js", "types": "dist/gtm-event-tracker.d.ts", "repository": "git@github.com:emkis/gtm-event-tracker.git", + "files": [ + "dist/cjs/index.js", + "dist/es/index.js", + "dist/gtm-event-tracker.d.ts" + ], + "scripts": { + "prepare": "husky install", + "prepare:publish": "yarn tsx ./scripts/clean-package-json.ts", + "clean": "rimraf dist* temp coverage *.tsbuildinfo", + "dev": "npm-run-all clean 'build:ts --watch'", + "build": "npm-run-all clean build:ts build:types", + "build:ts": "rollup --config rollup.config.mjs", + "build:types": "npm-run-all ts:compile ts:replace-alias", + "lint": "eslint . --ext js,ts", + "test": "npm-run-all test:api-report test:unit:coverage", + "test:unit": "jest", + "test:unit:coverage": "npm-run-all 'test:unit --coverage'", + "test:api-report": "npm-run-all build api-report", + "test:api-report:update": "npm-run-all build 'api-report --local'", + "api-report": "api-extractor run", + "ts:compile": "tsc --project tsconfig.build.json", + "ts:replace-alias": "tsc-alias --project tsconfig.build.json" + }, "engines": { "node": ">=16" + }, + "devDependencies": { + "@babel/preset-env": "^7.20.2", + "@babel/preset-typescript": "^7.21.0", + "@commitlint/cli": "^17.4.4", + "@commitlint/config-conventional": "^17.4.4", + "@faker-js/faker": "^7.6.0", + "@microsoft/api-extractor": "^7.34.4", + "@rollup/plugin-commonjs": "^24.0.1", + "@rollup/plugin-node-resolve": "^15.0.1", + "@rollup/plugin-typescript": "^11.0.0", + "@semantic-release/changelog": "^6.0.2", + "@semantic-release/commit-analyzer": "^9.0.2", + "@semantic-release/git": "^10.0.1", + "@semantic-release/github": "^8.0.7", + "@semantic-release/npm": "^9.0.2", + "@semantic-release/release-notes-generator": "^10.0.3", + "@types/jest": "^29.5.0", + "@typescript-eslint/eslint-plugin": "^5.55.0", + "@typescript-eslint/parser": "^5.55.0", + "esbuild": "^0.17.12", + "eslint": "^8.36.0", + "eslint-config-prettier": "^8.7.0", + "eslint-config-standard": "^17.0.0", + "eslint-import-resolver-typescript": "^3.5.3", + "eslint-plugin-import": "^2.27.5", + "eslint-plugin-n": "^15.6.1", + "eslint-plugin-prettier": "^4.2.1", + "eslint-plugin-promise": "^6.1.1", + "husky": "^8.0.3", + "jest": "^29.5.0", + "jest-environment-jsdom": "^29.5.0", + "lint-staged": "^13.2.0", + "npm-run-all": "^4.1.5", + "prettier": "^2.8.4", + "prettier-eslint": "^15.0.1", + "rimraf": "^4.4.0", + "rollup": "^3.19.1", + "rollup-plugin-esbuild": "^5.0.0", + "rollup-plugin-size": "^0.3.1", + "semantic-release": "^20.1.3", + "tsc-alias": "^1.8.3", + "tsx": "^3.12.5", + "typescript": "^5.0.2" } } diff --git a/release.config.js b/release.config.js index b2d49b8..aabaf6f 100644 --- a/release.config.js +++ b/release.config.js @@ -32,6 +32,7 @@ module.exports = { '@semantic-release/git', { message: 'chore(release): v${nextRelease.version}', + assets: ['CHANGELOG.md'], }, ], '@semantic-release/github',