-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
isAsync feature and a bunch of lang bugs #40
Conversation
c699be8
to
3aa7b6d
Compare
@tadatuta @andrewblond Can you take a look? |
d88ed71
to
92491a9
Compare
Thanks for this contribution! Looks good to me. I need to spend some time on manual testing before I can say anything on this Pull Request. |
|
||
} else { // engine.isAsync %> | ||
// async mode | ||
engines['${ engine.name }']${ subreference }.apply(bemjson, function (errs, actual) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Можно еще из references['${ it }']${ subreference }
сделать ${ ref }
, и из engine соотв.
92491a9
to
9d15e71
Compare
@@ -98,6 +96,7 @@ module.exports = require('enb/lib/build-flow').create() | |||
var langTarget = target.replace('.js', '.' + lang + '.js'); | |||
return { | |||
name: lang, | |||
isAsync: engine.options.isAsync, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
engine.options
contains options for tech
, it's better to use engine.async
instead of engine.options.isAsync
31dbb31
to
781d94f
Compare
781d94f
to
afa758a
Compare
var name = what.name, | ||
target = what.target, | ||
exportName = what.exportName; | ||
lazy && print('lazies[\'' + lazy + '\'] = function () {\n'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewblond I don't know how to do it more elegant. Any thoughts?
- restored htmlBeautifier func-ty - reworked langs it render - added async flag to force calling .apply with cb on engine - added safer call of i18n - fixed lang bugs
afa758a
to
0916336
Compare
Looks great. 👍 @zxqfox Thanks for tackling this! |
isAsync feature and a bunch of lang bugs
No description provided.