[server] add session
This commit is contained in:
11
gulpfile.js
11
gulpfile.js
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user