mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
feat: separate prettier from eslint
This commit is contained in:
committed by
Thea Schöbl
parent
939fb6ef0f
commit
a88d000ccd
@@ -77,9 +77,7 @@ async function minifyIconFont() {
|
||||
glyphs.push(config.codePoints[icon]);
|
||||
} else {
|
||||
console.log();
|
||||
console.error(
|
||||
`${icon} code point could not be determined. Add it to config.codePoints.`,
|
||||
);
|
||||
console.error(`${icon} code point could not be determined. Add it to config.codePoints.`);
|
||||
process.exit(-1);
|
||||
}
|
||||
}
|
||||
@@ -91,15 +89,7 @@ async function minifyIconFont() {
|
||||
const pythonPath = `"${await run('npm config get python')}"`;
|
||||
console.log(`Using python from npm config ${pythonPath}`);
|
||||
console.log(await run(`${pythonPath} --version`));
|
||||
console.log(
|
||||
await run([
|
||||
pythonPath,
|
||||
'-m',
|
||||
'pip',
|
||||
'install',
|
||||
'fonttools[ufo,lxml,unicode,woff]',
|
||||
]),
|
||||
);
|
||||
console.log(await run([pythonPath, '-m', 'pip', 'install', 'fonttools[ufo,lxml,unicode,woff]']));
|
||||
|
||||
console.log(
|
||||
await run([
|
||||
@@ -119,10 +109,9 @@ async function minifyIconFont() {
|
||||
const before = statSync(config.inputPath).size;
|
||||
|
||||
console.log(
|
||||
`${toByteUnit(before)} > ${toByteUnit(result)} (${(
|
||||
((before - result) / before) *
|
||||
100
|
||||
).toFixed(2)}% Reduction)`,
|
||||
`${toByteUnit(before)} > ${toByteUnit(result)} (${(((before - result) / before) * 100).toFixed(
|
||||
2,
|
||||
)}% Reduction)`,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user