Updated Airbnb style guide used

The updated style guide made a number of new suggestions, so the config
and the code have been updated to reflect them.
This commit is contained in:
Oliver Hamlet
2016-01-31 08:30:31 +00:00
parent 13c79ab527
commit c0d992c387
9 changed files with 47 additions and 25 deletions
+13 -4
View File
@@ -41,7 +41,7 @@ function compress(sourcePath, destPath) {
'a',
'-r',
destPath,
'.' + path.sep + path.join(sourcePath, '*'),
path.join('.', sourcePath, '*'),
]);
}
@@ -192,13 +192,22 @@ vulcanize(rootPath);
const releasePaths = helpers.getAppReleasePaths(rootPath);
for (let i = 0; i < releasePaths.length; ++i) {
if (releasePaths[i].label) {
createAppArchive(rootPath, releasePaths[i].path, tempPath, path.join(rootPath, 'build', 'LOOT ' + gitDesc + ' (' + releasePaths[i].label + ').7z'));
const filename = `LOOT ${gitDesc} (${releasePaths[i].label}).7z`;
createAppArchive(rootPath,
releasePaths[i].path,
tempPath,
path.join(rootPath, 'build', filename));
} else {
createAppArchive(releasePaths[i].path, path.join(rootPath, 'build', 'LOOT ' + gitDesc + '.7z'));
createAppArchive(releasePaths[i].path,
path.join(rootPath, 'build', `LOOT ${gitDesc}.7z`));
}
}
const binaryPaths = helpers.getApiBinaryPaths(rootPath);
for (let i = 0; i < binaryPaths.length; ++i) {
createApiArchive(rootPath, binaryPaths[i].path, tempPath, path.join(rootPath, 'build', 'LOOT API ' + gitDesc + ' (' + binaryPaths[i].label + ').7z'));
const filename = `LOOT API ${gitDesc} (${binaryPaths[i].label}).7z`;
createApiArchive(rootPath,
binaryPaths[i].path,
tempPath,
path.join(rootPath, 'build', filename));
}
+1 -1
View File
@@ -40,4 +40,4 @@ helpers.getAppReleasePaths(rootPath).forEach((releasePath) => {
output: path.join(outputPath, 'index.html'),
input: path.join(rootPath, 'src', 'gui', 'html', 'index.html'),
}, runVulcanize);
})
});