Closed groege closed 7 years ago
yeah same problem here, es5 creates files just fine but es6 does not generate any file
In my case it does create files but the new "js" file still has classes,...
That should be fine as ES6 really supports classes
Currently I use a custom grunt task for that:
grunt.registerTask('typescript', 'compile app and tests', function() {
var done = this.async();
grunt.util.spawn({
grunt: false,
cmd: "tsc",
args: ["-p", "./src/server", "-sourcemap"],
opts: {
stdio: "inherit"
}
}, function(err, result, stderr) {
grunt.log.ok('successfully transpiled typescript!');
done();
});
});
I know it's been a while, sorry. I think we can close this ;)
If i compile with "target: 'es5'" everything works fine. But if i switch to es6, my ts files are not being compiled, even though files are generate. Can you help me with this? I wanted to encapsule my whole project into a module so i wont interfere with any other js file that may be uses as well. Thanks.