@newlogic-digital/core 3.0.0-next.5 → 3.0.0
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 +3 -1
- package/package.json +12 -14
package/index.js
CHANGED
@@ -86,6 +86,7 @@ const plugin = async (options = {}) => {
|
|
86
86
|
}
|
87
87
|
|
88
88
|
if (options.css.transformer === 'lightningcss') {
|
89
|
+
// @ts-ignore
|
89
90
|
const tailwindcss = (await import('@tailwindcss/vite')).default
|
90
91
|
|
91
92
|
tailwindcssPlugin.push(tailwindcss(options.tailwindcss))
|
@@ -120,6 +121,7 @@ const plugin = async (options = {}) => {
|
|
120
121
|
defaultInput = [
|
121
122
|
'./src/pages/**/*.{json,latte,twig,liquid,njk,hbs,pug,html}',
|
122
123
|
'!./src/pages/**/*.{latte,twig,liquid,njk,hbs,pug,html}.json',
|
124
|
+
'!./src/pages/email/**/*',
|
123
125
|
'./src/styles/*.{css,pcss,scss,sass,less,styl,stylus}',
|
124
126
|
'./src/scripts/*.{js,ts,mjs}'
|
125
127
|
]
|
@@ -145,7 +147,7 @@ const plugin = async (options = {}) => {
|
|
145
147
|
|
146
148
|
userConfig.css.lightningcss = Object.assign({
|
147
149
|
targets: browserslistToTargets(browserslist()),
|
148
|
-
exclude: LightningCssFeatures.Nesting,
|
150
|
+
exclude: (options.mode !== 'emails') ? LightningCssFeatures.Nesting : 0,
|
149
151
|
drafts: {
|
150
152
|
customMedia: true
|
151
153
|
}
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@newlogic-digital/core",
|
3
3
|
"type": "module",
|
4
|
-
"version": "3.0.0
|
4
|
+
"version": "3.0.0",
|
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",
|
@@ -14,33 +14,31 @@
|
|
14
14
|
"dependencies": {
|
15
15
|
"@tailwindcss/vite": "^4.0.0",
|
16
16
|
"@vituum/vite-plugin-juice": "^1.3.0",
|
17
|
-
"@vituum/vite-plugin-latte": "^1.
|
17
|
+
"@vituum/vite-plugin-latte": "^1.3.0",
|
18
18
|
"@vituum/vite-plugin-posthtml": "^1.1.0",
|
19
19
|
"@vituum/vite-plugin-send": "^1.1.0",
|
20
|
-
"browserslist": "^4.24.
|
20
|
+
"browserslist": "^4.24.4",
|
21
21
|
"browserslist-to-esbuild": "^2.1.1",
|
22
|
-
"fast-glob": "^3.3.
|
23
|
-
"fs-extra": "^11.
|
22
|
+
"fast-glob": "^3.3.3",
|
23
|
+
"fs-extra": "^11.3.0",
|
24
24
|
"html-minifier-terser": "^7.2.0",
|
25
25
|
"lightningcss": "^1.29.1",
|
26
26
|
"lodash": "^4.17.21",
|
27
|
-
"picocolors": "^1.1.
|
27
|
+
"picocolors": "^1.1.1",
|
28
28
|
"posthtml": "^0.16.6",
|
29
29
|
"posthtml-prism": "^2.0.1",
|
30
30
|
"prismjs": "^1.29.0",
|
31
31
|
"vituum": "^1.1.1"
|
32
32
|
},
|
33
|
-
"
|
33
|
+
"devDependencies": {
|
34
|
+
"@types/node": "^22.12.0",
|
35
|
+
"eslint": "^9.19.0",
|
36
|
+
"neostandard": "^0.12.0",
|
37
|
+
"typescript": "^5",
|
38
|
+
"vite": "^6",
|
34
39
|
"@vituum/vite-plugin-tailwindcss": "^1.2.0",
|
35
40
|
"@vituum/vite-plugin-twig": "^1.1.0"
|
36
41
|
},
|
37
|
-
"devDependencies": {
|
38
|
-
"@types/node": "^22.7.5",
|
39
|
-
"eslint": "^9.12.0",
|
40
|
-
"neostandard": "^0.11.6",
|
41
|
-
"typescript": "^5.6.2",
|
42
|
-
"vite": "^5.4.8"
|
43
|
-
},
|
44
42
|
"files": [
|
45
43
|
"latte",
|
46
44
|
"types",
|