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

Embraces angular2 styleguide #1091

Merged
merged 1 commit into from
Oct 15, 2016
Merged

Embraces angular2 styleguide #1091

merged 1 commit into from
Oct 15, 2016

Conversation

dherges
Copy link
Contributor

@dherges dherges commented Oct 7, 2016

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

Follow up on #1084

  • What is the current behavior? (You can also link to an open issue here)

Spec file names, e.g. x-large.spec.ts

Component class names e.g. App

  • What is the new behavior (if this is a feature change)?

Spec file names, e.g. x-large.directive.spec.ts

Component class names, e.g. AppComponent

  • Other information:

See
https://angular.io/styleguide#!#02-03
https://angular.io/styleguide#!#02-10
https://angular.io/styleguide#!#02-11

Styleguide also suggests to name e2e spec files with pattern: <feature>.e2e-spec.ts, e.g. app.e2e-spec.ts

-> *Component class name
-> *.{component|directive|service}.spec.ts test file names
@dherges
Copy link
Contributor Author

dherges commented Oct 7, 2016

tbd: XLargeDirective and TitleService class names, as well?

@dherges
Copy link
Contributor Author

dherges commented Oct 7, 2016

tbd: styleguide also suggests to name e2e spec files with pattern: *.e2e-spec.ts, e.g. app.e2e-spec.ts

This requires a change in the webpack configuration.

@michaeljota michaeljota mentioned this pull request Oct 15, 2016
Copy link
Contributor

@katallaxie katallaxie left a comment

Choose a reason for hiding this comment

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

LGTM

@katallaxie
Copy link
Contributor

@dherges Some of the things suggested in style guides etc. are just taste.

@katallaxie katallaxie merged commit 8bb4600 into PatrickJS:master Oct 15, 2016
awcodify pushed a commit to awcodify/d3-angular-4 that referenced this pull request Aug 28, 2017
* Component class names follow the style guide
* Filenames of services, components, and directives follow the style guide
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