remove unnecessary check of existing rd.json on build
This commit is contained in:
@@ -62,14 +62,8 @@ var buildTemplate = function () {
|
|||||||
process.chdir(paths.template);
|
process.chdir(paths.template);
|
||||||
return runCommand(packageManager + " build");
|
return runCommand(packageManager + " build");
|
||||||
};
|
};
|
||||||
if (fs.existsSync(paths.appRdJson)) {
|
buildTemplate().then(function () {
|
||||||
buildTemplate().then(function () {
|
fs.copySync(paths.templateBuild, paths.appBuild);
|
||||||
fs.copySync(paths.templateBuild, paths.appBuild);
|
fs.copySync(paths.appPublic, paths.appBuild);
|
||||||
fs.copySync(paths.appPublic, paths.appBuild);
|
console.log(paths.appBuild + " was created and can be deployed.");
|
||||||
console.log(paths.appBuild + " was created and can be deployed.");
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
console.error(paths.appRdJson + " does not exist. You have to generate it first.");
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ exports.showEmptyRings = false;
|
|||||||
var messages = {
|
var messages = {
|
||||||
"languages-and-frameworks": "Languages & Frameworks",
|
"languages-and-frameworks": "Languages & Frameworks",
|
||||||
"methods-and-patterns": "Methods & Patterns",
|
"methods-and-patterns": "Methods & Patterns",
|
||||||
"platforms-and-aoe-services": "Platforms and Operations",
|
"platforms-and-aoe-services": "Platforms & Operations",
|
||||||
tools: "Tools",
|
tools: "Tools",
|
||||||
};
|
};
|
||||||
var translate = function (key) { return messages[key] || "-"; };
|
var translate = function (key) { return messages[key] || "-"; };
|
||||||
|
|||||||
@@ -50,15 +50,8 @@ const buildTemplate = () => {
|
|||||||
return runCommand(`${packageManager} build`);
|
return runCommand(`${packageManager} build`);
|
||||||
};
|
};
|
||||||
|
|
||||||
if (fs.existsSync(paths.appRdJson)) {
|
buildTemplate().then(() => {
|
||||||
buildTemplate().then(() => {
|
fs.copySync(paths.templateBuild, paths.appBuild);
|
||||||
fs.copySync(paths.templateBuild, paths.appBuild);
|
fs.copySync(paths.appPublic, paths.appBuild);
|
||||||
fs.copySync(paths.appPublic, paths.appBuild);
|
console.log(`${paths.appBuild} was created and can be deployed.`);
|
||||||
console.log(`${paths.appBuild} was created and can be deployed.`);
|
});
|
||||||
});
|
|
||||||
} else {
|
|
||||||
console.error(
|
|
||||||
`${paths.appRdJson} does not exist. You have to generate it first.`
|
|
||||||
);
|
|
||||||
process.exit(1);
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user