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

Remove "style file" silent error #7600

Merged
merged 1 commit into from
Feb 5, 2018
Merged

Remove "style file" silent error #7600

merged 1 commit into from
Feb 5, 2018

Conversation

twokul
Copy link
Contributor

@twokul twokul commented Feb 4, 2018

This check was originally added as a part of this PR. Motivation behind the change was that build crashed w/ not-so-obvious error if stylesheet file had the same name as the project. I have doubts this check needs to exist anymore.

@twokul twokul added the internal label Feb 4, 2018
Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Have you tested in an app? Basically:

ember new foo
cd foo
touch app/styles/foo.css
ember build

What happens?

if (existsSync(`${this._stylesPath}/${this.name}.css`)) {
throw new SilentError(`Style file cannot have the name of the application - ${this.name}`);
}
//if (existsSync(`${this._stylesPath}/${this.name}.css`)) {
Copy link
Member

Choose a reason for hiding this comment

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

If we are going to remove it, let’s remove it. Commenting seems bad....

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ofc, Good Sir. I opened this PR just to start a conversation.

@twokul
Copy link
Contributor Author

twokul commented Feb 5, 2018

@rwjblue I did test it locally and it works just fine, both ember serve & ember build

This check was originally added as a part of [this PR](#3642).
Motivation behind the change was that build crashed w/ not-so-obvious
error if stylesheet file had the same name as the project.
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.

None yet

2 participants