Skip to content

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

Closed
deebloo wants to merge 28 commits into
angular:masterfrom
deebloo:2288
Closed

bugfix(generate): removes bad imports when generating a class#2292
deebloo wants to merge 28 commits into
angular:masterfrom
deebloo:2288

Conversation

@deebloo

Copy link
Copy Markdown
Contributor

closes#2288

@JohannesRudolph

JohannesRudolph commented Sep 27, 2016

Copy link
Copy Markdown
Contributor

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

@deebloodeebloo changed the title bugfix(2288): removes bad imports when generating a classbugfix(generate): removes bad imports when generating a classSep 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
ContributorAuthor

@filipesilva oh boy does it!

Danny Blueand 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
Copy Markdown

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.

@deebloo

Copy link
Copy Markdown
ContributorAuthor

@filipesilva made a mess. Will open new PR

@angular-automatic-lock-bot

Copy link
Copy Markdown

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-botangular-automatic-lock-botBot locked and limited conversation to collaborators Sep 10, 2019
Sign up for freeto 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

@deebloo@JohannesRudolph@filipesilva@googlebot@Brocco@catull@hansl