@newlogic-digital/core 4.0.0-next.13 → 4.0.0-next.15
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/index.js +14 -5
- package/package.json +13 -12
- package/types/index.d.ts +4 -1
package/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import browserslistToEsbuild from 'browserslist-to-esbuild'
|
|
|
10
10
|
import browserslist from 'browserslist'
|
|
11
11
|
import { Features as LightningCssFeatures, browserslistToTargets } from 'lightningcss'
|
|
12
12
|
import process from 'node:process'
|
|
13
|
+
import heroicons from '@newlogic-digital/vite-plugin-heroicons'
|
|
13
14
|
|
|
14
15
|
const { name } = getPackageInfo(import.meta.url)
|
|
15
16
|
|
|
@@ -44,11 +45,7 @@ const defaultOptions = {
|
|
|
44
45
|
},
|
|
45
46
|
cssInline: {
|
|
46
47
|
paths: ['src/pages/email'],
|
|
47
|
-
postcss: {
|
|
48
|
-
globalData: {
|
|
49
|
-
files: ['./src/styles/emails/theme/config.css'],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
48
|
+
postcss: {},
|
|
52
49
|
},
|
|
53
50
|
css: {
|
|
54
51
|
transformer: 'postcss',
|
|
@@ -72,6 +69,7 @@ const defaultOptions = {
|
|
|
72
69
|
code: 'node_modules/@newlogic-digital/core/latte/CodeFilter.php',
|
|
73
70
|
},
|
|
74
71
|
},
|
|
72
|
+
heroicons: {},
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
/**
|
|
@@ -117,6 +115,17 @@ const plugin = async (options = {}) => {
|
|
|
117
115
|
...templatesPlugins,
|
|
118
116
|
cssInline(options.cssInline),
|
|
119
117
|
send(options.send),
|
|
118
|
+
heroicons(
|
|
119
|
+
{
|
|
120
|
+
fileName: 'icons.svg',
|
|
121
|
+
iconSets: {
|
|
122
|
+
'simpleicons-solid': 'src/icons/simpleicons',
|
|
123
|
+
'icons-solid': 'src/icons/solid',
|
|
124
|
+
'icons-outline': 'src/icons/outline',
|
|
125
|
+
},
|
|
126
|
+
...options.heroicons,
|
|
127
|
+
},
|
|
128
|
+
),
|
|
120
129
|
]
|
|
121
130
|
|
|
122
131
|
return [{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newlogic-digital/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-next.
|
|
4
|
+
"version": "4.0.0-next.15",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "New Logic Studio s.r.o.",
|
|
7
7
|
"description": "Set of tools that can be used to create modern web applications",
|
|
@@ -13,22 +13,23 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@minify-html/node": "^0.18.1",
|
|
16
|
-
"@
|
|
17
|
-
"@vituum/vite-plugin-
|
|
16
|
+
"@newlogic-digital/vite-plugin-heroicons": "^0.0.3",
|
|
17
|
+
"@vituum/vite-plugin-css-inline": "^2.0.0-next.3",
|
|
18
|
+
"@vituum/vite-plugin-latte": "^2.0.0-next.5",
|
|
18
19
|
"@vituum/vite-plugin-send": "^2.0.0-next.4",
|
|
19
20
|
"browserslist": "^4.28.1",
|
|
20
21
|
"browserslist-to-esbuild": "^2.1.1",
|
|
21
|
-
"lightningcss": "^1.
|
|
22
|
-
"vituum": "^2.0.0-next.
|
|
22
|
+
"lightningcss": "^1.31.1",
|
|
23
|
+
"vituum": "^2.0.0-next.13"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@eslint/js": "^
|
|
26
|
-
"@stylistic/eslint-plugin": "^5.
|
|
27
|
-
"@types/node": "^25.
|
|
28
|
-
"@vituum/vite-plugin-tailwindcss": "^
|
|
29
|
-
"@vituum/vite-plugin-twig": "^
|
|
30
|
-
"eslint": "^
|
|
31
|
-
"rolldown": "^1.0.0-
|
|
26
|
+
"@eslint/js": "^10.0",
|
|
27
|
+
"@stylistic/eslint-plugin": "^5.8",
|
|
28
|
+
"@types/node": "^25.2",
|
|
29
|
+
"@vituum/vite-plugin-tailwindcss": "^2.0.0-next.2",
|
|
30
|
+
"@vituum/vite-plugin-twig": "^2.0.0-next.1",
|
|
31
|
+
"eslint": "^10.0.0",
|
|
32
|
+
"rolldown": "^1.0.0-rc.4",
|
|
32
33
|
"typescript": "^5",
|
|
33
34
|
"vite": "^8.0.0-beta.8"
|
|
34
35
|
},
|
package/types/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import {HeroiconsOptions} from "@newlogic-digital/vite-plugin-heroicons";
|
|
2
|
+
|
|
1
3
|
interface Input {
|
|
2
4
|
assets?: string[]
|
|
3
5
|
pages?: string[]
|
|
@@ -17,4 +19,5 @@ export interface PluginUserConfig {
|
|
|
17
19
|
tailwindcss?: import('@vituum/vite-plugin-tailwindcss').PluginUserConfig
|
|
18
20
|
latte?: import('@vituum/vite-plugin-latte').PluginUserConfig
|
|
19
21
|
twig?: import('@vituum/vite-plugin-twig').PluginUserConfig
|
|
20
|
-
|
|
22
|
+
heroicons?: import('@newlogic-digital/vite-plugin-heroicons').HeroiconsOptions
|
|
23
|
+
}
|