Skip to content
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

Merged
merged 3 commits into from
Feb 13, 2015
Merged

Conversation

qfox
Copy link
Contributor

@qfox qfox commented Nov 25, 2014

No description provided.

@qfox
Copy link
Contributor Author

qfox commented Feb 11, 2015

@tadatuta @andrewblond Can you take a look?

@qfox qfox force-pushed the feature/isAsync branch 3 times, most recently from d88ed71 to 92491a9 Compare February 11, 2015 21:00
@blond
Copy link
Member

blond commented Feb 11, 2015

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) {
Copy link
Contributor Author

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 соотв.

@@ -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,
Copy link
Member

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

@qfox qfox force-pushed the feature/isAsync branch 3 times, most recently from 31dbb31 to 781d94f Compare February 13, 2015 01:20
@qfox qfox changed the title isAsync feature isAsync feature and a bunch of lang bugs Feb 13, 2015
var name = what.name,
target = what.target,
exportName = what.exportName;
lazy && print('lazies[\'' + lazy + '\'] = function () {\n');
Copy link
Contributor Author

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?

Alexej Yaroshevich added 2 commits February 13, 2015 14:02
- 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
@qfox
Copy link
Contributor Author

qfox commented Feb 13, 2015

ping @tadatuta @arikon @andrewblond

Example of generated spec file for multilang:
image

@blond
Copy link
Member

blond commented Feb 13, 2015

Looks great. 👍

@zxqfox Thanks for tackling this!

blond pushed a commit that referenced this pull request Feb 13, 2015
isAsync feature and a bunch of lang bugs
@blond blond merged commit 8bdd510 into enb:master Feb 13, 2015
@qfox qfox deleted the feature/isAsync branch February 13, 2015 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants