Skip to content

Commit

Permalink
Merge pull request #1140 from mjmlio/next
Browse files Browse the repository at this point in the history
MJML 4.0.4 (Not found edition)
  • Loading branch information
iRyusa authored Apr 24, 2018
2 parents 354519a + 652e6c1 commit 7aafb19
Show file tree
Hide file tree
Showing 80 changed files with 2,319 additions and 2,092 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ node_js:
- 6
script:
- npm install
- gulp build
- npm run build
- npm run lint
- cd packages/mjml-validator
- npm link mjml-core
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MJML 4
# MJML 4

If you're looking for MJML 3.3.X check [this branch](https://github.com/mjmlio/mjml/tree/3.3.x)

Expand Down Expand Up @@ -42,7 +42,7 @@ MJML is a markup language created by [Mailjet](https://www.mailjet.com/) and des
# Installation

You can install MJML with NPM to use it with NodeJS or the Command Line Interface. If you're not sure what those are, head over to <a href="#usage">Usage</a> for other ways to use MJML.

```bash
npm install mjml
```
Expand All @@ -53,7 +53,7 @@ To work on MJML, make changes and create merge requests, download and install [y

```bash
git clone https://github.com/mjmlio/mjml.git && cd mjml
yarn
yarn
yarn build
```

Expand Down Expand Up @@ -133,11 +133,11 @@ You can pass optional `options` as an object to the `mjml2html` function:
option | unit | description | default value
-------------|--------|--------------|---------------
fonts | object | Default fonts imported in the HTML rendered by HTML | See in [index.js](https://github.com/mjmlio/mjml/blob/master/packages/mjml-core/src/index.js#L36-L44)
keepComments | boolean | Option to keep comments in the HTML output | true
keepComments | boolean | Option to keep comments in the HTML output | true
beautify | boolean | Option to beautify the HTML output | false
minify | boolean | Option to minify the HTML output | false
validationLevel | string | Available values for the [validator](https://github.com/mjmlio/mjml/tree/master/packages/mjml-validator#validating-mjml): 'strict', 'soft', 'skip' | 'soft'
filePath | boolean | Option to beautify the HTML output | false
filePath | boolean | Path of file, used for relative paths in mj-includes | '.'

## API

Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"packages/*"
],
"npmClient": "yarn",
"version": "4.0.3"
"version": "4.0.4"
}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,8 @@
"opn": "^5.1.0",
"prettier": "^1.7.3",
"rimraf": "^2.6.1"
},
"dependencies": {
"cross-env": "^5.1.4"
}
}
9 changes: 5 additions & 4 deletions packages/mjml-accordion/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mjml-accordion",
"description": "mjml-accordion",
"version": "4.0.2",
"version": "4.0.4",
"main": "lib/index.js",
"repository": {
"type": "git",
Expand All @@ -13,11 +13,12 @@
},
"homepage": "https://mjml.io",
"scripts": {
"clean": "../../node_modules/.bin/rimraf lib",
"build": "../../node_modules/.bin/babel src --out-dir lib"
"clean": "cross-env ../../node_modules/.bin/rimraf lib",
"build": "cross-env ../../node_modules/.bin/babel src --out-dir lib"
},
"dependencies": {
"cross-env": "^5.1.4",
"lodash": "^4.17.2",
"mjml-core": "^4.0.1"
"mjml-core": "^4.0.4"
}
}
54 changes: 54 additions & 0 deletions packages/mjml-accordion/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,60 @@
# yarn lockfile v1


cross-env@^5.1.4:
version "5.1.4"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.4.tgz#f61c14291f7cc653bb86457002ea80a04699d022"
dependencies:
cross-spawn "^5.1.0"
is-windows "^1.0.0"

cross-spawn@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
dependencies:
lru-cache "^4.0.1"
shebang-command "^1.2.0"
which "^1.2.9"

is-windows@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"

isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"

lodash@^4.17.2:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

lru-cache@^4.0.1:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f"
dependencies:
pseudomap "^1.0.2"
yallist "^2.1.2"

pseudomap@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"

shebang-command@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
dependencies:
shebang-regex "^1.0.0"

shebang-regex@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"

which@^1.2.9:
version "1.3.0"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
dependencies:
isexe "^2.0.0"

yallist@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
9 changes: 5 additions & 4 deletions packages/mjml-body/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mjml-body",
"description": "mjml-body",
"version": "4.0.2",
"version": "4.0.4",
"main": "lib/index.js",
"repository": {
"type": "git",
Expand All @@ -13,11 +13,12 @@
},
"homepage": "https://mjml.io",
"scripts": {
"clean": "../../node_modules/.bin/rimraf lib",
"build": "../../node_modules/.bin/babel src --out-dir lib"
"clean": "cross-env ../../node_modules/.bin/rimraf lib",
"build": "cross-env ../../node_modules/.bin/babel src --out-dir lib"
},
"dependencies": {
"cross-env": "^5.1.4",
"lodash": "^4.17.2",
"mjml-core": "^4.0.1"
"mjml-core": "^4.0.4"
}
}
54 changes: 54 additions & 0 deletions packages/mjml-body/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,60 @@
# yarn lockfile v1


