This file contains hidden or 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
| const version = process.argv[3]; | |
| const edition = process.argv[4] === 'oss' ? 'oss' : 'ee'; | |
| const [major, minor] = version.split('.'); | |
| const jarName = `metabase-${edition}-${version}.jar`; | |
| const fileExists = fs.existsSync(jarName); | |
| if (!fileExists) { |
This file contains hidden or 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
| import haxe.macro.Expr; | |
| class FTW | |
| { | |
| public static function build() | |
| { | |
| return haxe.macro.Context.getBuildFields().map(transformField); | |
| } | |
| static function transformField(field:Field) |
This file contains hidden or 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
| import haxe.macro.Expr; | |
| class Func | |
| { | |
| public static function each<T>(it:Iterable<T>, cb:T -> Void) | |
| { | |
| for (i in it) cb(i); | |
| } | |
| public static function every<T>(it:Iterable<T>, cb:T -> Bool):Bool |
This file contains hidden or 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
| package example.inlineMeta; | |
| import haxe.macro.Printer; | |
| import haxe.macro.Type; | |
| import haxe.macro.Expr; | |
| import haxe.macro.Context; | |
| /** | |
| * ... | |
| * @author Skial Bainn |