up version
This commit is contained in:
@@ -29,9 +29,9 @@ exports.generate = function generate() {
|
||||
|
||||
exports.levels = function levels() {
|
||||
return gulp.src("./src/common/level/*").pipe(foreach(function (stream, file) {
|
||||
const type = file.path.substr(file.path.lastIndexOf("/") + 1);
|
||||
const type = file.path.substr(file.path.lastIndexOf(path.sep) + 1);
|
||||
gulp.src("./src/common/level/" + type + "/*").pipe(foreach(function (stream, file) {
|
||||
const name = file.path.substr(file.path.lastIndexOf("/") + 1);
|
||||
const name = file.path.substr(file.path.lastIndexOf(path.sep) + 1);
|
||||
gulp.src("./src/common/level/" + type + "/" + name + "/*")
|
||||
.pipe(zip(`${type}_${name}.zip`))
|
||||
.pipe(gulp.dest("./target/levels"));
|
||||
@@ -109,7 +109,6 @@ const client = new Project(
|
||||
`CompilationOption.set('port',${port})`,
|
||||
]
|
||||
}),
|
||||
module.exports.generate
|
||||
).bind(module, gulp);
|
||||
|
||||
/**
|
||||
@@ -152,7 +151,6 @@ const server = new Project(
|
||||
sources: ['src/server/haxe'],
|
||||
main: 'ru.m.tankz.server.Server',
|
||||
}),
|
||||
module.exports.generate
|
||||
).bind(module, gulp);
|
||||
|
||||
/**
|
||||
@@ -188,6 +186,7 @@ exports.publish = function publish() {
|
||||
module.exports.default = gulp.series(
|
||||
exports.clean,
|
||||
exports.levels,
|
||||
exports.generate,
|
||||
module.exports['client:flash:build'],
|
||||
module.exports['client:flash:html'],
|
||||
module.exports['client:html5:build'],
|
||||
|
||||
Reference in New Issue
Block a user