@newlogic-digital/core 1.0.9 → 1.0.11
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 -6
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -27,7 +27,7 @@ const posthtmlPrism = {
|
|
|
27
27
|
transform: async(html, { filename }) => {
|
|
28
28
|
filename = filename.replace('?raw', '')
|
|
29
29
|
|
|
30
|
-
if (!filename.endsWith('ui.json')) {
|
|
30
|
+
if (!filename.endsWith('ui.json') && !filename.endsWith('ui.vituum.json.html')) {
|
|
31
31
|
return
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -86,8 +86,8 @@ const parseMinifyHtml = async (input, name) => {
|
|
|
86
86
|
const defaultConfig = {
|
|
87
87
|
format: 'twig',
|
|
88
88
|
emails: {
|
|
89
|
-
outputDir: resolve(process.cwd(), 'public/
|
|
90
|
-
|
|
89
|
+
outputDir: resolve(process.cwd(), 'public/email'),
|
|
90
|
+
appDir: resolve(process.cwd(), 'app/Templates/Emails')
|
|
91
91
|
},
|
|
92
92
|
posthtml: {},
|
|
93
93
|
juice: {},
|
|
@@ -239,7 +239,7 @@ const defaultConfig = {
|
|
|
239
239
|
]
|
|
240
240
|
},
|
|
241
241
|
latte: {
|
|
242
|
-
isStringFilter: (filename) => dirname(filename).endsWith('
|
|
242
|
+
isStringFilter: (filename) => dirname(filename).endsWith('email'),
|
|
243
243
|
globals: {
|
|
244
244
|
srcPath: resolve(process.cwd(), 'src'),
|
|
245
245
|
templatesPath: resolve(process.cwd(), 'src/templates')
|
|
@@ -267,9 +267,9 @@ const integration = (userConfig = {}) => {
|
|
|
267
267
|
task: {
|
|
268
268
|
name: 'emails',
|
|
269
269
|
action: async () => {
|
|
270
|
-
const emails = FastGlob.sync(`${resolve(process.cwd(), userConfig.emails.outputDir)}/**`).filter(entry => entry.endsWith('
|
|
270
|
+
const emails = FastGlob.sync(`${resolve(process.cwd(), userConfig.emails.outputDir)}/**`).filter(entry => !entry.endsWith('test.html'))
|
|
271
271
|
const emailsProd = emails.map(path => {
|
|
272
|
-
return path.replace(resolve(process.cwd(), userConfig.emails.outputDir), resolve(process.cwd(), userConfig.emails.
|
|
272
|
+
return path.replace(resolve(process.cwd(), userConfig.emails.outputDir), resolve(process.cwd(), userConfig.emails.appDir)).replace('.html', '.latte')
|
|
273
273
|
})
|
|
274
274
|
|
|
275
275
|
await Promise.all(emails.map((file, i) =>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newlogic-digital/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.11",
|
|
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",
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"npm-publish": "npm publish --tag next"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@vituum/tailwind": "^0.1.
|
|
13
|
+
"@vituum/tailwind": "^0.1.4",
|
|
14
14
|
"@vituum/posthtml": "^0.1.0",
|
|
15
|
-
"@vituum/juice": "^0.1.
|
|
15
|
+
"@vituum/juice": "^0.1.5",
|
|
16
16
|
"@vituum/twig": "^0.1.1",
|
|
17
17
|
"@vituum/latte": "^0.1.1",
|
|
18
|
-
"posthtml-prism": "^
|
|
18
|
+
"posthtml-prism": "^2.0.0",
|
|
19
19
|
"prismjs": "^1.29.0",
|
|
20
|
-
"html-minifier-terser": "^7.
|
|
20
|
+
"html-minifier-terser": "^7.1.0",
|
|
21
21
|
"lodash": "^4.17.21",
|
|
22
|
-
"vituum": "^0.0.
|
|
22
|
+
"vituum": "^0.0.41"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"latte",
|