Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
3.9
-
MOODLE_39_STABLE
-
MOODLE_39_STABLE
-
MDL-67712-master -
Hide
Setup
- Check the git status to make sure that you're clean
git status
- Note the status for later
Run all
- Delete all amd/build directories:
# Delete all build directories
find . -type d -path '*/amd/build' | sort -r | xargs rm -rf
- Run grunt amd
grunt amd
- Confirm that there were no changes (Compare against the one you noted earlier)
git status
- Confirm that there were no changes (Compare against the one you noted earlier)
Run all amd directories in forward order
- Delete all amd/build directories:
find . -type d -path '*/amd/build' | sort -r | xargs rm -rf
- Build all directories:
for amdDir in `find . -type d -path '*/amd'`; do cd $amdDir; grunt amd; cd -; done
- Confirm that there were no changes (Compare against the one you noted earlier)
git status
- Confirm that there were no changes (Compare against the one you noted earlier)
Run all amd directories in reverse order
- Delete all amd/build directories:
find . -type d -path '*/amd/build' | sort -r | xargs rm -rf
- Build all directories in reverse:
for amdDir in `find . -type d -path '*/amd' | sort -r`; do cd $amdDir; grunt amd; cd -; done
- Confirm that there were no changes (Compare against the one you noted earlier)
git status
- Confirm that there were no changes (Compare against the one you noted earlier)
Build a plugin in a subsystem
- Remove all amd/build directories in grade:
find grade -type d -path '*/amd/build' | sort -r | xargs rm -rf
- Build just the gradingform_guide plugin
cd grade/grading/form/guide
grunt amd
- Confirm that only the gradingform/guide plugin was built:
git status
Expected output:
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: ../../../amd/build/edittree_index.min.js
deleted: ../../../amd/build/edittree_index.min.js.map
deleted: ../../../amd/build/grades/grader/gradingpanel/comparison.min.js
deleted: ../../../amd/build/grades/grader/gradingpanel/comparison.min.js.map
deleted: ../../../amd/build/grades/grader/gradingpanel/normalise.min.js
deleted: ../../../amd/build/grades/grader/gradingpanel/normalise.min.js.map
deleted: ../../../amd/build/grades/grader/gradingpanel/point.min.js
deleted: ../../../amd/build/grades/grader/gradingpanel/point.min.js.map
deleted: ../../../amd/build/grades/grader/gradingpanel/repository.min.js
deleted: ../../../amd/build/grades/grader/gradingpanel/repository.min.js.map
deleted: ../../../amd/build/grades/grader/gradingpanel/scale.min.js
deleted: ../../../amd/build/grades/grader/gradingpanel/scale.min.js.map
deleted: ../rubric/amd/build/grades/grader/gradingpanel.min.js
deleted: ../rubric/amd/build/grades/grader/gradingpanel.min.js.map
no changes added to commit (use "git add" and/or "git commit -a")
- Confirm that only the gradingform/guide plugin was built:
- Build just the subsystem:
cd grade
grunt amd
- Confirm that only files in grades/amd/build were built:
git status
Expected output:
Changes not staged for commit:
(use "git add/rm <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
deleted: grading/form/rubric/amd/build/grades/grader/gradingpanel.min.js
deleted: grading/form/rubric/amd/build/grades/grader/gradingpanel.min.js.map
no changes added to commit (use "git add" and/or "git commit -a")
- Confirm that only files in grades/amd/build were built:
ShowSetup Check the git status to make sure that you're clean git status Note the status for later Run all Delete all amd/build directories: # Delete all build directories find . -type d -path '*/amd/build' | sort -r | xargs rm -rf Run grunt amd grunt amd Confirm that there were no changes (Compare against the one you noted earlier) git status Run all amd directories in forward order Delete all amd/build directories: find . -type d -path '*/amd/build' | sort -r | xargs rm -rf Build all directories: for amdDir in `find . -type d -path '*/amd'`; do cd $amdDir; grunt amd; cd -; done Confirm that there were no changes (Compare against the one you noted earlier) git status Run all amd directories in reverse order Delete all amd/build directories: find . -type d -path '*/amd/build' | sort -r | xargs rm -rf Build all directories in reverse: for amdDir in `find . -type d -path '*/amd' | sort -r`; do cd $amdDir; grunt amd; cd -; done Confirm that there were no changes (Compare against the one you noted earlier) git status Build a plugin in a subsystem Remove all amd/build directories in grade: find grade -type d -path '*/amd/build' | sort -r | xargs rm -rf Build just the gradingform_guide plugin cd grade/grading/form/guide grunt amd Confirm that only the gradingform/guide plugin was built : git status Expected output: Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: ../../../amd/build/edittree_index.min.js deleted: ../../../amd/build/edittree_index.min.js.map deleted: ../../../amd/build/grades/grader/gradingpanel/comparison.min.js deleted: ../../../amd/build/grades/grader/gradingpanel/comparison.min.js.map deleted: ../../../amd/build/grades/grader/gradingpanel/normalise.min.js deleted: ../../../amd/build/grades/grader/gradingpanel/normalise.min.js.map deleted: ../../../amd/build/grades/grader/gradingpanel/point.min.js deleted: ../../../amd/build/grades/grader/gradingpanel/point.min.js.map deleted: ../../../amd/build/grades/grader/gradingpanel/repository.min.js deleted: ../../../amd/build/grades/grader/gradingpanel/repository.min.js.map deleted: ../../../amd/build/grades/grader/gradingpanel/scale.min.js deleted: ../../../amd/build/grades/grader/gradingpanel/scale.min.js.map deleted: ../rubric/amd/build/grades/grader/gradingpanel.min.js deleted: ../rubric/amd/build/grades/grader/gradingpanel.min.js.map no changes added to commit (use "git add" and/or "git commit -a") Build just the subsystem: cd grade grunt amd Confirm that only files in grades/amd/build were built : git status Expected output: Changes not staged for commit: (use "git add/rm <file>..." to update what will be committed) (use "git checkout -- <file>..." to discard changes in working directory) deleted: grading/form/rubric/amd/build/grades/grader/gradingpanel.min.js deleted: grading/form/rubric/amd/build/grades/grader/gradingpanel.min.js.map no changes added to commit (use "git add" and/or "git commit -a") - Check the git status to make sure that you're clean
Description
grunt does not build for components which in a sub-directory of another component.
for example:
gradingform_* components because their directory is grade/grading/form and the grade component is in the grade directory.
Steps to reproduce:
cd grade/grading/form/guide
rm amd/build -rf
grunt amd