()
| 133 | } |
| 134 | |
| 135 | function installStyles() { |
| 136 | log("Writing style files."); |
| 137 | mkdir("styles/base16"); |
| 138 | |
| 139 | glob.sync("**", { cwd: "./src/styles" }).forEach((file) => { |
| 140 | const stat = fss.statSync(`./src/styles/${file}`); |
| 141 | if (stat.isDirectory()) return; |
| 142 | |
| 143 | if (file.endsWith(".css")) { |
| 144 | installCleanCSS(`./src/styles/${file}`, `styles/${file}`, { minify: false }); |
| 145 | installCleanCSS(`./src/styles/${file}`, `styles/${file.replace(".css", ".min.css")}`, { minify: true }); |
| 146 | } else { |
| 147 | // images, backgrounds, etc |
| 148 | install(`./src/styles/${file}`, `styles/${file}`); |
| 149 | } |
| 150 | }); |
| 151 | } |
| 152 | |
| 153 | async function buildDistributable(language, options) { |
| 154 | const filename = `${language.name}.min.js`; |
no test coverage detected
searching dependent graphs…