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

Grunt fails to build AMD modules when executed in subdirectory without YUI modules

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 2.9.3
    • 2.9.1, 3.0
    • JavaScript
    • MOODLE_29_STABLE, MOODLE_30_STABLE
    • MOODLE_29_STABLE
    • MDL-50766_master
    • Hide
      1. Run grunt from admin/tool/monitor
      2. It SHOULD work and finish as expected (runs shifter for all tool_monitor YUI modules)
      3. Run grunt from admin/tool/templatelibrary
      4. It SHOULD work and finish as expected (there are no YUI modules, so it should display No YUI modules to build)
      5. Run grunt from root
      6. It SHOULD work and finish as expected (runs shifter once building all moodle YUI modules)
      Show
      Run grunt from admin/tool/monitor It SHOULD work and finish as expected (runs shifter for all tool_monitor YUI modules) Run grunt from admin/tool/templatelibrary It SHOULD work and finish as expected (there are no YUI modules, so it should display No YUI modules to build ) Run grunt from root It SHOULD work and finish as expected (runs shifter once building all moodle YUI modules)
    • Team Both Sprint 1

      The grunt script will fail to build AMD modules if there are no YUI modules present in the subdirectories below where grunt is called from.

      To reproduce:

      cd admin/tool
      grunt

      • result: admin/tool/templatelibrary/amd code built as expected

      cd admin/tool/templatelibrary
      grunt

      • result: shifter complains 'no modules found' and returns error code 1, amd build process never starts

      Workaround:
      cd admin/tool/templatelibrary/amd
      grunt

            dmonllao David Monllaó
            davosmith Davo Smith
            cameron1729 cameron1729
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.