Skip to content

Commit

Permalink
chore: update stubs
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Jul 25, 2024
1 parent d0db36b commit 379e430
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 26 deletions.
45 changes: 19 additions & 26 deletions src/commands/make/stubs/config/full.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
build: {
content: ['src/templates/**/*.html'],
static: {
source: ['src/images/**/*.*'],
source: ['src/images/**/*'],
destination: 'images',
},
output: {
Expand All @@ -18,14 +18,15 @@ export default {
hmr: true,
maxRetries: 10,
port: 3000,
scrollSync: true,
scrollSync: false,
watch: ['./src/images/**/*'],
reportFileSize: true,
reportFileSize: false,
spinner: 'circleHalves',
},
plaintext: {
output: {
path: 'build_production/plaintext',
extension: 'rtxt'
extension: 'txt'
},
skipHtmlDecoding: true,
},
Expand Down Expand Up @@ -109,12 +110,9 @@ export default {
preferUnitlessValues: false,
resolveCalc: true,
},
safeClassNames: true,
safe: true,
sixHex: true,
shorthand: true,
shorthand: {
tags: ['table'],
},
},
locals: {},
baseURL: {
Expand All @@ -132,11 +130,18 @@ export default {
role: 'none',
},
img: {
alt: ''
alt: true,
}
},
remove: ['foo-bar'],
},
fetch: {
tags: ['fetch'],
attribute: 'url',
ofetch: {},
preserveTag: false,
expressions: {},
},
filters: false,
urlParameters: {
_options: {
Expand All @@ -150,7 +155,6 @@ export default {
utm_medium: 'email',
},
prettify: true,
minify: true,
minify: {
lineLengthLimit: 500,
removeIndentations: true,
Expand Down Expand Up @@ -198,20 +202,9 @@ export default {
},
],
},
beforeCreate(config) {
// you may update the config object
},
async beforeRender({html, config, render}) {
// must return `html`
return html
},
afterRender({html, config, render}) {
// must return `html`
return html
},
afterTransformers({html, config, render}) {
// must return `html`
return html
},
async afterBuild({files, config, render}) {}
beforeCreate({config}) {},
beforeRender({html, matter, config, posthtml}) {},
afterRender({html, matter, config, posthtml}) {},
afterTransformers({html, matter, config, posthtml}) {},
afterBuild({files, config, render}) {}
}
6 changes: 6 additions & 0 deletions src/commands/make/stubs/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@
<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">
<style>
img {
@apply max-w-full align-middle;
}
@tailwind components;
@tailwind utilities;
</style>
Expand Down

0 comments on commit 379e430

Please sign in to comment.