()
| 163 | } |
| 164 | |
| 165 | function installDemoStyles() { |
| 166 | log("Writing style files."); |
| 167 | mkdir("demo/styles"); |
| 168 | mkdir("demo/styles/base16"); |
| 169 | |
| 170 | glob.sync("**", { cwd: "./src/styles" }).forEach((file) => { |
| 171 | const stat = fss.statSync(`./src/styles/${file}`); |
| 172 | if (stat.isDirectory()) return; |
| 173 | |
| 174 | if (file.endsWith(".css")) { |
| 175 | installCleanCSS(`./src/styles/${file}`, `demo/styles/${file}`); |
| 176 | } else { |
| 177 | // images, backgrounds, etc |
| 178 | install(`./src/styles/${file}`, `demo/styles/${file}`); |
| 179 | } |
| 180 | }); |
| 181 | } |
| 182 | |
| 183 | const builtInLanguagesPlugin = (languages) => ({ |
| 184 | name: "hljs-index", |
no test coverage detected
searching dependent graphs…