Skip to content
  1. Nov 23, 2011
  2. Nov 21, 2011
  3. Nov 19, 2011
  4. Nov 18, 2011
  5. Nov 17, 2011
  6. Nov 16, 2011
  7. Nov 15, 2011
  8. Nov 14, 2011
  9. Nov 13, 2011
    • Rene Saarsoo's avatar
      Extract IndexHtml class from TemplateDir class. · 9b991b1f
      Rene Saarsoo authored
      The TemplateDir is now only responsible for copying or linking
      the tempate directory.
      9b991b1f
    • Rene Saarsoo's avatar
      Extract AppData class from TemplateDir class. · bf1833a3
      Rene Saarsoo authored
      It takes care of the creation of data.js file.
      bf1833a3
    • Rene Saarsoo's avatar
      Refactor 3 exporters back into main App class. · a3cbccfd
      Rene Saarsoo authored
      Didn't quite work out this way. Instead now separating out the
      different tasks in output. For start the source code export is
      now fully done inside SourceWriter class, which got a write_all
      static method.
      
      The main chunk of the normal HTML output is done by TemplateDir
      class that at the moment does a bit too many things.
      a3cbccfd
    • Rene Saarsoo's avatar
      Large refactoring of JsDuck::App class. · 33bc2d40
      Rene Saarsoo authored
      Splitting the output routines into three classes:
      
      - StdoutExporter
      - JsonExporter
      - HtmlExporter
      
      Additionally creating ClassWriter class for outputting the .js or .json
      files. This one isn't pretty, but I have to share the output logic
      between JsonExporter and StdoutExporter.
      
      Another nastiness is the format_classes method which has to run BEFORE
      writing out classes JSON, but AFTER the source HTML files have been
      created - because of the parallel stuff. Brr...
      
      At least the App class now has less responsibilities, but further
      refactorings are needed.
      33bc2d40
Loading