mirror of
https://github.com/status-im/sourcecred.git
synced 2025-01-10 12:46:16 +00:00
b41009b1f7
Summary: Some of the code here is adapted from my site (source available on GitHub at wchargin/wchargin.github.io). It has been improved when possible and made worse when necessary to fit into our existing build system with minimal churn. As of this commit, there remain the following outstanding tasks: - Use a non-hardcoded list of paths in static site generation router. This is not trivial. We have the paths nicely available in `routes.js`, but this module is written in ES6, and transitively depends on many files written in ES6 (i.e., the whole app). Yet naïvely it would be required from a Webpack config file, which is interpreted as vanilla JavaScript. - Add `csso-loader` to minify our CSS. This is easy. - Add unit tests for `dedent`. (As is, it comes from my site verbatim. I wrote it. dmnd’s `dedent` package on npm is insufficient because it dedents arguments as well as the format string, which is incorrect at least for our purposes.) - Link in canonical static data for the site. - Rip out the whole build system and replace it with my build config, which is orders of magnitude saner and less bad. (By “the whole build system” I mostly mean `webpack.config.{dev,prod}.js`.) Test Plan: ```shell $ yarn backend $ yarn build $ node ./bin/sourcecred.js start ``` wchargin-branch: static-v0