@maizzle/framework 5.0.0-beta.10 → 5.0.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maizzle/framework",
3
- "version": "5.0.0-beta.10",
3
+ "version": "5.0.0-beta.11",
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",
@@ -57,11 +57,15 @@ export async function process(html = '', config = {}) {
57
57
  expandLinkTag,
58
58
  postcssPlugin,
59
59
  components(
60
- merge({
61
- expressions: {
62
- locals,
63
- }
64
- }, defaultComponentsConfig)
60
+ merge(
61
+ {
62
+ expressions: {
63
+ locals,
64
+ }
65
+ },
66
+ componentsUserOptions,
67
+ defaultComponentsConfig
68
+ )
65
69
  ),
66
70
  expandLinkTag,
67
71
  postcssPlugin,
@@ -50,6 +50,7 @@ export default async (config = {}) => {
50
50
  */
51
51
  const shouldScroll = get(config, 'server.scrollSync', false)
52
52
  const useHmr = get(config, 'server.hmr', true)
53
+ spinner.spinner = get(config, 'server.spinner', 'circleHalves')
53
54
 
54
55
  // Add static assets root prefix so user doesn't have to
55
56
  if (!config.baseURL) {
package/src/utils/node.js CHANGED
@@ -1,13 +1,7 @@
1
- import path from 'pathe'
2
1
  import os from 'node:os'
3
2
  import gm from 'gray-matter'
4
3
  import pico from 'picocolors'
5
4
  import { humanFileSize } from './string.js'
6
- import {
7
- copyFile,
8
- mkdir,
9
- readdir
10
- } from 'node:fs/promises'
11
5
 
12
6
  // Return a local IP address
13
7
  export function getLocalIP() {
package/types/config.d.ts CHANGED
@@ -5,6 +5,7 @@ import type MarkdownConfig from './markdown';
5
5
  import type { ProcessOptions } from 'postcss';
6
6
  import type PurgeCSSConfig from './css/purge';
7
7
  import type CSSInlineConfig from './css/inline';
8
+ import type { SpinnerName } from 'cli-spinners';
8
9
  import type ComponentsConfig from './components';
9
10
  import type WidowWordsConfig from './widowWords';
10
11
  import type { CoreBeautifyOptions } from 'js-beautify';
@@ -404,6 +405,22 @@ export default interface Config {
404
405
  * @default false
405
406
  */
406
407
  reportFileSize?: boolean;
408
+
409
+ /**
410
+ * Type of spinner to show in the console.
411
+ *
412
+ * @default 'circleHalves'
413
+ *
414
+ * @example
415
+ * ```
416
+ * export default {
417
+ * server: {
418
+ * spinner: 'bounce'
419
+ * }
420
+ * }
421
+ * ```
422
+ */
423
+ spinner?: SpinnerName;
407
424
  }
408
425
 
409
426
  /**