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

Update for Angular 8 #22

Merged
merged 4 commits into from
Jun 13, 2019
Merged

Update for Angular 8 #22

merged 4 commits into from
Jun 13, 2019

Conversation

JoshuaNitschke
Copy link
Contributor

@JoshuaNitschke JoshuaNitschke commented Jun 11, 2019

I modified my local script ng-ad-pug-loader.js script and tried to make the changes to this library. I didn't have time to figure out how to test if what I've done works with ng add , but I think I haven't made any mistakes. If you want to merge this in, go ahead. The main thing to do is set directTemplateLoading to false in the webpack cli config typecript.js file.
Fixes #20
ng-add-pug-loader.js.zip

I don't have time to figure out how to test this with the ng add *** utility, so hopefully it works. 
I was able to test my version of ng-add-pug-loader.js (after filling in the templated parts)
@danguilherme danguilherme changed the base branch from master to develop June 12, 2019 08:57
Copy link
Owner

@danguilherme danguilherme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for this PR! This will probably solve #19 too.

As Angular 6 is still in LTS, I believe we should keep supporting it, thus some small changes must be made.

@JoshuaNitschke
Copy link
Contributor Author

Hi,

Thanks for the feedback. I'm working on it, but it's taking longer than expected due to running into a weird issue where adding the typescript.js file to the UnitTestTree is causing the other unit tests dependent on common.js to fail as undefined. If I simply rename the new file, everything continues to work. So that's weird, has something to do with the name I guess.

image

image

Add a unit test for Angular 8
Add a check to maintain Angular 6/7 compatability per PR feedback
@JoshuaNitschke
Copy link
Contributor Author

JoshuaNitschke commented Jun 13, 2019

Thank you so much for this PR! This will probably solve #19 too.

I'm not sure if it will solve #19. My project was on Angular 7 just fine and it didn't blow up until I upgraded to Angular 8.

Copy link
Owner

@danguilherme danguilherme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for investing your time in this! The code would work in any environment already, but I believe there's just some cleaning necessary before a release (commented in the files).

…ript

make changes requested in PR:
* fix typo on unit test description
* refactor variable names relating to version of Angular
* alter mocked unit test file utilize subset of typescript.js
@danguilherme danguilherme merged commit 9dc6767 into danguilherme:develop Jun 13, 2019
@danguilherme danguilherme added this to the v0.2.0 milestone Jun 14, 2019
@danguilherme danguilherme mentioned this pull request Jun 14, 2019
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