Last active
December 21, 2015 18:49
-
-
Save pspi/6350429 to your computer and use it in GitHub Desktop.
Using grunt-ts reference file as workaround to typescript command line source file ordering issues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Child extends Parent { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.loadNpmTasks("grunt-ts"); | |
grunt.initConfig({ | |
ts: { | |
default: { | |
src: ["*.ts"], | |
reference: "reference.ts", | |
out: 'out.js' | |
} | |
} | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Parent { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to manually edit the generated reference.ts to ensure that Parent comes before Child.
It is still useful because: