Skip to content
Snippets Groups Projects
  1. Apr 20, 2018
    • Antoine Lambert's avatar
      README.md: small fix · 512901f7
      Antoine Lambert authored
      512901f7
    • Antoine Lambert's avatar
    • Antoine Lambert's avatar
      swh-web: Add django middlewares for HTML processing · 499b1c8e
      Antoine Lambert authored
      In development mode, prettify all HTML generated by Django to ease debugging.
      
      In production mode, minify all HTML generated by Django to reduce the amount
      of data to send to clients.
      499b1c8e
    • Antoine Lambert's avatar
      swh-web: Improve frontend development workflow · 0bc0934b
      Antoine Lambert authored
      This commit improves frontend development for swh web applications
      by setting up a static assets pipeline using the module bundler tool
      webpack. It enables to organize frontend development into logical
      modules and then package those modules into multiple bundles that
      will be loaded when required by client browsers.
      
      This induces the following changes (see updated README):
      
        - node.js is now a requirement for developping swh-web
      
        - all static assets dependencies (javascript libraries, stylesheets,
          web fonts) are now managed and retrieved using npm.
      
        - all static assets will now be served through our web server
      
      Regarding the webpack workflow put in place, it offers the following
      features:
      
        - automatic linting of custom javascript and stylesheets in order
          to have a consistent code style and avoid bad pratices
      
        - the possibility to use es6 syntax and recent javascript features
          (like async/await) through the use of babel (es6 to es5 transpiler)
      
        - leverage the use of webpack-dev-server in development mode
          in order to automatically reload web applications in the browser
          when modifying source files
      
        - in production mode, minify javascript and stylesheets but also
          perform dead code elimination in order to reduce bundle sizes and
          thus optimize the amount of data to serve to the clients.
      
      Closes T1006
      0bc0934b
  2. Apr 09, 2018
  3. Mar 26, 2018
  4. Mar 14, 2018
  5. Mar 12, 2018
  6. Mar 07, 2018
  7. Mar 05, 2018
  8. Mar 02, 2018
  9. Mar 01, 2018
  10. Feb 23, 2018
  11. Feb 22, 2018
  12. Feb 21, 2018
  13. Feb 19, 2018
  14. Feb 16, 2018
Loading