Skip to content

Commit

Permalink
chore: update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Dec 16, 2024
1 parent 3c6e857 commit 242c7c8
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 27 deletions.
2 changes: 1 addition & 1 deletion src/commands/make/stubs/config/base.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/** @type {import('@maizzle/framework').Config} */
export default {
build: {
content: ['src/templates/**/*.html'],
content: ['emails/**/*.html'],
output: {
path: 'build_local',
},
Expand Down
39 changes: 17 additions & 22 deletions src/commands/make/stubs/config/full.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
/** @type {import('@maizzle/framework').Config} */
export default {
build: {
content: ['src/templates/**/*.html'],
content: ['emails/**/*.html'],
static: {
source: ['src/images/**/*'],
source: ['images/**/*.*'],
destination: 'images',
},
output: {
path: 'build_production',
extension: 'html',
},
summary: true,
spinner: 'circleHalves',
expressions: {},
summary: true,
},
server: {
hmr: true,
maxRetries: 10,
port: 3000,
scrollSync: false,
watch: ['./src/images/**/*'],
watch: ['./images/**/*'],
reportFileSize: false,
spinner: 'circleHalves',
},
Expand Down Expand Up @@ -56,7 +55,7 @@ export default {
// },
components: {
root: './',
folders: ['src/components', 'src/layouts', 'src/templates'],
folders: ['components', 'emails', 'layouts'],
tag: 'component',
tagPrefix: 'x-',
attribute: 'src',
Expand All @@ -79,7 +78,7 @@ export default {
utilities: {},
elementAttributes: {},
safelistAttributes: [],
blacklistAttributes: [],
blocklistAttributes: [],
},
outlook: {
tag: 'outlook', // posthtml-mso config
Expand All @@ -104,12 +103,12 @@ export default {
applyWidthAttributes: [],
applyHeightAttributes: [],
useAttributeSizes: true,
resolveCSSVariables: true,
removeInlinedSelectors: true,
excludedProperties: [],
preferUnitlessValues: false,
resolveCalc: true,
},
resolveCalc: true,
resolveProps: true,
safe: true,
sixHex: true,
shorthand: true,
Expand Down Expand Up @@ -188,23 +187,19 @@ export default {
plugins: [],
},
widowWords: {
attrName: 'prevent-widows',
removeWindowPreventionMeasures: false,
convertEntities: true,
targetLanguage: 'html',
hyphens: true,
minWordCount: 3,
minCharCount: 20,
attributes: ['prevent-widows'],
createWidows: false,
minWords: 3,
ignore: [
{
heads: '{{',
tails: '}}'
start: '{{',
end: '}}'
},
],
},
beforeCreate({config}) {},
beforeRender({html, matter, config, posthtml}) {},
afterRender({html, matter, config, posthtml}) {},
afterTransformers({html, matter, config, posthtml}) {},
afterBuild({files, config, render}) {}
beforeRender({html, matter, config}) {},
afterRender({html, matter, config}) {},
afterTransformers({html, matter, config}) {},
afterBuild({files, config}) {}
}
11 changes: 10 additions & 1 deletion src/commands/make/stubs/config/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ module.exports = {
require('tailwindcss-preset-email'),
],
content: [
'./src/**/*.html',
'./components/**/*.html',
'./emails/**/*.html',
'./layouts/**/*.html',
],
theme: {
extend: {
fontFamily: {
inter: ['Inter', 'ui-sans-serif', 'system-ui', '-apple-system', '"Segoe UI"', 'sans-serif'],
},
},
},
}
10 changes: 7 additions & 3 deletions src/commands/make/stubs/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
<meta name="x-apple-disable-message-reformatting">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="format-detection" content="telephone=no, date=no, address=no, email=no, url=no">
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<!--[if mso]>
<noscript>
<xml>
Expand All @@ -15,20 +17,22 @@
</noscript>
<style>
td,th,div,p,a,h1,h2,h3,h4,h5,h6 {font-family: "Segoe UI", sans-serif; mso-line-height-rule: exactly;}
.mso-break-all {word-break: break-all;}
</style>
<![endif]-->
<if condition="page.title">
<title>{{{ page.title }}}</title>
</if>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Montserrat:wght@400;500;600;700&display=swap" rel="stylesheet" media="screen">
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap" rel="stylesheet" media="screen">
<style>
@tailwind components;
@tailwind utilities;

img {
@apply max-w-full align-middle;
}
@tailwind components;
@tailwind utilities;
</style>
<stack name="head" />
</head>
Expand Down

0 comments on commit 242c7c8

Please sign in to comment.