Skip to content

bugfix(generate): removes bad imports when generating a class #2292

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

Closed
wants to merge 28 commits into from

Conversation

deebloo
Copy link
Contributor

@deebloo deebloo commented Sep 22, 2016

closes #2288

@JohannesRudolph
Copy link
Contributor

JohannesRudolph commented Sep 27, 2016

@deebloo unfortunately the build failed. can you rebase/merge and retest your pull request?

@deebloo deebloo changed the title bugfix(2288): removes bad imports when generating a class bugfix(generate): removes bad imports when generating a class Sep 28, 2016
return ng('generate', 'class', 'test-class')
.then(() => expectFileToExist(classDir))
.then(() => expectFileToExist(join(classDir, 'test-class.ts')))
.then(() => expectFileToExist(join(classDir, 'test-class.spec.ts')))
Copy link
Contributor

Choose a reason for hiding this comment

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

This just changed to default to not having a spec in #2475 I believe.

@filipesilva
Copy link
Contributor

Hey, thanks for fixing this! Don't worry too much about keeping the PR updated though, I usually batch-rebase/merge them myself.

In your case though, a couple of hours ago a change landed that removed the default specs from classes so it really needs to be rebased.

@deebloo
Copy link
Contributor Author

deebloo commented Oct 3, 2016

@filipesilva oh boy does it!

Danny Blue and others added 14 commits October 3, 2016 14:11
…2379)

* Updated ng command options.
 - "build" now additionally supports --base-hre / -bh, -w
 - "generate" got cleaned up
 - "github-pages:deploy" / "gh-pages:deploy" now is supported, too
 - "init" now knows --routing and --source-dir
 - "new" also accepts --routing
 - "serve" dumped --insecure-proxy, --inspr, --output-path, -op, -out and -pxy
 - "test" now honours --build and --reporters, dumped --config-file, --environment, --filter, --host, --launch, --module, path, --query, reporter, --server, --silent, --test-page and --test-port

* Added --aot for "build" and "serve".

* Recent the commands "init" and "new" received two more options: "--inline-stile" (alias -is) and "inline-template" (alias -it).  Support the, both.

* Recently the commands "init" and "new" dropped --blueprint (alias -b).
In addition, reading and using AST on main.ts to figure out the entry module, if not specified.
@googlebot
Copy link

We found a Contributor License Agreement for you (the sender of this pull request) and all commit authors, but as best as we can tell these commits were authored by someone else. If that's the case, please add them to this pull request and have them confirm that they're okay with these commits being contributed to Google. If we're mistaken and you did author these commits, just reply here to confirm.

@googlebot googlebot added cla: no and removed cla: yes labels Oct 3, 2016
@deebloo
Copy link
Contributor Author

deebloo commented Oct 3, 2016

@filipesilva made a mess. Will open new PR

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@angular/core/testing has no exported member addProviders
7 participants