@newlogic-digital/core 4.0.0-next.9 → 4.0.0-rc.2
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/eslint-stylistic.json +377 -0
- package/index.js +29 -32
- package/package.json +19 -16
- package/src/createEslintStylisticConfig.js +8 -0
- package/types/index.d.ts +6 -3
|
@@ -0,0 +1,377 @@
|
|
|
1
|
+
{
|
|
2
|
+
"rules": {
|
|
3
|
+
"@stylistic/array-bracket-spacing": [
|
|
4
|
+
"error",
|
|
5
|
+
"never"
|
|
6
|
+
],
|
|
7
|
+
"@stylistic/arrow-parens": [
|
|
8
|
+
"error",
|
|
9
|
+
"as-needed",
|
|
10
|
+
{
|
|
11
|
+
"requireForBlockBody": true
|
|
12
|
+
}
|
|
13
|
+
],
|
|
14
|
+
"@stylistic/arrow-spacing": [
|
|
15
|
+
"error",
|
|
16
|
+
{
|
|
17
|
+
"after": true,
|
|
18
|
+
"before": true
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"@stylistic/block-spacing": [
|
|
22
|
+
"error",
|
|
23
|
+
"always"
|
|
24
|
+
],
|
|
25
|
+
"@stylistic/brace-style": [
|
|
26
|
+
"error",
|
|
27
|
+
"stroustrup",
|
|
28
|
+
{
|
|
29
|
+
"allowSingleLine": true
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
"@stylistic/comma-dangle": [
|
|
33
|
+
"error",
|
|
34
|
+
"always-multiline"
|
|
35
|
+
],
|
|
36
|
+
"@stylistic/comma-spacing": [
|
|
37
|
+
"error",
|
|
38
|
+
{
|
|
39
|
+
"after": true,
|
|
40
|
+
"before": false
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"@stylistic/comma-style": [
|
|
44
|
+
"error",
|
|
45
|
+
"last"
|
|
46
|
+
],
|
|
47
|
+
"@stylistic/computed-property-spacing": [
|
|
48
|
+
"error",
|
|
49
|
+
"never",
|
|
50
|
+
{
|
|
51
|
+
"enforceForClassMembers": true
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
"@stylistic/dot-location": [
|
|
55
|
+
"error",
|
|
56
|
+
"property"
|
|
57
|
+
],
|
|
58
|
+
"@stylistic/eol-last": "error",
|
|
59
|
+
"@stylistic/generator-star-spacing": [
|
|
60
|
+
"error",
|
|
61
|
+
{
|
|
62
|
+
"after": true,
|
|
63
|
+
"before": false
|
|
64
|
+
}
|
|
65
|
+
],
|
|
66
|
+
"@stylistic/indent": [
|
|
67
|
+
"error",
|
|
68
|
+
2,
|
|
69
|
+
{
|
|
70
|
+
"ArrayExpression": 1,
|
|
71
|
+
"CallExpression": {
|
|
72
|
+
"arguments": 1
|
|
73
|
+
},
|
|
74
|
+
"flatTernaryExpressions": false,
|
|
75
|
+
"FunctionDeclaration": {
|
|
76
|
+
"body": 1,
|
|
77
|
+
"parameters": 1,
|
|
78
|
+
"returnType": 1
|
|
79
|
+
},
|
|
80
|
+
"FunctionExpression": {
|
|
81
|
+
"body": 1,
|
|
82
|
+
"parameters": 1,
|
|
83
|
+
"returnType": 1
|
|
84
|
+
},
|
|
85
|
+
"ignoreComments": false,
|
|
86
|
+
"ignoredNodes": [
|
|
87
|
+
"TSUnionType",
|
|
88
|
+
"TSIntersectionType"
|
|
89
|
+
],
|
|
90
|
+
"ImportDeclaration": 1,
|
|
91
|
+
"MemberExpression": 1,
|
|
92
|
+
"ObjectExpression": 1,
|
|
93
|
+
"offsetTernaryExpressions": true,
|
|
94
|
+
"outerIIFEBody": 1,
|
|
95
|
+
"SwitchCase": 1,
|
|
96
|
+
"tabLength": 2,
|
|
97
|
+
"VariableDeclarator": 1
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"@stylistic/indent-binary-ops": [
|
|
101
|
+
"error",
|
|
102
|
+
2
|
|
103
|
+
],
|
|
104
|
+
"@stylistic/key-spacing": [
|
|
105
|
+
"error",
|
|
106
|
+
{
|
|
107
|
+
"afterColon": true,
|
|
108
|
+
"beforeColon": false
|
|
109
|
+
}
|
|
110
|
+
],
|
|
111
|
+
"@stylistic/keyword-spacing": [
|
|
112
|
+
"error",
|
|
113
|
+
{
|
|
114
|
+
"after": true,
|
|
115
|
+
"before": true
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"@stylistic/lines-between-class-members": [
|
|
119
|
+
"error",
|
|
120
|
+
"always",
|
|
121
|
+
{
|
|
122
|
+
"exceptAfterSingleLine": true
|
|
123
|
+
}
|
|
124
|
+
],
|
|
125
|
+
"@stylistic/max-statements-per-line": [
|
|
126
|
+
"error",
|
|
127
|
+
{
|
|
128
|
+
"max": 1
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"@stylistic/member-delimiter-style": [
|
|
132
|
+
"error",
|
|
133
|
+
{
|
|
134
|
+
"multiline": {
|
|
135
|
+
"delimiter": "none",
|
|
136
|
+
"requireLast": false
|
|
137
|
+
},
|
|
138
|
+
"multilineDetection": "brackets",
|
|
139
|
+
"overrides": {
|
|
140
|
+
"interface": {
|
|
141
|
+
"multiline": {
|
|
142
|
+
"delimiter": "none",
|
|
143
|
+
"requireLast": false
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"singleline": {
|
|
148
|
+
"delimiter": "comma"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
],
|
|
152
|
+
"@stylistic/multiline-ternary": [
|
|
153
|
+
"error",
|
|
154
|
+
"always-multiline"
|
|
155
|
+
],
|
|
156
|
+
"@stylistic/new-parens": "error",
|
|
157
|
+
"@stylistic/no-extra-parens": [
|
|
158
|
+
"error",
|
|
159
|
+
"functions"
|
|
160
|
+
],
|
|
161
|
+
"@stylistic/no-floating-decimal": "error",
|
|
162
|
+
"@stylistic/no-mixed-operators": [
|
|
163
|
+
"error",
|
|
164
|
+
{
|
|
165
|
+
"allowSamePrecedence": true,
|
|
166
|
+
"groups": [
|
|
167
|
+
[
|
|
168
|
+
"==",
|
|
169
|
+
"!=",
|
|
170
|
+
"===",
|
|
171
|
+
"!==",
|
|
172
|
+
">",
|
|
173
|
+
">=",
|
|
174
|
+
"<",
|
|
175
|
+
"<="
|
|
176
|
+
],
|
|
177
|
+
[
|
|
178
|
+
"&&",
|
|
179
|
+
"||"
|
|
180
|
+
],
|
|
181
|
+
[
|
|
182
|
+
"in",
|
|
183
|
+
"instanceof"
|
|
184
|
+
]
|
|
185
|
+
]
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"@stylistic/no-mixed-spaces-and-tabs": "error",
|
|
189
|
+
"@stylistic/no-multi-spaces": "error",
|
|
190
|
+
"@stylistic/no-multiple-empty-lines": [
|
|
191
|
+
"error",
|
|
192
|
+
{
|
|
193
|
+
"max": 1,
|
|
194
|
+
"maxBOF": 0,
|
|
195
|
+
"maxEOF": 0
|
|
196
|
+
}
|
|
197
|
+
],
|
|
198
|
+
"@stylistic/no-tabs": "error",
|
|
199
|
+
"@stylistic/no-trailing-spaces": "error",
|
|
200
|
+
"@stylistic/no-whitespace-before-property": "error",
|
|
201
|
+
"@stylistic/object-curly-spacing": [
|
|
202
|
+
"error",
|
|
203
|
+
"always"
|
|
204
|
+
],
|
|
205
|
+
"@stylistic/operator-linebreak": [
|
|
206
|
+
"error",
|
|
207
|
+
"before"
|
|
208
|
+
],
|
|
209
|
+
"@stylistic/padded-blocks": [
|
|
210
|
+
"error",
|
|
211
|
+
{
|
|
212
|
+
"blocks": "never",
|
|
213
|
+
"classes": "never",
|
|
214
|
+
"switches": "never"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"@stylistic/quote-props": [
|
|
218
|
+
"error",
|
|
219
|
+
"consistent-as-needed"
|
|
220
|
+
],
|
|
221
|
+
"@stylistic/quotes": [
|
|
222
|
+
"error",
|
|
223
|
+
"single",
|
|
224
|
+
{
|
|
225
|
+
"allowTemplateLiterals": "always",
|
|
226
|
+
"avoidEscape": false
|
|
227
|
+
}
|
|
228
|
+
],
|
|
229
|
+
"@stylistic/rest-spread-spacing": [
|
|
230
|
+
"error",
|
|
231
|
+
"never"
|
|
232
|
+
],
|
|
233
|
+
"@stylistic/semi": [
|
|
234
|
+
"error",
|
|
235
|
+
"never"
|
|
236
|
+
],
|
|
237
|
+
"@stylistic/semi-spacing": [
|
|
238
|
+
"error",
|
|
239
|
+
{
|
|
240
|
+
"after": true,
|
|
241
|
+
"before": false
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
"@stylistic/space-before-blocks": [
|
|
245
|
+
"error",
|
|
246
|
+
"always"
|
|
247
|
+
],
|
|
248
|
+
"@stylistic/space-before-function-paren": [
|
|
249
|
+
"error",
|
|
250
|
+
{
|
|
251
|
+
"anonymous": "always",
|
|
252
|
+
"asyncArrow": "always",
|
|
253
|
+
"named": "never"
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
"@stylistic/space-in-parens": [
|
|
257
|
+
"error",
|
|
258
|
+
"never"
|
|
259
|
+
],
|
|
260
|
+
"@stylistic/space-infix-ops": "error",
|
|
261
|
+
"@stylistic/space-unary-ops": [
|
|
262
|
+
"error",
|
|
263
|
+
{
|
|
264
|
+
"nonwords": false,
|
|
265
|
+
"words": true
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"@stylistic/spaced-comment": [
|
|
269
|
+
"error",
|
|
270
|
+
"always",
|
|
271
|
+
{
|
|
272
|
+
"block": {
|
|
273
|
+
"balanced": true,
|
|
274
|
+
"exceptions": [
|
|
275
|
+
"*"
|
|
276
|
+
],
|
|
277
|
+
"markers": [
|
|
278
|
+
"!"
|
|
279
|
+
]
|
|
280
|
+
},
|
|
281
|
+
"line": {
|
|
282
|
+
"exceptions": [
|
|
283
|
+
"/",
|
|
284
|
+
"#"
|
|
285
|
+
],
|
|
286
|
+
"markers": [
|
|
287
|
+
"/"
|
|
288
|
+
]
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
"@stylistic/template-curly-spacing": "error",
|
|
293
|
+
"@stylistic/template-tag-spacing": [
|
|
294
|
+
"error",
|
|
295
|
+
"never"
|
|
296
|
+
],
|
|
297
|
+
"@stylistic/type-annotation-spacing": [
|
|
298
|
+
"error",
|
|
299
|
+
{}
|
|
300
|
+
],
|
|
301
|
+
"@stylistic/type-generic-spacing": "error",
|
|
302
|
+
"@stylistic/type-named-tuple-spacing": "error",
|
|
303
|
+
"@stylistic/wrap-iife": [
|
|
304
|
+
"error",
|
|
305
|
+
"any",
|
|
306
|
+
{
|
|
307
|
+
"functionPrototypeMethods": true
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"@stylistic/yield-star-spacing": [
|
|
311
|
+
"error",
|
|
312
|
+
{
|
|
313
|
+
"after": true,
|
|
314
|
+
"before": false
|
|
315
|
+
}
|
|
316
|
+
],
|
|
317
|
+
"@stylistic/jsx-closing-bracket-location": "error",
|
|
318
|
+
"@stylistic/jsx-closing-tag-location": "error",
|
|
319
|
+
"@stylistic/jsx-curly-brace-presence": [
|
|
320
|
+
"error",
|
|
321
|
+
{
|
|
322
|
+
"propElementValues": "always"
|
|
323
|
+
}
|
|
324
|
+
],
|
|
325
|
+
"@stylistic/jsx-curly-newline": "error",
|
|
326
|
+
"@stylistic/jsx-curly-spacing": [
|
|
327
|
+
"error",
|
|
328
|
+
"never"
|
|
329
|
+
],
|
|
330
|
+
"@stylistic/jsx-equals-spacing": "error",
|
|
331
|
+
"@stylistic/jsx-first-prop-new-line": "error",
|
|
332
|
+
"@stylistic/jsx-function-call-newline": [
|
|
333
|
+
"error",
|
|
334
|
+
"multiline"
|
|
335
|
+
],
|
|
336
|
+
"@stylistic/jsx-indent-props": [
|
|
337
|
+
"error",
|
|
338
|
+
2
|
|
339
|
+
],
|
|
340
|
+
"@stylistic/jsx-max-props-per-line": [
|
|
341
|
+
"error",
|
|
342
|
+
{
|
|
343
|
+
"maximum": 1,
|
|
344
|
+
"when": "multiline"
|
|
345
|
+
}
|
|
346
|
+
],
|
|
347
|
+
"@stylistic/jsx-one-expression-per-line": [
|
|
348
|
+
"error",
|
|
349
|
+
{
|
|
350
|
+
"allow": "single-child"
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"@stylistic/jsx-quotes": "error",
|
|
354
|
+
"@stylistic/jsx-tag-spacing": [
|
|
355
|
+
"error",
|
|
356
|
+
{
|
|
357
|
+
"afterOpening": "never",
|
|
358
|
+
"beforeClosing": "never",
|
|
359
|
+
"beforeSelfClosing": "always",
|
|
360
|
+
"closingSlash": "never"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"@stylistic/jsx-wrap-multilines": [
|
|
364
|
+
"error",
|
|
365
|
+
{
|
|
366
|
+
"arrow": "parens-new-line",
|
|
367
|
+
"assignment": "parens-new-line",
|
|
368
|
+
"condition": "parens-new-line",
|
|
369
|
+
"declaration": "parens-new-line",
|
|
370
|
+
"logical": "parens-new-line",
|
|
371
|
+
"prop": "parens-new-line",
|
|
372
|
+
"propertyValue": "parens-new-line",
|
|
373
|
+
"return": "parens-new-line"
|
|
374
|
+
}
|
|
375
|
+
]
|
|
376
|
+
}
|
|
377
|
+
}
|
package/index.js
CHANGED
|
@@ -2,14 +2,14 @@ import fs from 'node:fs'
|
|
|
2
2
|
import os from 'node:os'
|
|
3
3
|
import { resolve, join } from 'node:path'
|
|
4
4
|
import vituum from 'vituum'
|
|
5
|
-
import
|
|
6
|
-
import juice from '@vituum/vite-plugin-juice'
|
|
5
|
+
import cssInline from '@vituum/vite-plugin-css-inline'
|
|
7
6
|
import send from '@vituum/vite-plugin-send'
|
|
8
|
-
import { getPackageInfo,
|
|
7
|
+
import { getPackageInfo, deepMergeWith } from 'vituum/utils/common.js'
|
|
9
8
|
import browserslistToEsbuild from 'browserslist-to-esbuild'
|
|
10
9
|
import browserslist from 'browserslist'
|
|
11
10
|
import { Features as LightningCssFeatures, browserslistToTargets } from 'lightningcss'
|
|
12
11
|
import process from 'node:process'
|
|
12
|
+
import heroicons from '@newlogic-digital/vite-plugin-heroicons'
|
|
13
13
|
|
|
14
14
|
const { name } = getPackageInfo(import.meta.url)
|
|
15
15
|
|
|
@@ -42,16 +42,12 @@ const defaultOptions = {
|
|
|
42
42
|
paths: ['./src/styles/*/**', '!./src/styles/emails/*', './src/scripts/*/**'],
|
|
43
43
|
},
|
|
44
44
|
},
|
|
45
|
-
|
|
45
|
+
cssInline: {
|
|
46
46
|
paths: ['src/pages/email'],
|
|
47
|
-
postcss: {
|
|
48
|
-
globalData: {
|
|
49
|
-
files: ['./src/styles/emails/theme/config.css'],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
47
|
+
postcss: {},
|
|
52
48
|
},
|
|
53
49
|
css: {
|
|
54
|
-
transformer: '
|
|
50
|
+
transformer: 'lightningcss',
|
|
55
51
|
lightningcss: {},
|
|
56
52
|
},
|
|
57
53
|
tailwindcss: {},
|
|
@@ -72,6 +68,7 @@ const defaultOptions = {
|
|
|
72
68
|
code: 'node_modules/@newlogic-digital/core/latte/CodeFilter.php',
|
|
73
69
|
},
|
|
74
70
|
},
|
|
71
|
+
heroicons: {},
|
|
75
72
|
}
|
|
76
73
|
|
|
77
74
|
/**
|
|
@@ -79,53 +76,53 @@ const defaultOptions = {
|
|
|
79
76
|
* @returns [import('vite').Plugin]
|
|
80
77
|
*/
|
|
81
78
|
const plugin = async (options = {}) => {
|
|
82
|
-
options =
|
|
79
|
+
options = deepMergeWith(defaultOptions, options)
|
|
83
80
|
|
|
84
|
-
const
|
|
85
|
-
const tailwindcssPlugin = []
|
|
81
|
+
const optionalPlugins = []
|
|
86
82
|
|
|
87
83
|
if (options.format.includes('twig')) {
|
|
88
84
|
const twig = (await import('@vituum/vite-plugin-twig')).default
|
|
89
85
|
|
|
90
|
-
|
|
86
|
+
optionalPlugins.push(twig(options.twig))
|
|
91
87
|
}
|
|
92
88
|
|
|
93
89
|
if (options.format.includes('latte')) {
|
|
94
|
-
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
if (options.css.transformer === 'postcss') {
|
|
98
|
-
const tailwindcss = (await import('@vituum/vite-plugin-tailwindcss')).default
|
|
90
|
+
const latte = (await import('@vituum/vite-plugin-latte')).default
|
|
99
91
|
|
|
100
|
-
|
|
92
|
+
optionalPlugins.push(latte(options.latte))
|
|
101
93
|
}
|
|
102
94
|
|
|
103
95
|
if (options.css.transformer === 'lightningcss') {
|
|
104
|
-
if (!fs.existsSync(resolve(process.cwd(), 'src/+.css'))) {
|
|
105
|
-
fs.writeFileSync(resolve(process.cwd(), 'src/+.css'), '@import "./styles/main.css";')
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
// @ts-ignore
|
|
109
96
|
const tailwindcss = (await import('@tailwindcss/vite')).default
|
|
110
97
|
|
|
111
|
-
|
|
98
|
+
optionalPlugins.push(tailwindcss(options.tailwindcss))
|
|
112
99
|
}
|
|
113
100
|
|
|
114
101
|
const plugins = [
|
|
115
102
|
vituum(options.vituum),
|
|
116
|
-
...
|
|
117
|
-
|
|
118
|
-
juice(options.juice),
|
|
103
|
+
...optionalPlugins,
|
|
104
|
+
cssInline(options.cssInline),
|
|
119
105
|
send(options.send),
|
|
106
|
+
heroicons(
|
|
107
|
+
{
|
|
108
|
+
fileName: 'icons.svg',
|
|
109
|
+
iconSets: {
|
|
110
|
+
'simpleicons-solid': 'src/icons/simpleicons',
|
|
111
|
+
'icons-solid': 'src/icons/solid',
|
|
112
|
+
'icons-outline': 'src/icons/outline',
|
|
113
|
+
},
|
|
114
|
+
...options.heroicons,
|
|
115
|
+
},
|
|
116
|
+
),
|
|
120
117
|
]
|
|
121
118
|
|
|
122
119
|
return [{
|
|
123
120
|
name,
|
|
124
121
|
enforce: 'pre',
|
|
125
122
|
/**
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
123
|
+
* @param {import('vite').UserConfig} userConfig
|
|
124
|
+
* @param {import('vite').ConfigEnv} userEnv
|
|
125
|
+
*/
|
|
129
126
|
config(userConfig, userEnv) {
|
|
130
127
|
// @ts-ignore
|
|
131
128
|
const isHttps = userConfig?.server?.https !== false
|
package/package.json
CHANGED
|
@@ -1,41 +1,44 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newlogic-digital/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-
|
|
4
|
+
"version": "4.0.0-rc.2",
|
|
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",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"scripts": {
|
|
10
10
|
"tsc": "tsc",
|
|
11
|
-
"eslint": "eslint
|
|
11
|
+
"eslint": "eslint --fix",
|
|
12
12
|
"publish-next": "npm publish --tag next"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@minify-html/node": "^0.18.1",
|
|
16
|
-
"@
|
|
17
|
-
"@vituum/vite-plugin-
|
|
18
|
-
"@vituum/vite-plugin-
|
|
16
|
+
"@newlogic-digital/vite-plugin-heroicons": "^1.0.0",
|
|
17
|
+
"@vituum/vite-plugin-css-inline": "^2.0.0",
|
|
18
|
+
"@vituum/vite-plugin-latte": "^2.0.0",
|
|
19
|
+
"@vituum/vite-plugin-send": "^2.0.0",
|
|
19
20
|
"browserslist": "^4.28.1",
|
|
20
21
|
"browserslist-to-esbuild": "^2.1.1",
|
|
21
|
-
"lightningcss": "^1.
|
|
22
|
-
"vituum": "^2.0.0
|
|
22
|
+
"lightningcss": "^1.32.0",
|
|
23
|
+
"vituum": "^2.0.0"
|
|
23
24
|
},
|
|
24
25
|
"devDependencies": {
|
|
25
|
-
"@eslint/js": "^
|
|
26
|
-
"@stylistic/eslint-plugin": "^5.
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
29
|
-
"@vituum/vite-plugin-twig": "^
|
|
30
|
-
"eslint": "^
|
|
31
|
-
"
|
|
26
|
+
"@eslint/js": "^10.0",
|
|
27
|
+
"@stylistic/eslint-plugin": "^5.10",
|
|
28
|
+
"@tailwindcss/vite": "^4.2.1",
|
|
29
|
+
"@types/node": "^25.5",
|
|
30
|
+
"@vituum/vite-plugin-twig": "^2.0.0",
|
|
31
|
+
"eslint": "^10.0.3",
|
|
32
|
+
"globals": "^17.4.0",
|
|
33
|
+
"rolldown": "^1.0.0-rc.9",
|
|
32
34
|
"typescript": "^5",
|
|
33
|
-
"vite": "^8.0.0
|
|
35
|
+
"vite": "^8.0.0"
|
|
34
36
|
},
|
|
35
37
|
"files": [
|
|
36
38
|
"latte",
|
|
37
39
|
"types",
|
|
38
40
|
"index.js",
|
|
41
|
+
"eslint-stylistic.json",
|
|
39
42
|
"src"
|
|
40
43
|
],
|
|
41
44
|
"exports": {
|
|
@@ -43,7 +46,7 @@
|
|
|
43
46
|
"./types": "./types/*"
|
|
44
47
|
},
|
|
45
48
|
"engines": {
|
|
46
|
-
"node": "^
|
|
49
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
47
50
|
},
|
|
48
51
|
"repository": {
|
|
49
52
|
"type": "git",
|
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[]
|
|
@@ -12,9 +14,10 @@ export interface PluginUserConfig {
|
|
|
12
14
|
codeSplitting?: import('rolldown').OutputOptions['codeSplitting']
|
|
13
15
|
vituum?: import('vituum').UserConfig,
|
|
14
16
|
css?: import('vite').CSSOptions
|
|
15
|
-
|
|
17
|
+
cssInline?: import('@vituum/vite-plugin-css-inline').PluginUserConfig
|
|
16
18
|
send?: import('@vituum/vite-plugin-send').PluginUserConfig
|
|
17
|
-
tailwindcss?: import('@
|
|
19
|
+
tailwindcss?: import('@tailwindcss/vite').PluginOptions
|
|
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
|
+
}
|