@newlogic-digital/core 4.1.0-next.2 → 4.1.0-next.3
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 +6 -5
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -75,7 +75,7 @@ const defaultOptions = {
|
|
|
75
75
|
|
|
76
76
|
/**
|
|
77
77
|
* @param {import('@newlogic-digital/core/types').PluginUserConfig} options
|
|
78
|
-
* @returns
|
|
78
|
+
* @returns {Promise<import('vite').Plugin[]>}
|
|
79
79
|
*/
|
|
80
80
|
const plugin = async (options = {}) => {
|
|
81
81
|
options = deepMergeWith(defaultOptions, options)
|
|
@@ -88,19 +88,19 @@ const plugin = async (options = {}) => {
|
|
|
88
88
|
if (options.format.includes('twig')) {
|
|
89
89
|
const twig = (await import('@vituum/vite-plugin-twig')).default
|
|
90
90
|
|
|
91
|
-
optionalPlugins.push(twig(options.twig))
|
|
91
|
+
optionalPlugins.push(...twig(options.twig))
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
if (options.format.includes('latte')) {
|
|
95
95
|
const latte = (await import('@vituum/vite-plugin-latte')).default
|
|
96
96
|
|
|
97
|
-
optionalPlugins.push(latte(options.latte))
|
|
97
|
+
optionalPlugins.push(...latte(options.latte))
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
if (options.css.transformer === 'lightningcss') {
|
|
101
101
|
const tailwindcss = (await import('@tailwindcss/vite')).default
|
|
102
102
|
|
|
103
|
-
optionalPlugins.push(tailwindcss(options.tailwindcss))
|
|
103
|
+
optionalPlugins.push(...tailwindcss(options.tailwindcss))
|
|
104
104
|
|
|
105
105
|
if (!fs.existsSync(resolve(process.cwd(), 'src/+.css'))) {
|
|
106
106
|
fs.writeFileSync(resolve(process.cwd(), 'src/+.css'), '@import "./styles/main.css";')
|
|
@@ -126,12 +126,13 @@ const plugin = async (options = {}) => {
|
|
|
126
126
|
const solidIcons = resolve(dirname((fileURLToPath(import.meta.url))), 'icons/solid')
|
|
127
127
|
|
|
128
128
|
const plugins = [
|
|
129
|
-
vituum(options.vituum),
|
|
129
|
+
...vituum(options.vituum),
|
|
130
130
|
...optionalPlugins,
|
|
131
131
|
send(options.send),
|
|
132
132
|
heroicons(
|
|
133
133
|
{
|
|
134
134
|
fileName: 'icons.svg',
|
|
135
|
+
content: 'src/views/**/*.latte',
|
|
135
136
|
iconSets: {
|
|
136
137
|
'simpleicons-solid': [simpleIcons, 'src/icons/simpleicons'],
|
|
137
138
|
'icons-solid': [solidIcons, 'src/icons/solid'],
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newlogic-digital/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.1.0-next.
|
|
4
|
+
"version": "4.1.0-next.3",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"bin": {
|
|
7
7
|
"newlogic-core": "./bin/newlogic-core.js"
|
|
@@ -18,10 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@minify-html/node": "^0.18.1",
|
|
21
|
-
"@newlogic-digital/vite-plugin-heroicons": "^1.
|
|
21
|
+
"@newlogic-digital/vite-plugin-heroicons": "^1.3.0",
|
|
22
22
|
"@stylistic/eslint-plugin": "^5.10",
|
|
23
23
|
"@stylistic/stylelint-config": "^5.0.0",
|
|
24
|
-
"@vituum/vite-plugin-css-inline": "^2.1.0
|
|
24
|
+
"@vituum/vite-plugin-css-inline": "^2.1.0",
|
|
25
25
|
"@vituum/vite-plugin-latte": "^2.0.2",
|
|
26
26
|
"@vituum/vite-plugin-send": "^2.0.1",
|
|
27
27
|
"browserslist": "^4.28.2",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@tailwindcss/vite": "^4.2.2",
|
|
51
51
|
"@types/node": "^25.5",
|
|
52
52
|
"@vituum/vite-plugin-twig": "^2.0.1",
|
|
53
|
-
"rolldown": "^1.0.0-rc.
|
|
53
|
+
"rolldown": "^1.0.0-rc.13",
|
|
54
54
|
"typescript": "^6"
|
|
55
55
|
},
|
|
56
56
|
"files": [
|