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

chore(builder): update builders to work with ng9 #201

Merged
merged 6 commits into from
Feb 17, 2020

Conversation

mhartington
Copy link
Contributor

Updates cordova-serve builder to work with ng9/builders

@mhartington mhartington changed the title chore(builder): update builders to work with ng9 chore(builder): update builders to work with ng9 (WIP) Jan 29, 2020
@patrick-entinux
Copy link

I tried the code from the pull request and it seems that the new cordova-serve (aka livereload) is not compatible with @angular-builders/custom-webpack. Unfortunately my project is depending on some custom webpack settings so it could not compile successfully in this new mode.

I guess the executeDevServerBuilder() function runs the default Angular Dev Server Builder directly, but custom-webpack is doing some additional steps to load the custom webpack config before calling executeDevServerBuilder() internally.

https://github.com/just-jeb/angular-builders/blob/master/packages/custom-webpack/src/dev-server/index.ts.

So these steps are getting skipped now. Not sure if there is another API that can let both @ionic/angular-toolkit and @angular-builders/custom-webpack apply their custom webpack transforms.

@mhartington
Copy link
Contributor Author

mhartington commented Feb 12, 2020

@patrick-entinux I looked into the custom webpack builder, and really, both are doing the same thing, extending the built-in builder running it.

I'm not 100% sure if there is anything we can do about that. Since both builders need to call the underlying target directly, executeDevServerBuilder, and there's no generic way to call that but still get the same functionality, I do not think both can be used here.

EDIT after talking with the ng-cli team, the best option would be to write your own builder that can combine what we do in our devserver and custom-webpack. Not ideal, but it would handle what you want.

@patrick-entinux
Copy link

@mhartington Thank you for looking into it and the recommendation. I will look into making a custom builder when I have time.

@mohamedsharaf
Copy link

@dwieeb pls review angular 9 released and ionic 5
merge and release new version

@mhartington mhartington changed the title chore(builder): update builders to work with ng9 (WIP) chore(builder): update builders to work with ng9 Feb 17, 2020
@mhartington mhartington merged commit 1f9f023 into master Feb 17, 2020
@dopplerDistortion
Copy link

any plans to release this PR ?

@mohamedsharaf
Copy link

release hope this fixes this problem
#214

@kyoz
Copy link

kyoz commented Feb 24, 2020

Yep. Hope this will soon be release. So i can enjoy ionic 5 with cordova plugins. Is there any issues blocked this PR from release ? ❤️

@mohamedsharaf
Copy link

you still can enjjoy ionic5 but angular 8.2

@Ionitron
Copy link
Collaborator

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants