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

refactor: async/await #32

Merged
merged 5 commits into from
Sep 28, 2019
Merged

refactor: async/await #32

merged 5 commits into from
Sep 28, 2019

Conversation

curbengh
Copy link
Contributor

@curbengh curbengh commented Aug 26, 2019

Some plugins (e.g. postcss-normalize) have started to require async; while autoprefixer currently works fine, it may requires it in future.
This PR is backward-compatible, so there is no breaking change.

ecmaVersion: 2017 is needed for now until eslint-config-hexo@4 is released (hexojs/eslint-config-hexo#16).

Changed the unit test to use user-select as I believe fullscreen is no longer prefixed.

https://api.postcss.org/LazyResult.html

Part of hexojs/hexo#3328

@coveralls
Copy link

coveralls commented Aug 26, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling 8ef3b3b on curbengh:async into c699430 on hexojs:master.

@curbengh
Copy link
Contributor Author

curbengh commented Aug 26, 2019

test case needs to be updated.

Edit: #34

@curbengh
Copy link
Contributor Author

Supersede #34 after updating the test to use chai-as-promised.

@curbengh curbengh requested a review from a team September 25, 2019 08:38
@curbengh
Copy link
Contributor Author

@segayuu
not sure if I use chai-as-promised correctly, please advice.

@curbengh
Copy link
Contributor Author

remaining es6-fy to be done in a separate PR.

@curbengh curbengh changed the title refactor: promise-fy refactor: async/await Sep 25, 2019
@curbengh curbengh merged commit ed0dc29 into hexojs:master Sep 28, 2019
@curbengh curbengh deleted the async branch September 28, 2019 05:08
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.

4 participants