cross-env@^5.1.4:
version "5.1.4"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.4.tgz#f61c14291f7cc653bb86457002ea80a04699d022"
dependencies:
cross-spawn "^5.1.0"
is-windows "^1.0.0"

cross-spawn@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
dependencies:
lru-cache "^4.0.1"
shebang-command "^1.2.0"
which "^1.2.9"

is-windows@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"

isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"

lodash@^4.17.2:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

lru-cache@^4.0.1:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f"
dependencies:
pseudomap "^1.0.2"
yallist "^2.1.2"

pseudomap@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"

shebang-command@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
dependencies:
shebang-regex "^1.0.0"

shebang-regex@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"

which@^1.2.9:
version "1.3.0"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
dependencies:
isexe "^2.0.0"

yallist@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
9 changes: 5 additions & 4 deletions packages/mjml-button/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mjml-button",
"description": "mjml-button",
"version": "4.0.1",
"version": "4.0.4",
"main": "lib/index.js",
"repository": {
"type": "git",
Expand All @@ -13,11 +13,12 @@
},
"homepage": "https://mjml.io",
"scripts": {
"clean": "../../node_modules/.bin/rimraf lib",
"build": "../../node_modules/.bin/babel src --out-dir lib"
"clean": "cross-env ../../node_modules/.bin/rimraf lib",
"build": "cross-env ../../node_modules/.bin/babel src --out-dir lib"
},
"dependencies": {
"cross-env": "^5.1.4",
"lodash": "^4.17.2",
"mjml-core": "^4.0.1"
"mjml-core": "^4.0.4"
}
}
1 change: 0 additions & 1 deletion packages/mjml-button/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export default class MjButton extends BodyComponent {
'border-radius': this.getAttribute('border-radius'),
'border-right': this.getAttribute('border-right'),
'border-top': this.getAttribute('border-top'),
color: this.getAttribute('color'),
cursor: 'auto',
'font-style': this.getAttribute('font-style'),
height: this.getAttribute('height'),
Expand Down
54 changes: 54 additions & 0 deletions packages/mjml-button/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,60 @@
# yarn lockfile v1


cross-env@^5.1.4:
version "5.1.4"
resolved "https://registry.yarnpkg.com/cross-env/-/cross-env-5.1.4.tgz#f61c14291f7cc653bb86457002ea80a04699d022"
dependencies:
cross-spawn "^5.1.0"
is-windows "^1.0.0"

cross-spawn@^5.1.0:
version "5.1.0"
resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449"
dependencies:
lru-cache "^4.0.1"
shebang-command "^1.2.0"
which "^1.2.9"

is-windows@^1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"

isexe@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10"

lodash@^4.17.2:
version "4.17.4"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae"

lru-cache@^4.0.1:
version "4.1.2"
resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-4.1.2.tgz#45234b2e6e2f2b33da125624c4664929a0224c3f"
dependencies:
pseudomap "^1.0.2"
yallist "^2.1.2"

pseudomap@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/pseudomap/-/pseudomap-1.0.2.tgz#f052a28da70e618917ef0a8ac34c1ae5a68286b3"

shebang-command@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea"
dependencies:
shebang-regex "^1.0.0"

shebang-regex@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3"

which@^1.2.9:
version "1.3.0"
resolved "https://registry.yarnpkg.com/which/-/which-1.3.0.tgz#ff04bdfc010ee547d780bec38e1ac1c2777d253a"
dependencies:
isexe "^2.0.0"

yallist@^2.1.2:
version "2.1.2"
resolved "https://registry.yarnpkg.com/yallist/-/yallist-2.1.2.tgz#1c11f9218f076089a47dd512f93c6699a6a81d52"
9 changes: 5 additions & 4 deletions packages/mjml-carousel/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "mjml-carousel",
"description": "mjml-carousel",
"version": "4.0.2",
"version": "4.0.4",
"main": "lib/index.js",
"repository": {
"type": "git",
Expand All @@ -13,11 +13,12 @@
},
"homepage": "https://mjml.io",
"scripts": {
"clean": "../../node_modules/.bin/rimraf lib",
"build": "../../node_modules/.bin/babel src --out-dir lib"
"clean": "cross-env ../../node_modules/.bin/rimraf lib",
"build": "cross-env ../../node_modules/.bin/babel src --out-dir lib"
},
"dependencies": {
"cross-env": "^5.1.4",
"lodash": "^4.17.2",
"mjml-core": "^4.0.1"
"mjml-core": "^4.0.4"
}
}
Loading

0 comments on commit 7aafb19

Please sign in to comment.