rspress-plugin-vercel-analytics 0.1.0 → 0.1.2-beta.0
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/CHANGELOG.md +9 -0
- package/README.md +23 -1
- package/package.json +5 -2
- package/rspress.config.ts +3 -3
package/CHANGELOG.md
ADDED
package/README.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
1
|
# rspress-plugin-vercel-analytics 
|
|
2
2
|
|
|
3
|
-
Rspress plugin for Vercel Analytics.
|
|
3
|
+
Rspress plugin for [Vercel Analytics](https://vercel.com/docs/analytics) integration.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i rspress-plugin-vercel-analytics
|
|
9
|
+
pnpm add rspress-plugin-vercel-analytics
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```ts
|
|
13
|
+
import * as path from 'path';
|
|
14
|
+
import { defineConfig } from 'rspress/config';
|
|
15
|
+
import vercelAnalytics from 'rspress-plugin-vercel-analytics';
|
|
16
|
+
|
|
17
|
+
export default defineConfig({
|
|
18
|
+
root: path.join(__dirname, 'docs'),
|
|
19
|
+
plugins: [vercelAnalytics()],
|
|
20
|
+
});
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Configure
|
|
24
|
+
|
|
25
|
+
See [Vercel Analytics](https://vercel.com/docs/analytics/package) for more details.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rspress-plugin-vercel-analytics",
|
|
3
|
-
"version": "0.1.0",
|
|
3
|
+
"version": "0.1.2-beta.0",
|
|
4
4
|
"description": "Rspress plugin for vercel analytics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rspress",
|
|
@@ -20,10 +20,13 @@
|
|
|
20
20
|
"author": "Linbudu <linbudu599@gmail.com> (https://github.com/linbudu599)",
|
|
21
21
|
"main": "dist/index.js",
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
23
26
|
"dependencies": {
|
|
24
27
|
"@rspress/shared": "^1.17.1",
|
|
25
28
|
"@vercel/analytics": "^1.2.2",
|
|
26
|
-
"rspress-plugin-devkit": "^0.1.0"
|
|
29
|
+
"rspress-plugin-devkit": "^0.1.1-beta.0"
|
|
27
30
|
},
|
|
28
31
|
"devDependencies": {
|
|
29
32
|
"@types/node": "^20.12.5",
|
package/rspress.config.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as path from 'path';
|
|
2
2
|
import { defineConfig } from 'rspress/config';
|
|
3
|
-
import
|
|
3
|
+
import vercelAnalytics from './src';
|
|
4
4
|
|
|
5
5
|
export default defineConfig({
|
|
6
6
|
root: path.join(__dirname, 'docs'),
|
|
7
|
-
title: 'Rspress x
|
|
8
|
-
plugins: [
|
|
7
|
+
title: 'Rspress x Vercel Analytics Example',
|
|
8
|
+
plugins: [vercelAnalytics()],
|
|
9
9
|
});
|