chore: miscellaneous fixes to docs, style, and tests (#6705)

* docs(icon): Better description for Icon.prototype.setVisible

  Also tweak description of getBlock.

* docs(blocks): Fix typo in description of BlockDefinition

* chore(tests): Factor out common goog:chromeOptions

* chore(build): Minor style fixes
This commit is contained in:
Christopher Allen
2022-12-14 23:48:12 +00:00
committed by GitHub
parent fccf8e436e
commit 3be3d4a6ff
5 changed files with 21 additions and 22 deletions

View File

@@ -168,7 +168,7 @@ function stripApacheLicense() {
// Closure Compiler preserves dozens of Apache licences in the Blockly code.
// Remove these if they belong to Google or MIT.
// MIT's permission to do this is logged in Blockly issue #2412.
return gulp.replace(new RegExp(licenseRegex, "g"), '\n\n\n\n');
return gulp.replace(new RegExp(licenseRegex, 'g'), '\n\n\n\n');
// Replace with the same number of lines so that source-maps are not affected.
}
@@ -387,7 +387,7 @@ function generateMessages(done) {
--input_file ${path.join('msg', 'messages.js')} \
--output_dir ${path.join('msg', 'json')} \
--quiet`;
execSync(jsToJsonCmd, { stdio: 'inherit' });
execSync(jsToJsonCmd, {stdio: 'inherit'});
console.log(`
Regenerated several flies in msg/json/. Now run
@@ -591,7 +591,7 @@ function getChunkOptions() {
/**
* RegExp that globally matches path.sep (i.e., "/" or "\").
*/
const pathSepRegExp = new RegExp(path.sep.replace(/\\/, '\\\\'), "g");
const pathSepRegExp = new RegExp(path.sep.replace(/\\/, '\\\\'), 'g');
/**
* Helper method for calling the Closure Compiler, establishing