chore(generate): update routing files & add --routing to ng new#2361
chore(generate): update routing files & add --routing to ng new#2361filipesilva merged 1 commit intoangular:masterfrom
Conversation
| // files = files.filter(file => file.indexOf('.module.ts') > 0); | ||
| // TODO: refactor to not be based upon file name | ||
| const files = fs.readdirSync(pathToCheck) | ||
| .filter(fileName => !fileName.endsWith('routing.module.ts')) |
There was a problem hiding this comment.
There's a scenario where someone has a single module called routing and we'll never find it, but tbh I don't think we should special-case it this far... when we refactor we'll handle it.
There was a problem hiding this comment.
This is going to go away, the file name string matching is temporary.
|
|
|
@oravecz include the options after the command + arguements. So in your example, run" |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
No description provided.