Skip to content

Commit 7e9671d

Browse files
committed
Upgrade to babel 4 seems to do the trick
1 parent d0ac126 commit 7e9671d

File tree

6 files changed

+5674
-7419
lines changed

6 files changed

+5674
-7419
lines changed

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 100,
3+
"semi": false,
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

gulpfile.babel.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ const walkSync = (dir, filelist = []) => {
1313
? walkSync(path.join(dir, file), filelist)
1414
: filelist.concat(path.join(dir, file))
1515
})
16-
return filelist
16+
return filelist
1717
}
1818

1919
const watchedComponents = walkSync('./components')
2020

2121
const compile = () => {
22-
gulp.src(path.normalize('components/**/*.js'))
22+
return gulp
23+
.src(path.normalize('components/**/*.js'))
2324
.pipe(babel())
2425
.on('error', log)
2526
.pipe(gulp.dest('lib'))
@@ -42,8 +43,5 @@ gulp.task('build', compile)
4243

4344
gulp.task('watch', () => {
4445
compile()
45-
return watch([
46-
path.normalize('components/**/*.js'),
47-
path.normalize('index.mjml'),
48-
], compile)
46+
return watch([path.normalize('components/**/*.js'), path.normalize('index.mjml')], compile)
4947
})

index.mjml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<!-- The second component, mj-image-text renders as a section -->
1414
<mj-image-text background-color="#DD685B" image-src="https://mjml.io/assets/img/mjml-logo.png" image-width="100px" font-size="24px" image-position="left">
15-
MJML rules!
15+
MJML rules! hello modified
1616
</mj-image-text>
1717

1818
<!-- The third component, mj-layout, also renders as a section -->
@@ -23,4 +23,4 @@
2323
</mj-layout>
2424

2525
</mj-body>
26-
</mjml>
26+
</mjml>

0 commit comments

Comments
 (0)