[server] add session

This commit is contained in:
2020-03-25 21:05:15 +03:00
parent 8e3b9e2830
commit 8da310a6e5
16 changed files with 609 additions and 12 deletions

View File

@@ -23,6 +23,14 @@ exports.clean = function clean() {
return gulp.src('target/*', {read: false}).pipe(gulpClean());
};
exports.generate = function generate() {
return new Haxe().haxelib(['run', 'protohx', 'generate', 'protohx.json']).then(({stdout}) => {
if (stdout.indexOf('FAIL') > -1) {
throw stdout;
}
});
};
const config = new Project.Config({
meta: {
title: 'Puzzle\'z',
@@ -52,6 +60,7 @@ const app = new Project(
config.branch({
name: 'app',
sources: [
'src-gen/haxe',
'src/common/haxe',
'src/app/haxe',
],
@@ -79,6 +88,7 @@ const server = new Project(
config.branch({
name: 'server',
sources: [
'src-gen/haxe',
'src/common/haxe',
'src/server/haxe',
],
@@ -90,6 +100,7 @@ module.exports.publish = publish(packageInfo.name, packageInfo.version, Config.P
const defaultSeries = [
exports.clean,
exports.generate,
module.exports['app:flash:build'],
module.exports['app:flash:html'],
module.exports['app:html5:build'],