Skip to content

Commit 954efca

Browse files
authored
feat: add eleventy framework to template options (#305)
1 parent 0be4cf6 commit 954efca

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

lib/constants/framework-initializer.constants.js

+13
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,15 @@ const TemplatesOptions = {
108108
Rust: {
109109
options: [{ value: 'rust-wasm-yew-ssr', mode: 'compute' }],
110110
},
111+
Eleventy: {
112+
options: [
113+
{
114+
value: 'eleventy-static',
115+
message: 'static supported',
116+
mode: 'deliver',
117+
},
118+
],
119+
},
111120
};
112121

113122
const TemplatesInitializer = {
@@ -163,6 +172,10 @@ const TemplatesInitializer = {
163172
const cloneCommands = generateCloneCommand(projectName, subdirectory);
164173
await exec(cloneCommands, 'Vite', false, false);
165174
},
175+
Eleventy: async (projectName, subdirectory) => {
176+
const cloneCommands = generateCloneCommand(projectName, subdirectory);
177+
await exec(cloneCommands, 'Eleventy', false, false);
178+
},
166179
};
167180

168181
export { TemplatesInitializer, TemplatesOptions };

0 commit comments

Comments
 (0)