Drupal investigation

rename-js-files-to-es6.sh 347B

12345678910111213
  1. #!/bin/bash
  2. # Rename *.js files in *.es6.js. Only need to be run once.
  3. # Should be removed after *.es6.js files are committed to core.
  4. #
  5. # @internal This file is part of the core javascript build process and is only
  6. # meant to be used in that context.
  7. for js in `find ./{misc,modules,themes} -name '*.js'`;
  8. do
  9. mv ${js} ${js%???}.es6.js;
  10. done