The MPL 2.0 terms state that as long as a LICENSE file is present, the
per-file header text is not required. See "Exhibit A" at the end of:
https://www.mozilla.org/MPL/2.0/
Previously we disabled all default rules, and only turned on those that
were explicitly listed in .eslintrc. Now we leave the default rules
alone, apart from those that we are currently failing.
grunt-usemin uses .tmp/ as a staging area, however doesn't clean up
after itself. As such, let's run an additional grunt-clean step at the
end of the build, which removes this temporary staging directory.
The fonts are referred to by the third party css using the relative link
'../fonts/' so must be moved at the same time. Grunt build puts them in
fonts/ so will still work after building, even though the css is one
directory higher too.
This also switches to using the non-minified css versions, since grunt build
will minify them for us in production.
As part of merging the UI repo into this one, the following directory
moves were performed:
webapp/app/ -> ui/
webapp/test/ -> tests/ui/
webapp/config/ -> tests/ui/config/
webapp/scripts/ -> tests/ui/scripts/
webapp/scripts/web-server.js -> web-server.js
All of the other js files are given filenames containing their hashes,
during the grunt build, in order to prevent over-caching. This makes us
do the same for perf.min.js too.