Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

fix(@schematics/angular): Add skip git option to prevent creating git… #167

Merged
merged 1 commit into from
Sep 27, 2017

Conversation

Brocco
Copy link
Contributor

@Brocco Brocco commented Sep 25, 2017

…ignore file

fixes angular/angular-cli#7686

@@ -94,6 +94,7 @@ export default function (options: ApplicationOptions): Rule {
mergeWith(
apply(url('./files'), [
options.minimal ? filter(minimalPathFilter) : noop(),
options.skipGit ? filter(path => !path.endsWith('gitignore')) : noop(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you check the whole path? !path.endsWith('/__dot__gitignore')?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed this (plus linting issue in generated schema file)

@@ -25,11 +25,11 @@ export interface Schema {
/**
* Specifies the view encapsulation strategy.
*/
viewEncapsulation?: ('Emulated' | 'Native' | 'None');
viewEncapsulation?: ("Emulated" | "Native" | "None");
Copy link
Contributor

Choose a reason for hiding this comment

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

Unfortunately you have to do a devkit-admin lint --fix run after generating the .d.ts. This won't pass linting.

@filipesilva filipesilva merged commit 9d2c7e9 into angular:master Sep 27, 2017
Brocco added a commit to Brocco/angular-cli that referenced this pull request Sep 28, 2017
Brocco added a commit to Brocco/angular-cli that referenced this pull request Sep 28, 2017
Brocco added a commit to Brocco/angular-cli that referenced this pull request Sep 28, 2017
hansl pushed a commit to angular/angular-cli that referenced this pull request Sep 28, 2017
filipesilva pushed a commit to angular/angular-cli that referenced this pull request Sep 28, 2017
filipesilva pushed a commit to angular/angular-cli that referenced this pull request Sep 28, 2017
@Brocco Brocco deleted the skip-git branch April 3, 2018 13:10
dond2clouds pushed a commit to d2clouds/speedray-cli that referenced this pull request Apr 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ng new --skip-git is ignored
4 participants