Commit bfdaf943 authored by wildfirecode's avatar wildfirecode

1

parent 3a93f831
......@@ -78,8 +78,25 @@ let buildTS = opts => {
});
});
};
let buildEXML = opts => {
if (!opts.BUILD_SKIN) {
console.error('请输入需要构建的项目名称\n');
return false;
}
const dist = path.join(process.cwd(), opts.BUILD_SKIN, 'bin-release')
rm(dist, err => {
if (err) throw err;
let webpackConfig = prodConfig(opts);
// 构建
shelljs.cd(opts.BUILD_SKIN);
shelljs.exec('egret publish exml && node publish.js');
shelljs.cd('..');
});
};
module.exports = {
build: build,
buildTS: buildTS
buildTS: buildTS,
buildEXML: buildEXML
};
......@@ -47,7 +47,10 @@ class DuibaGameBuild {
this.slicePath(skin);
buildObj.buildTS(this.opts);
}
buildProdEXML(skin) {
this.slicePath(skin);
buildObj.buildEXML(this.opts);
}
/**
* 备份 把skins/下的所有文件复制到backup/下
......
......@@ -17,5 +17,5 @@
"co": "^4.6.0",
"progress": "^2.0.0"
},
"version": "0.0.5"
"version": "0.0.7"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment