this moves the translation of contents.lr files earlier in the build
process, in `on_before_build_all` instead of `on_before_build`, to
ensure that the build queue accounts for the alternative content files
(`contents+*.lr`) during the build process, instead of requiring
multiple (expensive) build runs
the caveat is that translated alternative contents files are now only
produced during a full build, which likely breaks "on-the-fly" creation
of those files when authoring using the Lektor web admin interface
due to peer dependency conflicts, donate-static requires `npm install`
to be run with `--force`, or the build fails. by adding the
`install_args` option, we can re-enable npm-support for donate-static.
context: tpo/web/donate-static#91
Closes: #27
I've audited the plugin, and it's safe. it's a straight lektor plugin wrapper
around libsass, with most of the logic handling dev server reloads.
Each site individually will have to switch to the plugin to compile its
SCSS. This will require a lego update, a new config file, and a change
to the CI script.
Adding the packages the new donate stuff is using to the repository so
that they do not need to be downloaded to run lektor. I had to make some
modifications to the setup.py files for these modules in order to get
them to work. Otherwise I was getting errors about invalid syntax in the
requires.txt files and also one of the modules was requiring lektor
which was pulling in a bunch of stuff that's not needed because we are
running inside lektor. I put all these changes in patch files in a new
patches subdirectory.