Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-49817

Development - Watch for JS/LESS changes and compile once a file is saved

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9, 3.1
    • Fix Version/s: 3.1
    • Component/s: JavaScript
    • Labels:
    • Testing Instructions:
      Hide

      To be tested on windows and linux.

      1. Run npm install to get updated grunt requirements
      2. Run grunt watch and change many different files (amd js, yui js, bootstrapbase .less} files and ensure they are rebuilt correctly
      3. Do things like update two files at once and ensure the same works
      4. [not applicable to windows MDL-50115] Run grunt in an amd directory and ensure it only runs the amd building on the affected files
      5. [not applicable to windows MDL-50115] Run grunt shifter in various yui directories (e.g. lib/yui/src/formautosubmit, lib/yui/src (etc) and ensure it only runs the yui building as you'd expect
      6. Try some exploriory testing of the grunt functionality and ensure it all continues to work correctly/as before
      Show
      To be tested on windows and linux. Run npm install to get updated grunt requirements Run grunt watch and change many different files (amd js, yui js, bootstrapbase .less} files and ensure they are rebuilt correctly Do things like update two files at once and ensure the same works [not applicable to windows MDL-50115] Run grunt in an amd directory and ensure it only runs the amd building on the affected files [not applicable to windows MDL-50115] Run grunt shifter in various yui directories (e.g. lib/yui/src/formautosubmit , lib/yui/src (etc) and ensure it only runs the yui building as you'd expect Try some exploriory testing of the grunt functionality and ensure it all continues to work correctly/as before
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull Master Branch:
      MDL-49817-master

      Description

      We have grunt to build but we don't have watch, which IMO is one of its best features

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  23/May/16