Move SCSS processing out of `nanoc` (decoupled toolchain)
Why? It seems to me that nanoc
shipped processor SCSS is slow, both at installation time and while processing. And it also deprecated (Uses outdated lib https://github.com/nanoc/nanoc/issues/1545).
nanoc
is HTML generator. There are not many good reasons why it should also handle CSS, JS while there are better tools around. Having one tool to do everything is harder to debug and enhance than a well-defined, but decoupled toolchain, where every part can be swapped out.
TODO
-
Measure install (compiled from source) and processing time -
Find a job where it is not cached (Gitpod?) -
Enable timestamps (&6570 related)
-
Solution
In any build system.
graph LR
i{{inputs}} --> tool --> o{{outputs}}
style tool stroke-width:4px,fill:#555,color:#eee
So the task is to measure the inputs and replace the tool to get the same outputs.
In the best case scenario the inputs are just *.scss
files with no additional info from HTML generator.
https://gitlab.com/gitlab-org/gitlab-docs/-/blob/0088e2383226f1389df0601ff1efdd788af673d6/Rules#L112