Skip to content
Permalink
Browse files

Handle path mappings in Nx monorepos (#300)

* Handle path mappings in Nx monorepos

* Rename the import cache to prevent shadowing
  • Loading branch information
mgechev committed Jan 13, 2020
1 parent 164ed04 commit f901574de994f2f851e3260cd24fb89fc22b9793
Showing with 18,390 additions and 39 deletions.
  1. +22 −18 packages/guess-parser/src/angular/index.ts
  2. +24 −4 packages/guess-parser/test/angular.spec.ts
  3. +21 −0 packages/guess-parser/test/fixtures/nx/LICENSE
  4. +3 −0 packages/guess-parser/test/fixtures/nx/README.md
  5. +411 −0 packages/guess-parser/test/fixtures/nx/angular.json
  6. +35 −0 ...s/guess-parser/test/fixtures/nx/apps/customers-ui-e2e/src/integration/customers.component.spec.ts
  7. +13 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/cypress.json
  8. +4 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/src/fixtures/example.json
  9. +10 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/src/integration/home.component.spec.ts
  10. +22 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/src/plugins/index.js
  11. +33 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/src/support/commands.ts
  12. +17 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/src/support/index.ts
  13. +8 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/tsconfig.e2e.json
  14. +7 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/tsconfig.json
  15. +1 −0 packages/guess-parser/test/fixtures/nx/apps/feat-home-e2e/tslint.json
  16. +11 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/cypress.json
  17. +4 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/fixtures/example.json
  18. +27 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/integration/app.spec.ts
  19. +34 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/integration/customers.spec.ts
  20. +10 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/integration/home.spec.ts
  21. +16 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/plugins/index.js
  22. +1 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/support/app.po.ts
  23. +42 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/support/commands.ts
  24. +17 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/src/support/index.ts
  25. +8 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/tsconfig.e2e.json
  26. +7 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app-e2e/tsconfig.json
  27. +12 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/browserslist
  28. +32 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/karma.conf.js
  29. +9 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/app/app.component.html
  30. 0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/app/app.component.scss
  31. +24 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/app/app.component.spec.ts
  32. +26 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/app/app.component.ts
  33. +43 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/app/app.module.ts
  34. 0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/assets/.gitkeep
  35. +452 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/assets/customers.json
  36. +3 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/environments/environment.prod.ts
  37. +16 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/environments/environment.ts
  38. BIN packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/favicon.ico
  39. +21 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/index.html
  40. +14 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/main.ts
  41. +69 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/polyfills.ts
  42. +10 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/styles.scss
  43. +20 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/src/test.ts
  44. +10 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/tsconfig.app.json
  45. +9 −0 packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/tsconfig.spec.json
  46. +13 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/cypress.json
  47. +4 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/src/fixtures/example.json
  48. +9 −0 ...r/test/fixtures/nx/apps/shared-components-e2e/src/integration/info-box/info-box.component.spec.ts
  49. +7 −0 ...st/fixtures/nx/apps/shared-components-e2e/src/integration/navigation/navigation.component.spec.ts
  50. +22 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/src/plugins/index.js
  51. +31 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/src/support/commands.ts
  52. +17 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/src/support/index.ts
  53. +8 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/tsconfig.e2e.json
  54. +7 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/tsconfig.json
  55. +1 −0 packages/guess-parser/test/fixtures/nx/apps/shared-components-e2e/tslint.json
  56. +2 −0 packages/guess-parser/test/fixtures/nx/docs/_config.yml
  57. +11 −0 packages/guess-parser/test/fixtures/nx/docs/index.md
  58. BIN packages/guess-parser/test/fixtures/nx/docs/scalable_angular_architecture_with_nx.pdf
  59. +3 −0 packages/guess-parser/test/fixtures/nx/index.js
  60. +10 −0 packages/guess-parser/test/fixtures/nx/jest.config.js
  61. +34 −0 packages/guess-parser/test/fixtures/nx/karma.conf.js
  62. 0 packages/guess-parser/test/fixtures/nx/libs/.gitkeep
  63. +7 −0 packages/guess-parser/test/fixtures/nx/libs/auth/README.md
  64. +9 −0 packages/guess-parser/test/fixtures/nx/libs/auth/jest.config.js
  65. +4 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/index.ts
  66. +7 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/auth-routing.module.ts
  67. +17 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/auth.guard.spec.ts
  68. +30 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/auth.guard.ts
  69. +14 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/auth.module.spec.ts
  70. +24 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/auth.module.ts
  71. +17 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/auth.service.spec.ts
  72. +40 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/auth.service.ts
  73. +20 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/login/login.component.html
  74. +14 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/login/login.component.scss
  75. +47 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/login/login.component.spec.ts
  76. +36 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/lib/login/login.component.ts
  77. +1 −0 packages/guess-parser/test/fixtures/nx/libs/auth/src/test-setup.ts
  78. +7 −0 packages/guess-parser/test/fixtures/nx/libs/auth/tsconfig.json
  79. +20 −0 packages/guess-parser/test/fixtures/nx/libs/auth/tsconfig.lib.json
  80. +11 −0 packages/guess-parser/test/fixtures/nx/libs/auth/tsconfig.spec.json
  81. +7 −0 packages/guess-parser/test/fixtures/nx/libs/auth/tslint.json
  82. +7 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/README.md
  83. +9 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/jest.config.js
  84. +2 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/src/index.ts
  85. +9 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/src/lib/customer.model.ts
  86. +17 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/src/lib/customer.service.spec.ts
  87. +24 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/src/lib/customer.service.ts
  88. +1 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/src/test-setup.ts
  89. +7 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/tsconfig.json
  90. +20 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/tsconfig.lib.json
  91. +11 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/tsconfig.spec.json
  92. +7 −0 packages/guess-parser/test/fixtures/nx/libs/customers/data/tslint.json
  93. +7 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/README.md
  94. +9 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/jest.config.js
  95. +1 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/index.ts
  96. +94 −0 ...guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customer-list/customer-list-datasource.ts
  97. +19 −0 ...uess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customer-list/customer-list.component.html
  98. +3 −0 ...uess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customer-list/customer-list.component.scss
  99. +46 −0 ...s-parser/test/fixtures/nx/libs/customers/ui/src/lib/customer-list/customer-list.component.spec.ts
  100. +42 −0 .../guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customer-list/customer-list.component.ts
  101. +22 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customers-routing.module.ts
  102. +14 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customers-ui.module.spec.ts
  103. +22 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customers-ui.module.ts
  104. +2 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customers.component.html
  105. 0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customers.component.scss
  106. +26 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customers.component.spec.ts
  107. +12 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/lib/customers.component.ts
  108. +1 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/src/test-setup.ts
  109. +7 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/tsconfig.json
  110. +20 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/tsconfig.lib.json
  111. +11 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/tsconfig.spec.json
  112. +7 −0 packages/guess-parser/test/fixtures/nx/libs/customers/ui/tslint.json
  113. +1 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/.storybook/addons.js
  114. +5 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/.storybook/config.js
  115. +8 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/.storybook/tsconfig.json
  116. +7 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/.storybook/webpack.config.js
  117. +7 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/README.md
  118. +9 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/jest.config.js
  119. +1 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/index.ts
  120. +14 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/lib/home-ui.module.spec.ts
  121. +14 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/lib/home-ui.module.ts
  122. +7 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/lib/home.component.html
  123. 0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/lib/home.component.scss
  124. +33 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/lib/home.component.spec.ts
  125. +43 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/lib/home.component.stories.ts
  126. +24 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/lib/home.component.ts
  127. +1 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/src/test-setup.ts
  128. +7 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/tsconfig.json
  129. +27 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/tsconfig.lib.json
  130. +11 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/tsconfig.spec.json
  131. +7 −0 packages/guess-parser/test/fixtures/nx/libs/home/ui/tslint.json
  132. +1 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/.storybook/addons.js
  133. +5 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/.storybook/config.js
  134. +8 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/.storybook/preview-head.html
  135. +8 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/.storybook/tsconfig.json
  136. +7 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/.storybook/webpack.config.js
  137. +7 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/README.md
  138. +9 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/jest.config.js
  139. +1 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/src/index.ts
  140. +6 −0 ...ges/guess-parser/test/fixtures/nx/libs/shared/components/src/lib/info-box/info-box.component.html
  141. +9 −0 ...ges/guess-parser/test/fixtures/nx/libs/shared/components/src/lib/info-box/info-box.component.scss
  142. +27 −0 .../guess-parser/test/fixtures/nx/libs/shared/components/src/lib/info-box/info-box.component.spec.ts
  143. +20 −0 ...ess-parser/test/fixtures/nx/libs/shared/components/src/lib/info-box/info-box.component.stories.ts
  144. +16 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/src/lib/info-box/info-box.component.ts
  145. +37 −0 ...guess-parser/test/fixtures/nx/libs/shared/components/src/lib/navigation/navigation.component.html
  146. +29 −0 ...guess-parser/test/fixtures/nx/libs/shared/components/src/lib/navigation/navigation.component.scss
  147. +41 −0 ...ss-parser/test/fixtures/nx/libs/shared/components/src/lib/navigation/navigation.component.spec.ts
  148. +16 −0 ...parser/test/fixtures/nx/libs/shared/components/src/lib/navigation/navigation.component.stories.ts
  149. +20 −0 ...s/guess-parser/test/fixtures/nx/libs/shared/components/src/lib/navigation/navigation.component.ts
  150. +14 −0 ...ges/guess-parser/test/fixtures/nx/libs/shared/components/src/lib/shared-components.module.spec.ts
  151. +29 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/src/lib/shared-components.module.ts
  152. +1 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/src/test-setup.ts
  153. +7 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/tsconfig.json
  154. +27 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/tsconfig.lib.json
  155. +11 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/tsconfig.spec.json
  156. +7 −0 packages/guess-parser/test/fixtures/nx/libs/shared/components/tslint.json
  157. +60 −0 packages/guess-parser/test/fixtures/nx/nx.json
  158. +90 −0 packages/guess-parser/test/fixtures/nx/package.json
  159. +4 −0 packages/guess-parser/test/fixtures/nx/scully.config.js
  160. 0 packages/guess-parser/test/fixtures/nx/tools/schematics/.gitkeep
  161. +11 −0 packages/guess-parser/test/fixtures/nx/tools/tsconfig.tools.json
  162. +29 −0 packages/guess-parser/test/fixtures/nx/tsconfig.json
  163. +106 −0 packages/guess-parser/test/fixtures/nx/tslint.json
  164. +14,928 −0 packages/guess-parser/test/fixtures/nx/yarn.lock
  165. +5 −17 packages/guess-webpack/test/fixtures/angular/package-lock.json
@@ -21,20 +21,20 @@ const imports = (
child: string,
program: ts.Program,
host: ts.CompilerHost,
cache: {[parent: string]: {[child: string]: boolean}},
importCache: {[parent: string]: {[child: string]: boolean}},
visited: { [key: string]: boolean } = {}
) => {
if (cache[parent] && cache[parent][child] !== undefined) {
return cache[parent][child];
if (importCache[parent] && importCache[parent][child] !== undefined) {
return importCache[parent][child];
}
cache[parent] = cache[parent] || {};
importCache[parent] = importCache[parent] || {};
const sf = program.getSourceFile(parent);
if (!sf) {
cache[parent][child] = false;
importCache[parent][child] = false;
return false;
}
if (visited[parent]) {
cache[parent][child] = false;
importCache[parent][child] = false;
return false;
}
visited[parent] = true;
@@ -58,10 +58,10 @@ const imports = (
}
// We don't want to dig into node_modules to find an entry point.
if (!found && existsSync(fullPath) && !fullPath.includes('node_modules')) {
found = imports(fullPath, child, program, host, cache, visited);
found = imports(fullPath, child, program, host, importCache, visited);
}
});
cache[parent][child] = found;
importCache[parent][child] = found;
return found;
};

