forked from SnowdogApps/magento2-frontools
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split email task in build and only dev task and add browser sync to w…
…atch the email templates
- Loading branch information
1 parent
b9de177
commit aeb43fc
Showing
5 changed files
with
59 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"server": { | ||
"baseDir": "../../../" | ||
}, | ||
"files": [ | ||
"../../../app/design/frontend/**/email/**/*.html", | ||
"../../../pub/static/frontend/**/email.css" | ||
], | ||
"open": false, | ||
"startPath": "app/design/frontend/Framework/WhiteLabel/Magento_Customer/email/welcome.html" | ||
} |
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,19 @@ | ||
'use strict'; | ||
module.exports = function() { // eslint-disable-line func-names | ||
// Global variables | ||
const plugins = this.opts.plugins, | ||
config = this.opts.configs; | ||
|
||
// Prevent runing inheritance task more than once | ||
plugins.util.env.pipeline = true; | ||
|
||
plugins.runSequence('inheritance', 'styles', 'inky', () => { | ||
plugins.browserSync.create(); | ||
plugins.browserSync( | ||
require('../helper/config-loader')('browser-sync-email.json', plugins, config) | ||
); | ||
|
||
plugins.runSequence('watch'); | ||
}); | ||
}; | ||
|
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,11 +1,15 @@ | ||
'use strict'; | ||
module.exports = function() { // eslint-disable-line func-names | ||
// Global variables | ||
// Global variables | ||
const plugins = this.opts.plugins, | ||
config = this.opts.configs; | ||
|
||
// Prevent runing inheritance task more than once | ||
plugins.util.env.pipeline = true; | ||
|
||
if (!plugins.util.env.enableInliner) { | ||
plugins.util.env.enableInliner = true; | ||
} | ||
|
||
plugins.runSequence('inheritance', 'styles', 'inky', 'inliner'); | ||
}; |