Add fallback to npm-less installs
gastmaier opened this issue · 2 comments
gastmaier commented
Most of the times, we don't care about the CSS and JavaScript. Then, during CI, write the "compiled" files to the release, and fetch it if npm is unavailable.
Log this info during author-mode initialization.
gastmaier commented
7ed1732 implements this behaviour.
When launching author-mode, if the minified scripts are not found and the user does not have the npm modules installed, the tool now propose to fetch from the latest release and patch the repo with the minified scripts:
docs$ adoc author-mode -d .
Couldn't find the 'compiled' web files and the npm tools are not installed.
Do you want to fetch from the release? [y/N]: