@breadstone-infrastructure/vite 0.0.71 → 0.0.73

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 CHANGED
@@ -1,3 +1,29 @@
1
+ ## 0.0.71 (2025-06-30)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - add missing newline at end of package.json ([73866991d5](https://github.com/RueDeRennes/mosaik/commit/73866991d5))
6
+
7
+ ## 0.0.70 (2025-06-28)
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - update background color to transparent for page header and menu components; update release script to version 0.0.70 ([e8e7c124a4](https://github.com/RueDeRennes/mosaik/commit/e8e7c124a4))
12
+
13
+ ## 0.0.69 (2025-06-26)
14
+
15
+ This was a version bump only for vite-plugins to align it with other projects, there were no code changes.
16
+
17
+ ## 0.0.68 (2025-06-26)
18
+
19
+ ### 🚀 Features
20
+
21
+ - add copyExecutorsJson script and update build commands ([0a0aba85b9](https://github.com/RueDeRennes/mosaik/commit/0a0aba85b9))
22
+
23
+ ## 0.0.67 (2025-06-26)
24
+
25
+ This was a version bump only for vite-plugins to align it with other projects, there were no code changes.
26
+
1
27
  ## 0.0.66 (2025-06-25)
2
28
 
3
29
  This was a version bump only for vite-plugins to align it with other projects, there were no code changes.
package/README.md CHANGED
@@ -1,21 +1,26 @@
1
- # @breadstone-infrastructure/vite
1
+ # 📦 @breadstone-infrastructure/vite
2
2
 
3
- Reusable Vite configuration and plugins for Breadstone projects.
3
+ | Package Status | Source |
4
+ |----------------|--------|
5
+ | [![npm](https://img.shields.io/npm/v/@breadstone-infrastructure/vite?label=npm)](https://www.npmjs.com/package/@breadstone-infrastructure/vite) | [infra/vite-plugins](../../infra/vite-plugins) |
6
+
7
+ > Reusable Vite configuration and plugins for Breadstone projects.
8
+ > Shared Vite config, custom plugins, and virtual modules for localization and static content.
4
9
 
5
10
  ---
6
11
 
7
- ## Features
12
+ ## 📁 Project Structure
8
13
 
9
- - **Shared Vite config**: Provides a common Vite configuration for Breadstone monorepo projects.
10
- - **Custom plugins**: Includes plugins for static content, localization, and more.
11
- - **TypeScript support**: Written in TypeScript with type definitions.
12
- - **Integration**: Designed for use with Nx workspaces and Breadstone infrastructure utilities.
14
+ Part of the monorepo [`mosaik`](https://github.com/RueDeRennes/mosaik)
15
+ Package path: `infra/vite-plugins`
16
+ Version: see [npm](https://www.npmjs.com/package/@breadstone-infrastructure/vite)
17
+ License: MIT
13
18
 
14
19
  ---
15
20
 
16
- ## Installation
21
+ ## 📦 Installation
17
22
 
18
- ```sh
23
+ ```bash
19
24
  yarn add -D @breadstone-infrastructure/vite
20
25
  # or
21
26
  npm install --save-dev @breadstone-infrastructure/vite
@@ -23,12 +28,11 @@ npm install --save-dev @breadstone-infrastructure/vite
23
28
 
24
29
  ---
25
30
 
26
- ## Usage
31
+ ## 🔧 Usage
27
32
 
28
33
  ### Basic Vite Config
29
34
 
30
35
  ```js
31
- // vite.config.js or vite.config.ts
32
36
  import { defineConfig } from 'vite';
33
37
  import { breadstoneViteConfig } from '@breadstone-infrastructure/vite';
34
38
 
@@ -51,34 +55,31 @@ export default breadstoneViteConfig({
51
55
 
52
56
  ---
53
57
 
54
- ## Virtual Modules
55
-
56
- This package provides virtual modules for advanced integrations:
57
-
58
- - `@breadstone-infrastructure/vite/virtual/localizator`
59
- - `@breadstone-infrastructure/vite/virtual/static-content`
58
+ ## ⚙️ Features
60
59
 
61
- These modules expose types and runtime helpers for localization and static content features.
60
+ - Shared Vite config for Breadstone monorepo projects
61
+ - Custom plugins for static content, localization, and more
62
+ - TypeScript support with type definitions
63
+ - Virtual modules for advanced integrations
62
64
 
63
65
  ---
64
66
 
65
- ## TypeScript
67
+ ## 🛠 Recommendations
66
68
 
67
- Type definitions are included. Import types as needed:
68
-
69
- ```ts
70
- import type { LocalizatorVirtualModule } from '@breadstone-infrastructure/vite/virtual/localizator';
71
- ```
69
+ - Use in all Vite-based projects in the monorepo for consistency.
70
+ - Integrate with Nx workspace for build automation.
72
71
 
73
72
  ---
74
73
 
75
- ## Nx Workspace Integration
74
+ ## 📦 Publishing
76
75
 
77
- This package is designed for use in Nx monorepos. Add it as a dependency to your workspace and reference it in your Vite configs.
76
+ ```bash
77
+ yarn nx run vite-plugins:publish
78
+ ```
78
79
 
79
80
  ---
80
81
 
81
- ## License
82
+ ## 📄 License
82
83
 
83
84
  MIT © Breadstone
84
85
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@breadstone-infrastructure/vite",
3
3
  "description": "Vite configuration and plugins",
4
- "version": "0.0.71",
4
+ "version": "0.0.73",
5
5
  "license": "MIT",
6
6
  "author": "andre.wehlert <awehlert@breadstone.de> (https://www.breadstone.de)",
7
7
  "repository": {
@@ -12,12 +12,12 @@
12
12
  "module": "./Index.js",
13
13
  "types": "./Index.d.ts",
14
14
  "dependencies": {
15
- "@breadstone-infrastructure/utilities": "^0.0.71",
16
- "@breadstone-tools/localizator-core": "^0.0.71",
15
+ "@breadstone-infrastructure/utilities": "^0.0.73",
16
+ "@breadstone-tools/localizator-core": "^0.0.73",
17
17
  "gray-matter": "^4.0.3"
18
18
  },
19
19
  "peerDependencies": {
20
- "vite": "^4.0.0 || ^5.0.0 || ^6.0.0"
20
+ "vite": "^6.0.0 || ^7.0.0"
21
21
  },
22
22
  "exports": {
23
23
  ".": {
@@ -1,12 +1,9 @@
1
1
  declare module 'virtual:localizator.ts' {
2
- export type ITranslationMap = Record<string, string>;
3
-
4
- export interface ITranslationClass {
2
+ export interface ITranslationSet {
5
3
  [key: string]: string;
6
- entries(): [string, string][];
7
- toObject(): Record<string, string>;
4
+ entries: () => [string, string][];
5
+ toObject: () => Record<string, string>;
8
6
  }
9
7
 
10
- const translations: Record<string, ITranslationClass>;
11
- export default translations;
8
+ export const translations: Record<string, ITranslationSet>;
12
9
  }