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

fix(init): ignore favicon #2617

Closed
wants to merge 1 commit into from
Closed

Conversation

Puigcerber
Copy link
Contributor

@Puigcerber Puigcerber commented Oct 9, 2016

Avoid crashes when choosing to diff the favicon.ico during overwrite.

Closes #2274

I'm assuming people either want to keep their favicon or the default one, but as the option to overwrite would be there anyway... who doesn't want to diff a favicon.ico? So I think to avoid the crashes is better to ignore it when updating the cli.

@@ -105,7 +105,8 @@ const InitCommand: any = Command.extend({
mobile: commandOptions.mobile,
routing: commandOptions.routing,
inlineStyle: commandOptions.inlineStyle,
inlineTemplate: commandOptions.inlineTemplate
inlineTemplate: commandOptions.inlineTemplate,
ignoredFiles: ['favicon.ico']
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you change this prop to be ignoredUpdateFiles?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Done!

@filipesilva
Copy link
Contributor

Just a nit, definitely a useful feature. Thanks!

Avoid crashes when choosing to diff the favicon.ico during overwrite.

Closes angular#2274
@Puigcerber Puigcerber deleted the favicon branch October 13, 2016 09:17
JJayet pushed a commit to JJayet/angular-cli that referenced this pull request Oct 14, 2016
Avoid crashes when choosing to diff the favicon.ico during overwrite.

Closes angular#2274
Close angular#2617
Brocco pushed a commit that referenced this pull request Oct 19, 2016
Avoid crashes when choosing to diff the favicon.ico during overwrite.

Closes #2274
Close #2617
texel pushed a commit to splice/angular-cli that referenced this pull request Nov 3, 2016
Avoid crashes when choosing to diff the favicon.ico during overwrite.

Closes angular#2274
Close angular#2617
@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.

ng init crashes when using diff on favicon.ico
3 participants