Skip to content
Permalink
Browse files

Update the Angular parser to support dynamic imports (#93)

* refactor: angular parser

* build: fix dependencies

* refactor: change angular parser

* refactor: update main discovery

* refactor: update ng parser

* refactor: passing tests

* feat: add dynamic import support

* feat: add partial evaluation

* build: update dependencies

* build: update package-lock.json files

* build: fix compile-time error

* test: fix compile-time errors

* build: fix compile-time errors

* feat: add partial evaluation to simple expressions

* style: drop outdated comment
  • Loading branch information...
mgechev committed May 14, 2019
1 parent 404ddb6 commit 54023892a9b377c8bd87e9396750a53805300910
Showing with 8,665 additions and 18,926 deletions.
  1. +5 −1 infra/install.ts
  2. +5,652 −7,733 package-lock.json
  3. +9 −5 package.json
  4. +230 −319 packages/guess-ga/package-lock.json
  5. +1 −1 packages/guess-ga/package.json
  6. +1,040 −2,096 packages/guess-parser/package-lock.json
  7. +3 −9 packages/guess-parser/package.json
  8. +318 −187 packages/guess-parser/src/angular/index.ts
  9. +4 −2 packages/guess-parser/src/utils.ts
  10. +21 −4 packages/guess-parser/test/angular.spec.ts
  11. +274 −181 packages/guess-parser/test/fixtures/angular/package-lock.json
  12. +3 −2 packages/guess-parser/test/fixtures/angular/src/app/app-routing.module.ts
  13. +20 −0 packages/guess-parser/test/fixtures/angular/src/app/foo/baz/baz-routing.module.ts
  14. +7 −0 packages/guess-parser/test/fixtures/angular/src/app/foo/baz/baz.component.ts
  15. +10 −0 packages/guess-parser/test/fixtures/angular/src/app/foo/baz/baz.module.ts
  16. +5 −0 packages/guess-parser/test/fixtures/angular/src/app/foo/foo-routing.module.ts
  17. +26 −7 packages/guess-parser/test/parser.spec.ts
  18. +970 −1,722 packages/guess-webpack/package-lock.json
  19. +1 −1 packages/guess-webpack/package.json
  20. +9 −4 packages/guess-webpack/src/runtime/runtime.ts
  21. +14 −10 packages/guess-webpack/test/e2e/delegate.spec.ts
  22. +8 −8 packages/guess-webpack/test/e2e/next.spec.ts
  23. +17 −11 packages/guess-webpack/test/e2e/prefetch.spec.ts
  24. +17 −3 packages/guess-webpack/test/fixtures/next/package-lock.json
  25. +1 −0 packages/guess-webpack/test/fixtures/next/package.json
  26. +0 −1 tslint.json
  27. +0 −6,619 yarn.lock
@@ -2,4 +2,8 @@ import { join } from 'path';
import { execSync } from 'child_process';

const PackagesDir = join(process.cwd(), 'packages');
console.log(execSync(`cd ${join(PackagesDir, 'guess-parser', 'test', 'fixtures', 'angular')} && npm i`).toString());
console.log(
execSync(
`cd ${join(PackagesDir, 'guess-parser', 'test', 'fixtures', 'angular')} && npm i`
).toString()
);

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -37,20 +37,24 @@
"blund": "^1.0.0",
"chalk": "^2.4.1",
"copy-webpack-plugin": "^4.5.1",
"jest": "^22.4.4",
"jest": "^24.8.0",
"jest-puppeteer": "^3.0.1",
"lerna": "^2.11.0",
"meow": "^4.0.0",
"prompt-confirm": "^1.2.0",
"puppeteer": "^1.7.0",
"raw-loader": "^0.5.1",
"static-server": "^2.2.1",
"ts-jest": "^22.4.1",
"ts-jest": "^24.0.2",
"ts-loader": "^4.3.1",
"ts-node": "^6.0.2",
"tslint": "^5.9.1",
"typescript": "^2.9.0",
"webpack": "^4.7.0",
"webpack-cli": "^2.0.11"
"typescript": "^3.4.5",
"webpack": "^4.19.0",
"webpack-cli": "^3.0.0"
},
"dependencies": {
"flat-cache": "^2.0.1",
"googleapis": "^39.2.0"
}
}
Oops, something went wrong.

0 comments on commit 5402389

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