@drivenets/vite-plugin-design-system 0.0.3 → 0.0.5
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 +12 -0
- package/README.md +31 -0
- package/package.json +9 -5
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# DriveNets Design System Vite Plugin
|
|
2
|
+
|
|
3
|
+
This Vite plugin automatically includes the necessary font links for the DriveNets Design System in your Vite-powered application.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
First, install the package via your preferred package manager:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @drivenets/vite-plugin
|
|
11
|
+
# or
|
|
12
|
+
pnpm install @drivenets/vite-plugin
|
|
13
|
+
# or
|
|
14
|
+
yarn add @drivenets/vite-plugin
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
To use the plugin, add it to your Vite configuration file (e.g. `vite.config.ts`):
|
|
20
|
+
|
|
21
|
+
```typescript
|
|
22
|
+
import { defineConfig } from 'vite';
|
|
23
|
+
import { vitePluginDesignSystem } from '@drivenets/vite-plugin';
|
|
24
|
+
|
|
25
|
+
export default defineConfig({
|
|
26
|
+
// ... your config
|
|
27
|
+
plugins: [vitePluginDesignSystem()],
|
|
28
|
+
});
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
This will automatically inject the required font links into the `<head>` section of your `index.html` file during the build process.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drivenets/vite-plugin-design-system",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.cts",
|
|
@@ -19,17 +19,21 @@
|
|
|
19
19
|
"./dist",
|
|
20
20
|
"./src"
|
|
21
21
|
],
|
|
22
|
+
"repository": {
|
|
23
|
+
"url": "https://github.com/drivenets/design-system",
|
|
24
|
+
"directory": "/packages/vite-plugin"
|
|
25
|
+
},
|
|
22
26
|
"peerDependencies": {
|
|
23
27
|
"vite": "*"
|
|
24
28
|
},
|
|
25
29
|
"devDependencies": {
|
|
26
30
|
"@arethetypeswrong/cli": "^0.18.2",
|
|
27
31
|
"eslint": "^9.39.2",
|
|
28
|
-
"memfs": "^4.
|
|
29
|
-
"publint": "^0.3.
|
|
30
|
-
"tsdown": "^0.18.
|
|
32
|
+
"memfs": "^4.56.10",
|
|
33
|
+
"publint": "^0.3.17",
|
|
34
|
+
"tsdown": "^0.18.4",
|
|
31
35
|
"typescript": "^5.9.3",
|
|
32
|
-
"vitest": "^4.0.
|
|
36
|
+
"vitest": "^4.0.18"
|
|
33
37
|
},
|
|
34
38
|
"scripts": {
|
|
35
39
|
"lint": "eslint --max-warnings=0 .",
|