My hobby site that I'm trying to migrate to Angular has a bunch of standalone JS code (ESM modules) in it that is just sat in the default public
assets directory, and as such it's automatically copied into the site structure by ng build
.
Where and how can I add TypeScript code (separate from any component) so that it's automatically transpiled into JS code and callable from both the old code and from new components?
The current structure looks like this:
+- src
| +- app/
| | +- components, etc
| +- index.html
| +- main.ts
+- public
+- js/
+- css/