Uploaded image for project: 'Zanata'
  1. ZNTA-1394

Add draft profile to frontend build for faster builds

    Details

    • Type: Task
    • Status: Closed (View workflow)
    • Priority: unspecified
    • Resolution: Ready for Release
    • Affects Version/s: None
    • Fix Version/s: platform-4.0.0
    • Component/s: None
    • Labels:
      None
    • Tested Version/s:
      None
    • Epic Link:
    • Sprint:
      16.23
    • Story Points:
      1

      Description

      During development, there's no need for compiling JavaScript with optimisations, or uglifying the code. We should add a draft profile which disables these optimisations.

      We should also make sure it's easy to activate this draft profile from Maven when required (or to disable it when releasing).

      Technical notes:

      • maven draft profile should not minify js files
      • maven draft profile build should not fail on eslint warning
      • maven draft profile should only be active when specified (i.e. default build should make a production-ready build)

      Update:

      • After dev discussion, it appears better to have draft builds by default, so the implementation will go against the last point above.
      • Draft mode will be disabled with the 'release' profile.

        Attachments

          Activity

            People

            • Assignee:
              damason David Mason
              Reporter:
              sflanigan Sean Flanigan
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: