[proto] update message names
This commit is contained in:
19
gulpfile.js
19
gulpfile.js
@@ -16,7 +16,11 @@ exports.clean = function clean() {
|
||||
};
|
||||
|
||||
exports.generate = function generate() {
|
||||
return new Haxe().haxelib(['run', 'protohx', 'generate', 'protohx.json']);
|
||||
return new Haxe().haxelib(['run', 'protohx', 'generate', 'protohx.json']).then(({stdout}) => {
|
||||
if (stdout.indexOf('FAIL') > -1) {
|
||||
throw stdout;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -40,10 +44,11 @@ const config = new Project.Config({
|
||||
'src-gen/haxe',
|
||||
],
|
||||
assets: [
|
||||
'src/client/resources'
|
||||
'src/common/resources'
|
||||
],
|
||||
macros: [
|
||||
`CompilationOption.set('build','${dateformat(new Date(), 'yyyy-mm-dd HH:MM:ss')}')`
|
||||
'yield.parser.Parser.auto()', // ToDo: bug with extraParams.hxml in yield library
|
||||
`CompilationOption.set('build','${dateformat(new Date(), 'yyyy-mm-dd HH:MM:ss')}')`,
|
||||
]
|
||||
});
|
||||
|
||||
@@ -62,9 +67,10 @@ const client = new Project(
|
||||
name: 'client',
|
||||
sources: ['src/client/haxe'],
|
||||
main: 'ru.m.tankz.Client',
|
||||
assets: ['src/client/resources'],
|
||||
}),
|
||||
module.exports.generate
|
||||
).bind(module);
|
||||
).bind(module, gulp);
|
||||
|
||||
/**
|
||||
* editor
|
||||
@@ -76,9 +82,10 @@ const editor = new Project(
|
||||
name: 'editor',
|
||||
sources: ['src/client/haxe', 'src/editor/haxe'],
|
||||
main: 'ru.m.tankz.editor.Editor',
|
||||
assets: ['src/client/resources'],
|
||||
meta: {filename: 'editor'}
|
||||
})
|
||||
).bind(module);
|
||||
).bind(module, gulp);
|
||||
|
||||
/**
|
||||
* server
|
||||
@@ -91,7 +98,7 @@ const server = new Project(
|
||||
sources: ['src/server/haxe'],
|
||||
main: 'ru.m.tankz.server.Server',
|
||||
})
|
||||
).bind(module);
|
||||
).bind(module, gulp);
|
||||
|
||||
/**
|
||||
* default
|
||||
|
||||
Reference in New Issue
Block a user