-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Labels
featureIssue that requests a new featureIssue that requests a new feature
Description
Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [x] feature request
Versions.
$ ng --version
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
@angular/cli: 1.0.6
node: 6.10.2
os: win32 x64
@angular/common: 4.1.3
@angular/compiler: 4.1.3
@angular/core: 4.1.3
@angular/forms: 4.1.3
@angular/http: 4.1.3
@angular/platform-browser: 4.1.3
@angular/platform-browser-dynamic: 4.1.3
@angular/router: 4.1.3
@angular/cli: 1.0.6
@angular/compiler-cli: 4.1.3
Running on Windows 10.
Repro steps.
$ ng new demo
$ cd demo
$ ng generate component DemoComponent
$ git add .
warning: LF will be replaced by CRLF in src/app/app.module.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/app/demo-component/demo-component.component.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/app/demo-component/demo-component.component.spec.ts.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in src/app/demo-component/demo-component.component.ts.
The file will have its original line endings in your working directory.
The log given by the failure.
None.
Desired functionality.
I'd like a setting to make ng generate create files with Windows line endings (CRLF) instead of the currently used Unix line endings (LF). This would increase users flexibility on Windows environments, where it's still common to use Windows line endings as a default.
The setting could look like ng set --global end_of_line=crlf.
Mention any other details that might be useful.
None.
arnaudoisel, cremor, sdurnov and tnicola
Metadata
Metadata
Assignees
Labels
featureIssue that requests a new featureIssue that requests a new feature