@@ -194,13 +194,15 @@ const readChildren = (
return null;
};

const getModulePathFromRoute = (parentPath: string, loadChildren: string) => {
const childModule = loadChildren.split('#')[0] + '.ts';
if (loadChildren.startsWith('.')) {
return join(dirname(parentPath), childModule);
const getModulePathFromRoute = (parentPath: string, loadChildren: string, program: ts.Program, host: ts.CompilerHost) => {
const childModule = loadChildren.split('#')[0];
const { resolvedModule } = ts.resolveModuleName(childModule, parentPath, program.getCompilerOptions(), host);
if (resolvedModule) {
return resolvedModule.resolvedFileName;
}
const childModuleFile = childModule + '.ts';
const parentSegments = dirname(parentPath).split(sep);
const childSegments = childModule.split('/');
const childSegments = childModuleFile.split('/');
const max = Math.min(parentSegments.length, childSegments.length);
let maxCommon = 0;
for (let i = 1; i < max; i += 1) {
@@ -218,7 +220,7 @@ const getModulePathFromRoute = (parentPath: string, loadChildren: string) => {
}
return join(
dirname(parentPath),
childModule
childModuleFile
.split('/')
.slice(maxCommon, childSegments.length)
.join('/')
@@ -269,7 +271,7 @@ const getRoute = (
program,
host
);
const module = getModulePathFromRoute(parent, loadChildren);
const module = getModulePathFromRoute(parent, loadChildren, program, host);
return {
...route,
module
@@ -422,15 +424,16 @@ const findMainModule = (program: ts.Program) => {

const getLazyEntryPoints = (
node: ts.ObjectLiteralExpression,
program: ts.Program
program: ts.Program,
host: ts.CompilerHost
) => {
const value = readLoadChildren(node, program.getTypeChecker());
if (!value) {
return null;
}

const parent = resolve(node.getSourceFile().fileName);
const module = getModulePathFromRoute(parent, value);
const module = getModulePathFromRoute(parent, value, program, host);
return module;
};

@@ -492,7 +495,8 @@ export const parseRoutes = (
visitNode.bind(null, s, (n: ts.Node) => {
const path = getLazyEntryPoints(
n as ts.ObjectLiteralExpression,
program
program,
host
);
if (!path) {
return;
@@ -1,6 +1,6 @@
import { parseRoutes } from '../src/angular';

const fixtureRoutes = new Set<string>([
const fixtureRoutes = new Set([
'/foo',
'/foo/baz',
'/foo/index',
@@ -11,26 +11,46 @@ const fixtureRoutes = new Set<string>([
'/bar-simple'
]);

const nxRoutes = new Set([
'/login',
'/home',
'/customers/list',
'/customers'
]);

describe('Angular parser', () => {
it('should parse an app', () => {
expect(() =>
parseRoutes('packages/guess-parser/test/fixtures/angular/src/tsconfig.app.json')
parseRoutes(
'packages/guess-parser/test/fixtures/angular/src/tsconfig.app.json'
)
).not.toThrow();
});

it('should produce routes', () => {
const routes = parseRoutes('packages/guess-parser/test/fixtures/angular/src/tsconfig.app.json');
const routes = parseRoutes(
'packages/guess-parser/test/fixtures/angular/src/tsconfig.app.json'
);
expect(routes instanceof Array).toBeTruthy();
const allRoutes = new Set(routes.map(r => r.path));
[...allRoutes].forEach(r => expect(fixtureRoutes).toContain(r));
expect(allRoutes.size).toEqual(fixtureRoutes.size);
});

it('should produce routes with proper paths', () => {
const routes = parseRoutes('packages/guess-parser/test/fixtures/angular/src/tsconfig.app.json');
const routes = parseRoutes(
'packages/guess-parser/test/fixtures/angular/src/tsconfig.app.json'
);
const route = routes.find(r => r.path === '/foo');
expect(route!.modulePath.endsWith('foo.module.ts')).toBeTruthy();
expect(route!.lazy).toBeTruthy();
expect(route!.parentModulePath!.endsWith('app.module.ts')).toBeTruthy();
});

it('should work with nx monorepo with path mappings', () => {
const routes = parseRoutes(
'packages/guess-parser/test/fixtures/nx/apps/ng-cli-app/tsconfig.app.json'
).map(r => r.path);
[...routes].forEach(r => expect(nxRoutes).toContain(r));
});
});
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Christian Janz

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
@@ -0,0 +1,3 @@
# Angular monorepo example using Nx

This app shows the process of refactoring an Angular app to a monorepo with the help of [Nx](https://nx.dev/angular)

0 comments on commit f901574

Please sign in to comment.
You can’t perform that action at this time.