Open Estebitus opened 8 years ago
If you want to use the reference feature of grunt-ts, the reference file must be included in the compilation src list. It appears you may also be missing some stars in your globs. Run grunt with the with --verbose option and it will show what tsc command-line is being used.
the stars must be a problem with the copy paste, but there are here.
I have run it with --verbose but the return is the same (with more explanations but the same at least).
I need to exclude all the files *.d.ts because i don't need to transpile it and there is the problem.
Hi @Estebitus - sorry it took so long to get back to you. Have you figured out this issue? If not, I would like to help you but I don't think I can with the information you've provided. I need the exact text of the ts section in your gruntfile. I know it's using CoffeeScript - is there a way you can provide the transpiled Gruntfile.js or is Grunt expanding it directly? In either case, please paste in the text in a block using the "insert code" button in the GitHub button bar (or else you can use three back-ticks to mark the start and end of a code block). Thanks.
FYI: Warning: Task "ts" not found. Use --force to continue.
Aborted due to warnings.
ts : {
default: {
src : ['<%= files.js %>'],
options : {
sourceMap : true
} // prestep ts compile and then do concat
}
},
I try to ignore the typings folder in my grunt coffee script, but when i execute the task it seems that is not excluding it.
This is my script
ts: default: src: ["*/.ts", "!typings/*/_.ts", "!node_modules/_/.ts", "!bower_components//.ts"] reference: "typings/reference.ts"
But it return me this. (This is the final part)
typings/main/ambient/lodash/index.d.ts(15824,1): error TS1128: Declaration or statement expected.
Aborted due to warnings.
Can somebody help me please?