tschaub / grunt-newer

Configure Grunt tasks to run with newer files only.
https://npmjs.org/package/grunt-newer
MIT License
945 stars 61 forks source link

Reference files not compiled when using grunt-ts #111

Open cancio opened 7 years ago

cancio commented 7 years ago

I am trying to use grunt-newer with grunt-ts, but I've found that grunt-newer does not monitor the references in the files being compiled. I've tried writing my own override function to go through those references but I am not having luck.

From my grunt-ts config:

            compile_test: {
                files: [
                    { src: ['<%= dir.source %>/**/*.ts'], dest: '<%= dir.target %>/compiled.js' }
                ]
            }

I then tried writing an override function, but found that when reading the TypeScript files, most of the time I only getting the comments in the file and nothing else (I am using grunt-concurrent and I don't know if that has anything to do with it).

I used this gist as a base: https://gist.github.com/madsleejensen/11082646

grunt 0.4.5, grunt-concurrent 2.3.1, grunt-newer 1.2.0