12 Commits

Author SHA1 Message Date
Alan Agius
d1623c6b0c refactor(@schematics/angular): refactor some schematics to use the new JSON parser 2020-07-07 08:45:17 +02:00
Alan Agius
bede23226a feat(@schematics/angular): add solutions style tsconfig structure
In version 3.9, TypeScript introduced the concept of "Solutions Style" tsconfig to improve developer experience.

More info: https://devblogs.microsoft.com/typescript/announcing-typescript-3-9-rc/#solution-style-tsconfig

Closes #17493 and closes #8138
2020-05-20 12:12:33 -07:00
Keen Yee Liau
0662a8d774 build: g3 sync for packages/schematics and packages/angular
Fix all build errors in g3
2019-10-03 14:29:07 -07:00
Alan
3ecf29bb92 fix(@schematics/angular): support adding web-worker to pre version 8 applications
Fixes #14791
2019-06-17 11:05:50 -07:00
Alan
0d493cb2a2 refactor: update file filtering logic for webworker snippet Insertion 2019-05-21 09:03:39 -04:00
Santosh Yadav
e8b7cd92e5 fix(@schematics/angular): webworker snippet should not generate to module
Fixes #14467
2019-05-21 09:03:39 -04:00
Alan
f03ff807b4 refactor(@schematics/angular): create relativePathToWorkspaceRoot helper and replace usages 2019-04-19 10:55:02 -07:00
Alan
407d1d5b49 fix(@schematics/angular): generate tsconfig.worker.json outside of the src folder
This is to align with the folder structure of version 8, were tsconfigs are outside of the `src` folder

Also, this change remove the dud `tsconfig.json` in the `src` folder and instead we add the triple slash lib reference `/// <reference lib="webworker" />` for IDE support.
2019-04-18 11:47:22 -07:00
Alan Agius
e2a0ac1ec6 fix(@schematics/angular): add tsconfig.worker.json to list of tsconfigs to lint 2019-04-16 13:29:07 -07:00
Charles Lyding
5d199b23aa refactor(@schematics/angular): update webworker to use new workspace rules 2019-04-15 11:02:46 -07:00
cexbrayat
fcbe988d10 fix(@schematics/angular): properly log data received in web worker snippet
The generated snippet was:

    worker.onmessage = ({ data }) => {
      console.log('page got message: $\{data\}');
    };

which doesn't use a template string and so does not log `data`.
Fixes the generated snippet to be `console.log(`page got message: ${data}`);`.
Also adds a newline at the end of the web worker template to not fail the default TSLint rules if the schematic is used.
2019-04-12 12:20:25 -07:00
Filipe Silva
7ed4a60095 feat(@schematics/angular): add web worker schematics 2019-04-02 04:49:34 -07:00