Closed pradosh987 closed 4 years ago
@pradosh987
So this project is aligned with ideas and process setup created for this project:
https://github.com/sahat/hackathon-starter
So the client code in the src/public
just gets transpiled using default tsconfig.json
and tsc
compiler into the relevant dist
directory. No additional transpilation or module resolving, etc.
The static assets from 'src/public/js/lib/are copied, the
.tsfrom
src/public/jsare transpiled, you should see the
main.jsand
main.js.mapthere after running
npm run build`
@peterblazejewicz Thanks for helpful reply. I ended up using parceljs to bundle js for client side code
Cool, so can we close that one?
While the starter project works great, I am little confused about importing jQuery or other npm libraries into
main.ts
required for browser. Do we need Webpack for it so that it transpires TS files and moves it to public directory? Right nowmain.ts
is insrc
folder and not copied to public directory.