MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / writeJavaScript

Function writeJavaScript

services.ts:1177–1199  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1175 return allItems.join("");
1176 },
1177 writeJavaScript = function node_apps_build_libraries_modifyFile_read_writeJavaScript():void {
1178 if (flag.documentation === true && flag.html === true && flag.webtool === true) {
1179 node.fs.writeFile(`${js}prettydiff.js`, `${complete}module.exports=prettydiff;return prettydiff;}());`, function node_apps_build_libraries_modifyFile_read_write_readParser_writeBrowser(erbr:Error) {
1180 if (erbr !== null && erbr.toString() !== "") {
1181 apps.errout([erbr.toString()]);
1182 return;
1183 }
1184 node.fs.writeFile(`${js}browser.js`, `${complete}window.prettydiff=prettydiff;return prettydiff;}());`, function node_apps_build_libraries_modifyFile_read_write_readParser_writeBrowser_writePrettydiff(erth:Error) {
1185 if (erth !== null && erth.toString() !== "") {
1186 apps.errout([erth.toString()]);
1187 return;
1188 }
1189 node.fs.writeFile(`${js}webtool.js`, webtool, function node_apps_build_libraries_modifyFile_read_write_readParser_writeBrowser_writePrettydiff_writeWebtool(erwb:Error) {
1190 if (erwb !== null && erwb.toString() !== "") {
1191 apps.errout([erwb.toString()]);
1192 return;
1193 }
1194 next(`${text.green}Application files built and written.${text.none}`);
1195 });
1196 });
1197 });
1198 }
1199 };
1200 if (err !== null && err.toString() !== "") {
1201 apps.errout([err.toString()]);
1202 return;

Callers 1

modifyFileFunction · 0.85

Calls 1

nextFunction · 0.85

Tested by

no test coverage detected