MCPcopy
hub / github.com/highlightjs/highlight.js / installLanguages

Function installLanguages

tools/build_cdn.js:114–133  ·  view source on GitHub ↗
(languages, options)

Source from the content-addressed store, hash-verified

112}
113
114async function installLanguages(languages, options) {
115 log("Building language files.");
116 mkdir("languages");
117 if (options.esm) mkdir("es/languages");
118
119 await Promise.all(
120 languages.map(async(language) => {
121 await buildCDNLanguage(language, options);
122 process.stdout.write(".");
123 })
124 );
125 log("");
126
127 await Promise.all(
128 languages.filter((l) => l.third_party)
129 .map(async(lang) => await buildDistributable(lang, options))
130 );
131
132 log("");
133}
134
135function installStyles() {
136 log("Writing style files.");

Callers 1

buildCDNFunction · 0.85

Calls 4

mkdirFunction · 0.85
buildCDNLanguageFunction · 0.85
buildDistributableFunction · 0.85
logFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…