Skip to content

multiple and wrong gitignore entry #2

@eturella

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

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