But what happens, is the typescript plugin creates a /src/ts/ folder in both JS folders! The uglify plugin works fine and isn't the cause of this issue.
How do I stop this? It seems like the typescript plugin doesn't know where the paths are... and ends up creating a right mess of the directories and creating too many JS files
Gruntfile.js is in the /app folder.
Update: I've ended up using this plugin instead: https://www.npmjs.com/package/grunt-typescript-compile which doesn't have this problem, perhaps you could borrow some code that fix this issue in this plugin? Thanks :)
I have the following structure:
So my uncompiled JS and TS files sit inside the
/src
folder and then are compiled into the main/js
folder as follows:The typescript plugin should be compiling the TS files into JS files into the
/src/js
folder using:and then compile the newly compiled JS files in
/src/js
into the main/js
folder with:But what happens, is the typescript plugin creates a
/src/ts/
folder in both JS folders! The uglify plugin works fine and isn't the cause of this issue.So I end up with:
How do I stop this? It seems like the typescript plugin doesn't know where the paths are... and ends up creating a right mess of the directories and creating too many JS files
Gruntfile.js
is in the/app
folder.Update: I've ended up using this plugin instead: https://www.npmjs.com/package/grunt-typescript-compile which doesn't have this problem, perhaps you could borrow some code that fix this issue in this plugin? Thanks :)