parent
d3a40e726e
commit
368cc29d48
@ -14,7 +14,7 @@ module.exports = function(gulp, plugins, config) {
|
|||||||
if (!webFolders.length) {
|
if (!webFolders.length) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var folder = getParentFolder(webFolders.shift());
|
var folder = path.resolve(path.join(webFolders.shift(), '..'));
|
||||||
var destFolder = path.resolve(path.join(config.dest, path.basename(folder)));
|
var destFolder = path.resolve(path.join(config.dest, path.basename(folder)));
|
||||||
return util.processToPromise(spawn(config.command, ['build', '-o', destFolder], {
|
return util.processToPromise(spawn(config.command, ['build', '-o', destFolder], {
|
||||||
stdio: 'inherit',
|
stdio: 'inherit',
|
||||||
@ -26,12 +26,6 @@ module.exports = function(gulp, plugins, config) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
function getParentFolder(folder) {
|
|
||||||
var parts = folder.split(path.sep);
|
|
||||||
parts.pop();
|
|
||||||
return parts.join(path.sep);
|
|
||||||
}
|
|
||||||
|
|
||||||
function replaceDartWithJsScripts(gulp, folder) {
|
function replaceDartWithJsScripts(gulp, folder) {
|
||||||
return util.streamToPromise(gulp.src(path.join(folder, '**/*.html'))
|
return util.streamToPromise(gulp.src(path.join(folder, '**/*.html'))
|
||||||
.pipe(through2.obj(function(file, enc, done) {
|
.pipe(through2.obj(function(file, enc, done) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user