MCPcopy Create free account
hub / github.com/6pac/SlickGrid / buildAllSassFiles

Function buildAllSassFiles

scripts/builds.mjs:179–187  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177
178/** build all SASS (.scss) files, from "src/styles", to CSS (.css) */
179export async function buildAllSassFiles() {
180 try {
181 await spawnStreaming('npm', ['run', 'sass:build'], { cwd: projectRootPath });
182 console.log(`[${styleText('magenta', 'SASS')}] Full SASS build completed`);
183 } catch (err) {
184 // don't do anything when an error occured, this is to avoid watch mode to crash on errors
185 // console.error('SASS error: ', JSON.stringify(err));
186 }
187}
188
189/**
190 * build an input SASS (.scss) file to CSS (.css),

Callers 3

initFunction · 0.90
runProdBuildWithTypesFunction · 0.85
buildSassFileFunction · 0.85

Calls 1

spawnStreamingFunction · 0.90

Tested by

no test coverage detected