File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " mjml" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.2 " ,
44 "description" : " MJML: the only framework that makes responsive-email easy" ,
55 "main" : " ./lib/mjml" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ import { tidy as htmltidy } from 'htmltidy'
44import mjmlEngine from './index'
55import { version as VERSION } from '../package.json'
66
7+ const engine = mjmlEngine . mjml2html
8+
79/*
810 * The version number is the NPM
911 * version number. It should be the same as the MJML engine
@@ -68,6 +70,7 @@ const createComponent = (name, ending) => {
6870
6971return `
7072import React, { Component } from 'react'
73+ import _ from 'loadash'
7174import {
7275 MJMLColumnElement,
7376 elements,
@@ -78,7 +81,7 @@ import {
7881 * Wrap your dependencies here.
7982 */
8083const {
81- ${ lowerName } : Mj ${ name } ,
84+ text: MjText ,
8285} = elements;
8386
8487const NAME = '${ lowerName } '
@@ -128,6 +131,7 @@ class ${name} extends Component {
128131 }
129132}
130133
134+ registerElement('${ lowerName } ', ${ name } ${ ending ? ', true' : '' } )
131135export default ${ name }
132136`
133137}
Original file line number Diff line number Diff line change 22
33import binary from 'commander'
44import mjmlEngine from './index'
5- import mjmlCLI from './cli'
6-
7- const engine = mjmlEngine . mjml2html
5+ import mjmlCLI from './cli'
86
97/*
108 * If require.main
You can’t perform that action at this time.
0 commit comments