@maizzle/framework 5.0.0-beta.35 → 5.0.0-beta.37
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/package.json +2 -2
- package/src/commands/build.js +1 -1
- package/src/server/index.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maizzle/framework",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.37",
|
|
4
4
|
"description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"posthtml": "^0.16.6",
|
|
75
75
|
"posthtml-attrs-parser": "^1.1.1",
|
|
76
76
|
"posthtml-base-url": "^3.1.4",
|
|
77
|
-
"posthtml-component": "
|
|
77
|
+
"posthtml-component": "next",
|
|
78
78
|
"posthtml-content": "^2.1.0",
|
|
79
79
|
"posthtml-expressions": "^1.11.4",
|
|
80
80
|
"posthtml-extra-attributes": "^3.1.0",
|
package/src/commands/build.js
CHANGED
|
@@ -175,7 +175,7 @@ export default async (config = {}) => {
|
|
|
175
175
|
const outputExtensions = new Set()
|
|
176
176
|
|
|
177
177
|
for (const pattern of contentPaths) {
|
|
178
|
-
outputExtensions.add(
|
|
178
|
+
getFileExtensionsFromPattern(pattern).map(ext => outputExtensions.add(ext))
|
|
179
179
|
}
|
|
180
180
|
|
|
181
181
|
/**
|
package/src/server/index.js
CHANGED
|
@@ -41,6 +41,7 @@ app.use(hmrRoute)
|
|
|
41
41
|
let viewing = ''
|
|
42
42
|
const spinner = ora()
|
|
43
43
|
let templatePaths = []
|
|
44
|
+
const serverStartTime = Date.now()
|
|
44
45
|
|
|
45
46
|
function getTemplateFolders(config) {
|
|
46
47
|
return Array.isArray(get(config, 'build.content'))
|
|
@@ -395,7 +396,6 @@ export default async (config = {}) => {
|
|
|
395
396
|
const maxRetries = get(config, 'server.maxRetries', 10)
|
|
396
397
|
|
|
397
398
|
function startServer(port) {
|
|
398
|
-
const serverStartTime = Date.now()
|
|
399
399
|
const server = createServer(app)
|
|
400
400
|
|
|
401
401
|
/**
|
|
@@ -416,7 +416,7 @@ export default async (config = {}) => {
|
|
|
416
416
|
)
|
|
417
417
|
|
|
418
418
|
spinner.stopAndPersist({
|
|
419
|
-
text:
|
|
419
|
+
text: `\n${pico.bgBlue(` Maizzle v${version} `)} ready in ${pico.bold(Date.now() - serverStartTime)} ms`
|
|
420
420
|
+ '\n\n'
|
|
421
421
|
+ ` → Local: http://localhost:${port}`
|
|
422
422
|
+ '\n'
|