I've chosen to use TodoMvc Typescript-Angular as the starting point for my AngularJS project. Everything is working smoothly so far. Here's a breakdown of what I can do:
- To manage all dependencies, I simply run
npm install
ornpm update
based on the definitions inpackage.json
. - Compiling TypeScript code into JavaScript involves running
npm run compile
, which translates to
.tsc --sourcemap --out js/Application.js js/_all.ts
Now, I'm using WebStorm and wondering how I can create a tsconfig.json
that mirrors the above compilation command. Is there a way to generate it based on the setup specified in package.json while also considering things like TypeScript version?
When I run tsc --init
, it generates a generic tsconfig.json
file, but it doesn't match
tsc --sourcemap --out js/Application.js js/_all.ts
. Any advice on aligning the two?