-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(build): enable imports directly from extensions and utils folder (#…
…77) * fix(build): fix build to allow direct extensions and utils folder imports * add debug * fix(build): prevent husky from running * fix(build): include correct files in pacakge * fix(build): move license and readme to dist * remove lingering comment * PR comments * Add commpent to the readme
- Loading branch information
1 parent
0fb8cb2
commit 2864a77
Showing
17 changed files
with
154 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { exec as execCb } from "child_process"; | ||
import * as fs from "fs"; | ||
import util from "util"; | ||
|
||
const exec = util.promisify(execCb); | ||
|
||
async function buildMjmlReact() { | ||
await exec("yarn build-dist"); | ||
moveFilesToDist(); | ||
} | ||
|
||
const FILES_TO_COPY = ["package.json", "LICENSE", "README.md"]; | ||
function moveFilesToDist() { | ||
FILES_TO_COPY.forEach((fileToCopy) => { | ||
const destination = `dist/${fileToCopy}`; | ||
if (fileToCopy === "package.json") { | ||
const file = fs.readFileSync(fileToCopy); | ||
fs.writeFileSync(destination, file.toString().replace(/dist\//g, "")); | ||
} else { | ||
fs.copyFileSync(fileToCopy, destination); | ||
} | ||
}); | ||
} | ||
|
||
buildMjmlReact(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* | ||
* This file is generated. Don't edit it directly. | ||
* Modify `scripts/generate-mjml-react.ts` to make changes to these files | ||
*/ | ||
|
||
export { Mjml } from "./Mjml"; | ||
export type { IMjmlProps } from "./Mjml"; | ||
export { MjmlAll } from "./MjmlAll"; | ||
export type { IMjmlAllProps } from "./MjmlAll"; | ||
export { MjmlClass } from "./MjmlClass"; | ||
export type { IMjmlClassProps } from "./MjmlClass"; | ||
export { MjmlInclude } from "./MjmlInclude"; | ||
export type { IMjmlIncludeProps } from "./MjmlInclude"; | ||
export { MjmlHtmlAttribute } from "./MjmlHtmlAttribute"; | ||
export type { IMjmlHtmlAttributeProps } from "./MjmlHtmlAttribute"; | ||
export { MjmlSelector } from "./MjmlSelector"; | ||
export type { IMjmlSelectorProps } from "./MjmlSelector"; | ||
export { MjmlBody } from "./MjmlBody"; | ||
export type { IMjmlBodyProps } from "./MjmlBody"; | ||
export { MjmlHead } from "./MjmlHead"; | ||
export type { IMjmlHeadProps } from "./MjmlHead"; | ||
export { MjmlAttributes } from "./MjmlAttributes"; | ||
export type { IMjmlAttributesProps } from "./MjmlAttributes"; | ||
export { MjmlBreakpoint } from "./MjmlBreakpoint"; | ||
export type { IMjmlBreakpointProps } from "./MjmlBreakpoint"; | ||
export { MjmlHtmlAttributes } from "./MjmlHtmlAttributes"; | ||
export type { IMjmlHtmlAttributesProps } from "./MjmlHtmlAttributes"; | ||
export { MjmlFont } from "./MjmlFont"; | ||
export type { IMjmlFontProps } from "./MjmlFont"; | ||
export { MjmlPreview } from "./MjmlPreview"; | ||
export type { IMjmlPreviewProps } from "./MjmlPreview"; | ||
export { MjmlStyle } from "./MjmlStyle"; | ||
export type { IMjmlStyleProps } from "./MjmlStyle"; | ||
export { MjmlTitle } from "./MjmlTitle"; | ||
export type { IMjmlTitleProps } from "./MjmlTitle"; | ||
export { MjmlHero } from "./MjmlHero"; | ||
export type { IMjmlHeroProps } from "./MjmlHero"; | ||
export { MjmlButton } from "./MjmlButton"; | ||
export type { IMjmlButtonProps } from "./MjmlButton"; | ||
export { MjmlColumn } from "./MjmlColumn"; | ||
export type { IMjmlColumnProps } from "./MjmlColumn"; | ||
export { MjmlDivider } from "./MjmlDivider"; | ||
export type { IMjmlDividerProps } from "./MjmlDivider"; | ||
export { MjmlGroup } from "./MjmlGroup"; | ||
export type { IMjmlGroupProps } from "./MjmlGroup"; | ||
export { MjmlImage } from "./MjmlImage"; | ||
export type { IMjmlImageProps } from "./MjmlImage"; | ||
export { MjmlRaw } from "./MjmlRaw"; | ||
export type { IMjmlRawProps } from "./MjmlRaw"; | ||
export { MjmlSection } from "./MjmlSection"; | ||
export type { IMjmlSectionProps } from "./MjmlSection"; | ||
export { MjmlSpacer } from "./MjmlSpacer"; | ||
export type { IMjmlSpacerProps } from "./MjmlSpacer"; | ||
export { MjmlText } from "./MjmlText"; | ||
export type { IMjmlTextProps } from "./MjmlText"; | ||
export { MjmlTable } from "./MjmlTable"; | ||
export type { IMjmlTableProps } from "./MjmlTable"; | ||
export { MjmlWrapper } from "./MjmlWrapper"; | ||
export type { IMjmlWrapperProps } from "./MjmlWrapper"; | ||
export { MjmlSocial } from "./MjmlSocial"; | ||
export type { IMjmlSocialProps } from "./MjmlSocial"; | ||
export { MjmlSocialElement } from "./MjmlSocialElement"; | ||
export type { IMjmlSocialElementProps } from "./MjmlSocialElement"; | ||
export { MjmlNavbar } from "./MjmlNavbar"; | ||
export type { IMjmlNavbarProps } from "./MjmlNavbar"; | ||
export { MjmlNavbarLink } from "./MjmlNavbarLink"; | ||
export type { IMjmlNavbarLinkProps } from "./MjmlNavbarLink"; | ||
export { MjmlAccordion } from "./MjmlAccordion"; | ||
export type { IMjmlAccordionProps } from "./MjmlAccordion"; | ||
export { MjmlAccordionElement } from "./MjmlAccordionElement"; | ||
export type { IMjmlAccordionElementProps } from "./MjmlAccordionElement"; | ||
export { MjmlAccordionText } from "./MjmlAccordionText"; | ||
export type { IMjmlAccordionTextProps } from "./MjmlAccordionText"; | ||
export { MjmlAccordionTitle } from "./MjmlAccordionTitle"; | ||
export type { IMjmlAccordionTitleProps } from "./MjmlAccordionTitle"; | ||
export { MjmlCarousel } from "./MjmlCarousel"; | ||
export type { IMjmlCarouselProps } from "./MjmlCarousel"; | ||
export { MjmlCarouselImage } from "./MjmlCarouselImage"; | ||
export type { IMjmlCarouselImageProps } from "./MjmlCarouselImage"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
export { namedEntityToHexCode } from "./html-entities"; | ||
export * from "./mjml-component-utils"; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters