11 Commits

Author SHA1 Message Date
vsavkin
70f7b608e7 fix(schematics): fix enforceModuleBoundaries check to properly detect incorrect relative imports 2018-02-18 15:27:00 -05:00
vsavkin
f862ed05d1 fix(lint): handle the case when libraries are placed in the directory with the same name as an app 2018-01-12 11:07:33 -05:00
vsavkin
912fc81708 fix(tslint): disallow importing apps 2018-01-05 10:49:04 -05:00
vsavkin
c836668541 fix(lint): only allow importing libs using the configured npm scope 2017-12-28 11:35:29 -05:00
Justin Schwartzenberger
3c55f34ca1 fix(schematics): make deep import check work for libs with same prefix
Adds logic to sort app names from longest to shortest so deep import
check of startsWith will work when more than one lib has the same
starting string. Also adds spec to confirm the case.
2017-12-20 10:13:06 -05:00
vsavkin
013a828d1e feat(schematics): add support for generating apps and libs in nested dirs 2017-12-05 16:23:26 -05:00
Emilio Martinez-Cordero
b3f67351fe feat(schematics): add allow option to whitelist deep imports
Adds an `allow` option to the `nx-enforce-module-boundaries` rule.

This option allows users to provide a specific set of library deep imports that should be whitelisted. Values need to be to be absolute library import paths, e.g., `@npmScope/library/subdirectory`. This option does not affect relative imports.
2017-12-03 15:30:57 -05:00
vsavkin
d6e66b9931 feat(schematics): add nx-migrate command 2017-12-01 11:37:13 -05:00
vsavkin
048448eba2 refactor(schematics): add all schematics into the collection dir 2017-12-01 11:37:13 -05:00
vsavkin
a43fbaeb9a switch to prettier 2017-10-07 12:09:45 -04:00
vsavkin
6c0dc2a874 feat(schematics): add a lint check to enforce module boundaries 2017-10-01 15:20:03 -04:00