Skip to content

multiple and wrong gitignore entry #2

Description

@eturella

thanks for your work!

1

multiple call to "ng add" results in same number of gitignore entries
const buffer = host.read('.gitignore');
const content = buffer.toString();
if( !buffer.toString().includes('environments/version.ts'){
// call addEntry
}

2

and file isn't really ignore
sol1) environments/version.ts --> */environments/version.ts
sol2) create a .gitignore in the same path of version.js

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions