@eventra_dev/cli-plugin-vue 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/README.md +4 -0
  2. package/package.json +4 -2
package/README.md CHANGED
@@ -8,6 +8,7 @@
8
8
  <a href="https://www.npmjs.com/package/@eventra_dev/cli-plugin-vue"><img alt="npm version" src="https://img.shields.io/npm/v/@eventra_dev/cli-plugin-vue.svg?style=flat-square&color=blue"></a>
9
9
  <a href="https://www.npmjs.com/package/@eventra_dev/cli-plugin-vue"><img alt="npm downloads" src="https://img.shields.io/npm/dm/@eventra_dev/cli-plugin-vue.svg?style=flat-square&color=blue"></a>
10
10
  <img alt="tests passing" src="https://img.shields.io/badge/tests-16%20passing-brightgreen?style=flat-square&logo=vitest&logoColor=white">
11
+ <img alt="coverage" src="https://img.shields.io/badge/coverage-95%25-brightgreen?style=flat-square&logo=vitest&logoColor=white">
11
12
  <img alt="node" src="https://img.shields.io/node/v/@eventra_dev/cli-plugin-vue?style=flat-square&color=darkgreen&logo=node.js&logoColor=white">
12
13
  <a href="https://www.typescriptlang.org/"><img alt="TypeScript" src="https://img.shields.io/badge/TypeScript-ready-blue?style=flat-square&logo=typescript&logoColor=white"></a>
13
14
  <img alt="license" src="https://img.shields.io/npm/l/@eventra_dev/cli-plugin-vue?style=flat-square&color=lightgrey">
@@ -133,6 +134,8 @@ No dependency on `@eventra_dev/eventra-cli` — the CLI adapts this shape intern
133
134
 
134
135
  ## Test Coverage
135
136
 
137
+ **95% statement coverage** (79.2% branch, 100% function, 96.6% line — v8 provider, `pnpm test:coverage`).
138
+
136
139
  **16 unit tests** (vitest), covering:
137
140
 
138
141
  | Area | Covers |
@@ -150,6 +153,7 @@ Run locally:
150
153
 
151
154
  ```bash
152
155
  pnpm --filter @eventra_dev/cli-plugin-vue test
156
+ pnpm --filter @eventra_dev/cli-plugin-vue test:coverage
153
157
  ```
154
158
 
155
159
  ---
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventra_dev/cli-plugin-vue",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Eventra CLI plugin — extract track() calls from Vue SFC (.vue) files",
5
5
  "license": "MIT",
6
6
  "type": "commonjs",
@@ -29,7 +29,8 @@
29
29
  "build": "tsc -p tsconfig.json",
30
30
  "clean": "rm -rf dist",
31
31
  "test": "vitest run",
32
- "test:watch": "vitest"
32
+ "test:watch": "vitest",
33
+ "test:coverage": "vitest run --coverage"
33
34
  },
34
35
  "dependencies": {
35
36
  "@vue/compiler-core": "^3.5.40",
@@ -38,6 +39,7 @@
38
39
  },
39
40
  "devDependencies": {
40
41
  "@types/node": "^20.0.0",
42
+ "@vitest/coverage-v8": "^4.1.7",
41
43
  "typescript": "^5.3.0",
42
44
  "vitest": "^4.1.7"
43
45
  },