@opendesign-plus-test/plugins 0.0.1-rc.1 → 0.0.1-rc.11

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.
@@ -0,0 +1,22 @@
1
+ import { Plugin } from 'vite';
2
+ export type ChangeFreq = 'always' | 'hourly' | 'daily' | 'weekly' | 'monthly' | 'yearly' | 'never';
3
+ export interface PageInfo {
4
+ lastmod: number;
5
+ changefreq: ChangeFreq;
6
+ }
7
+ export interface LastModifiedPluginOptions {
8
+ modifyDepMap?: (map: Map<string, Set<string>>) => (Map<string, Set<string>> | void) | Promise<Map<string, Set<string>> | void>;
9
+ pageEntryPattern: string | RegExp;
10
+ /** Path to the git repository root. */
11
+ rootDir?: string;
12
+ /** Absolute path for the output JSON file.
13
+ * Default: `<this file's directory>/../last-modified.json` */
14
+ outputFile?: string;
15
+ /** Max number of concurrent `git log` processes. Default: 20. */
16
+ concurrency?: number;
17
+ /** Number of recent commits to fetch per file for changefreq calculation. Default: 10. */
18
+ commitCount?: number;
19
+ /** Glob patterns (relative to appDir) to exclude dependency files from traversal and timestamp calculation. */
20
+ ignoreDeps?: string | string[];
21
+ }
22
+ export declare function generateLastmodAndChangefreq(options: LastModifiedPluginOptions): Plugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendesign-plus-test/plugins",
3
- "version": "0.0.1-rc.1",
3
+ "version": "0.0.1-rc.11",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -20,15 +20,22 @@
20
20
  "./analytics": {
21
21
  "types": "./dist/analytics/analytics.d.ts",
22
22
  "import": "./dist/analytics/index.js"
23
+ },
24
+ "./nuxt": {
25
+ "types": "./dist/nuxt/index.d.ts",
26
+ "import": "./dist/nuxt/index.js"
23
27
  }
24
28
  },
25
29
  "devDependencies": {
26
30
  "typescript": "~5.8.2",
27
31
  "vite": "^6.2.3",
28
- "vite-plugin-dts": "^4.5.3"
32
+ "vite-plugin-dts": "^4.5.3",
33
+ "@nuxt/kit": "^3.21.2"
29
34
  },
30
35
  "dependencies": {
31
- "@opensig/open-analytics": "^1.0.1"
36
+ "@opensig/open-analytics": "^1.0.1",
37
+ "p-limit": "^7.3.0",
38
+ "minimatch": "^10.2.5"
32
39
  },
33
40
  "scripts": {
34
41
  "build": "tsc && vite build"