You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO replace this three rows on deliver function
import{generateHtmlFullTemplateHackernoon,generateReactFullTemplateHackernoon,generateHtmlFullTemplateRecipes,}from'./src';import{readSourceFile,generateTemplateName,printMessage,}from'./src/helper';import{writeHTML,isFolderExists}from'./src/domain/write';import{deliver}from'./src/domain/deliver/deliver';import{MESSAGE_HTML_FULL_TEMPLATE2}from'./src/domain/deliver/deliver.constants';// TODO add more messages here, and finally replace messages in our methodsconstMESSAGE_REACT_FULL_TEMPLATE='The FullTemplate has been parsed successfully';// const MESSAGE_REACT_CONTENT = 'The Content has been parsed successfully';//-------------------// @TODO add path package, in order to make it work PERFECTLYconstFULL_SOURCE='source/source.md';constRECIPES_SOURCE='source/recipes/source-nmtg.md';constmarkdown=readSourceFile(FULL_SOURCE);isFolderExists('./generated');isFolderExists('./tests/_generated');exportconstmodes={full: ()=>{consthackernoonFullTemplate=generateHtmlFullTemplateHackernoon(markdown);deliver(hackernoonFullTemplate,'hackernoon-full-template',MESSAGE_HTML_FULL_TEMPLATE2,);},reactFull: ()=>{constfullContent=generateReactFullTemplateHackernoon(markdown);// TODO replace this three rows on deliver functionconstfileName=generateTemplateName('FullTemplate','js');writeHTML(fileName,fullContent);printMessage(MESSAGE_REACT_FULL_TEMPLATE,'green2');},recipesFull: ()=>{constmarkdownRecipes=readSourceFile(RECIPES_SOURCE);constrecipesFullTemplate=generateHtmlFullTemplateRecipes(markdownRecipes);deliver(recipesFullTemplate,'recipes-full-template',MESSAGE_HTML_FULL_TEMPLATE2,);},};modes[process.env.PARSE??'full'](FULL_SOURCE);
The text was updated successfully, but these errors were encountered:
markdown-to-email/start.js
Line 43 in c21d3a7
The text was updated successfully, but these errors were encountered: