Merge pull request #1029 from mikeller/made_coding_style_consistent

Made coding style consistent, fixed registry error in 'package-lock.json'.
10.3.x-maintenance
Michael Keller 2018-05-20 18:44:36 +12:00 committed by GitHub
commit 52d964a1af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 88 additions and 18 deletions

View File

@ -255,20 +255,28 @@ function listPostBuildTasks(folder, done) {
var postBuildTasks = []; var postBuildTasks = [];
if (platforms.indexOf('linux32') != -1) { if (platforms.indexOf('linux32') != -1) {
postBuildTasks.push(function post_build_linux32(done){ return post_build('linux32', folder, done) }); postBuildTasks.push(function post_build_linux32(done) {
return post_build('linux32', folder, done);
});
} }
if (platforms.indexOf('linux64') != -1) { if (platforms.indexOf('linux64') != -1) {
postBuildTasks.push(function post_build_linux64(done){ return post_build('linux64', folder, done) }); postBuildTasks.push(function post_build_linux64(done) {
return post_build('linux64', folder, done);
});
} }
if (platforms.indexOf('armv7') != -1) { if (platforms.indexOf('armv7') != -1) {
postBuildTasks.push(function post_build_armv7(done){ return post_build('armv7', folder, done) }); postBuildTasks.push(function post_build_armv7(done) {
return post_build('armv7', folder, done);
});
} }
// We need to return at least one task, if not gulp will throw an error // We need to return at least one task, if not gulp will throw an error
if (postBuildTasks.length == 0) { if (postBuildTasks.length == 0) {
postBuildTasks.push(function post_build_none(done){ done() }); postBuildTasks.push(function post_build_none(done) {
done();
});
} }
return postBuildTasks; return postBuildTasks;
} }
@ -491,7 +499,9 @@ function release_chromeos() {
// Compress files from srcPath, using basePath, to outputFile in the RELEASE_DIR // Compress files from srcPath, using basePath, to outputFile in the RELEASE_DIR
function compressFiles(srcPath, basePath, outputFile, zipFolder) { function compressFiles(srcPath, basePath, outputFile, zipFolder) {
return gulp.src(srcPath, { base: basePath }) return gulp.src(srcPath, { base: basePath })
.pipe(rename(function(actualPath){ actualPath.dirname = path.join(zipFolder, actualPath.dirname) })) .pipe(rename(function(actualPath) {
actualPath.dirname = path.join(zipFolder, actualPath.dirname);
}))
.pipe(zip(outputFile)) .pipe(zip(outputFile))
.pipe(gulp.dest(RELEASE_DIR)); .pipe(gulp.dest(RELEASE_DIR));
} }
@ -640,19 +650,33 @@ function listReleaseTasks(done) {
} }
if (platforms.indexOf('linux64') !== -1) { if (platforms.indexOf('linux64') !== -1) {
releaseTasks.push(function release_linux64_zip(){ return release_zip('linux64') }); releaseTasks.push(function release_linux64_zip() {
releaseTasks.push(function release_linux64_deb(done){ return release_deb('linux64', done) }); return release_zip('linux64');
releaseTasks.push(function release_linux64_rpm(done){ return release_rpm('linux64', done) }); });
releaseTasks.push(function release_linux64_deb(done) {
return release_deb('linux64', done);
});
releaseTasks.push(function release_linux64_rpm(done) {
return release_rpm('linux64', done);
});
} }
if (platforms.indexOf('linux32') !== -1) { if (platforms.indexOf('linux32') !== -1) {
releaseTasks.push(function release_linux32_zip(){ return release_zip('linux32') }); releaseTasks.push(function release_linux32_zip() {
releaseTasks.push(function release_linux32_deb(done){ return release_deb('linux32', done) }); return release_zip('linux32');
releaseTasks.push(function release_linux32_rpm(done){ return release_rpm('linux32', done) }); });
releaseTasks.push(function release_linux32_deb(done) {
return release_deb('linux32', done);
});
releaseTasks.push(function release_linux32_rpm(done) {
return release_rpm('linux32', done);
});
} }
if (platforms.indexOf('armv7') !== -1) { if (platforms.indexOf('armv7') !== -1) {
releaseTasks.push(function release_armv7_zip(){ return release_zip('armv7') }); releaseTasks.push(function release_armv7_zip() {
return release_zip('armv7');
});
} }
if (platforms.indexOf('osx64') !== -1) { if (platforms.indexOf('osx64') !== -1) {
@ -660,11 +684,15 @@ function listReleaseTasks(done) {
} }
if (platforms.indexOf('win32') !== -1) { if (platforms.indexOf('win32') !== -1) {
releaseTasks.push(function release_win32(done){ return release_win('win32', done) }); releaseTasks.push(function release_win32(done) {
return release_win('win32', done);
});
} }
if (platforms.indexOf('win64') !== -1) { if (platforms.indexOf('win64') !== -1) {
releaseTasks.push(function release_win64(done){ return release_win('win64', done) }); releaseTasks.push(function release_win64(done) {
return release_win('win64', done);
});
} }
return releaseTasks; return releaseTasks;

50
package-lock.json generated
View File

@ -1661,6 +1661,26 @@
"readable-stream": "^2.0.4" "readable-stream": "^2.0.4"
} }
}, },
"follow-redirects": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.5.0.tgz",
"integrity": "sha512-fdrt472/9qQ6Kgjvb935ig6vJCuofpBUD14f9Vb+SLlm7xIe4Qva5gey8EKtv8lp7ahE1wilg3xL1znpVGtZIA==",
"dev": true,
"requires": {
"debug": "^3.1.0"
},
"dependencies": {
"debug": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz",
"integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==",
"dev": true,
"requires": {
"ms": "2.0.0"
}
}
}
},
"for-in": { "for-in": {
"version": "1.0.2", "version": "1.0.2",
"resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz", "resolved": "https://registry.npmjs.org/for-in/-/for-in-1.0.2.tgz",
@ -1715,9 +1735,9 @@
"dev": true "dev": true
}, },
"fs-extra": { "fs-extra": {
"version": "5.0.0", "version": "6.0.1",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz", "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-6.0.1.tgz",
"integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", "integrity": "sha512-GnyIkKhhzXZUWFCaJzvyDLEEgDkPfb4/TPvJCJVuS8MWZgoSsErf++QpiAlDnKFcqhRlm+tIOcencCjyJE6ZCA==",
"dev": true, "dev": true,
"requires": { "requires": {
"graceful-fs": "^4.1.2", "graceful-fs": "^4.1.2",
@ -2577,6 +2597,19 @@
"gulp-util": "^3.0.8", "gulp-util": "^3.0.8",
"through2": "^2.0.1", "through2": "^2.0.1",
"title-case": "^2.1.0" "title-case": "^2.1.0"
},
"dependencies": {
"fs-extra": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-5.0.0.tgz",
"integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==",
"dev": true,
"requires": {
"graceful-fs": "^4.1.2",
"jsonfile": "^4.0.0",
"universalify": "^0.1.0"
}
}
} }
}, },
"gulp-install": { "gulp-install": {
@ -3512,7 +3545,7 @@
}, },
"lru_map": { "lru_map": {
"version": "0.3.3", "version": "0.3.3",
"resolved": "http://npm.chc.tlocal/lru_map/-/lru_map-0.3.3.tgz", "resolved": "https://registry.npmjs.org/lru_map/-/lru_map-0.3.3.tgz",
"integrity": "sha1-tcg1G5Rky9dQM1p5ZQoOwOVhGN0=" "integrity": "sha1-tcg1G5Rky9dQM1p5ZQoOwOVhGN0="
}, },
"make-iterator": { "make-iterator": {
@ -5351,6 +5384,15 @@
"xtend": "^4.0.0" "xtend": "^4.0.0"
} }
}, },
"targz": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/targz/-/targz-1.0.1.tgz",
"integrity": "sha1-j3alI2lM3t+7XWCkB2/27uzFOY8=",
"dev": true,
"requires": {
"tar-fs": "^1.8.1"
}
},
"temp": { "temp": {
"version": "0.8.3", "version": "0.8.3",
"resolved": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz", "resolved": "https://registry.npmjs.org/temp/-/temp-0.8.3.tgz",