[gulp] added editor to default task

This commit is contained in:
2018-04-25 16:13:33 +03:00
parent 914a4dcf3b
commit 61852ab47e

View File

@@ -56,11 +56,13 @@ const config = new Project.Config({
* client * client
*/ */
const client = new Project( const client = new Project(
Project.BuildSystem.OPENFL,[ Project.BuildSystem.OPENFL,
[
Project.Platform.FLASH, Project.Platform.FLASH,
Project.Platform.HTML5, Project.Platform.HTML5,
Project.Platform.LINUX, Project.Platform.LINUX,
], config.branch({ ],
config.branch({
name: 'client', name: 'client',
sources: ['src/client/haxe'], sources: ['src/client/haxe'],
assets: ['src/client/resources'], assets: ['src/client/resources'],
@@ -72,13 +74,14 @@ const client = new Project(
* editor * editor
*/ */
const editor = new Project( const editor = new Project(
Project.BuildSystem.OPENFL, [ Project.BuildSystem.OPENFL,
Project.Platform.FLASH Project.Platform.FLASH,
], config.branch({ config.branch({
name: 'editor', name: 'editor',
sources: ['src/client/haxe', 'src/editor/haxe'], sources: ['src/client/haxe', 'src/editor/haxe'],
assets: ['src/client/resources'], assets: ['src/client/resources'],
main: 'ru.m.tankz.editor.Editor', main: 'ru.m.tankz.editor.Editor',
meta: {filename: 'editor'}
}) })
).bind(module, gulp); ).bind(module, gulp);
@@ -86,9 +89,9 @@ const editor = new Project(
* server * server
*/ */
const server = new Project( const server = new Project(
Project.BuildSystem.HAXE, [ Project.BuildSystem.HAXE,
Project.Platform.NEKO Project.Platform.NEKO,
], config.branch({ config.branch({
name: 'server', name: 'server',
sources: ['src/server/haxe'], sources: ['src/server/haxe'],
main: 'ru.m.tankz.server.Server', main: 'ru.m.tankz.server.Server',
@@ -105,6 +108,7 @@ module.exports.default = gulp.series(
module.exports['client:flash:build'], module.exports['client:flash:build'],
module.exports['client:html5:build'], module.exports['client:html5:build'],
module.exports['client:linux:build'], module.exports['client:linux:build'],
module.exports['editor:flash:build'],
module.exports['server:neko:build'], module.exports['server:neko:build'],
module.exports['client:flash:pack'], module.exports['client:flash:pack'],
module.exports['client:linux:pack'], module.exports['client:linux:pack'],