[haxe] change build dir from tmp to current
This commit is contained in:
@@ -81,10 +81,16 @@ class Haxe extends Sdk {
|
||||
return exec('.', [this.haxelibBin].concat(args).join(' '));
|
||||
}
|
||||
|
||||
resolveBuildDir(config) {
|
||||
//const baseDir = os.tmpdir();
|
||||
const baseDir = process.cwd();
|
||||
return path.join(baseDir, 'build', config.name);
|
||||
}
|
||||
|
||||
openfl(command, platform, config, debug=false) {
|
||||
this.log.i('_openfl_ _build_ *%s*', platform);
|
||||
this.activate();
|
||||
const buildDir = path.join(os.tmpdir(), 'build', config.name);
|
||||
const buildDir = this.resolveBuildDir(config);
|
||||
fse.ensureDirSync(buildDir);
|
||||
|
||||
const projectTemplate = template(fs.readFileSync(path.resolve(__dirname, '..', 'template/project.xml')));
|
||||
@@ -116,7 +122,7 @@ class Haxe extends Sdk {
|
||||
build(platform, config, debug=false) {
|
||||
this.log.i('_build_ *%s*', platform);
|
||||
this.activate();
|
||||
const buildDir = path.join(os.tmpdir(), 'build', config.name);
|
||||
const buildDir = this.resolveBuildDir(config);
|
||||
fse.ensureDirSync(buildDir);
|
||||
|
||||
const projectTemplate = template(fs.readFileSync(path.resolve(__dirname, '..', 'template/project.hxml')));
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "gulp-haxetool",
|
||||
"version": "0.1.1",
|
||||
"version": "0.1.2",
|
||||
"description": "HaXe Tool for Gulp",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
|
||||
Reference in New Issue
Block a user