transform-lodash-global.sh 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. npx jscodeshift \
  2. -t https://gist.githack.com/40thieves/0b495af3fb0ad5fe08915ce5159a2b7b/raw/9c583c0a5b0cbd83a66538a07591b41332efda6a/transform-lodash.js \
  3. --ignore-pattern frontend/js/vendor \
  4. --noSemi=true \
  5. frontend/js
  6. npx jscodeshift \
  7. -t https://gist.githack.com/40thieves/0b495af3fb0ad5fe08915ce5159a2b7b/raw/9c583c0a5b0cbd83a66538a07591b41332efda6a/transform-lodash.js \
  8. --noSemi=true \
  9. test/frontend
  10. for MODULE in admin-panel cms dropbox git-bridge github-sync launchpad metrics open-in-overleaf overleaf-integration portals references-search support templates tpr-webmodule two-factor-authentication v2-templates
  11. do
  12. npx jscodeshift \
  13. -t https://gist.githack.com/40thieves/0b495af3fb0ad5fe08915ce5159a2b7b/raw/9c583c0a5b0cbd83a66538a07591b41332efda6a/transform-lodash.js \
  14. --noSemi=true \
  15. modules/$MODULE/frontend/js
  16. done
  17. npx jscodeshift \
  18. -t https://gist.githack.com/40thieves/0b495af3fb0ad5fe08915ce5159a2b7b/raw/9c583c0a5b0cbd83a66538a07591b41332efda6a/transform-lodash.js \
  19. --noSemi=true \
  20. modules/rich-text/frontend/js
  21. npx jscodeshift \
  22. -t https://gist.githack.com/40thieves/0b495af3fb0ad5fe08915ce5159a2b7b/raw/9c583c0a5b0cbd83a66538a07591b41332efda6a/transform-lodash.js \
  23. --noSemi=true \
  24. modules/rich-text/test/frontend
  25. npx jscodeshift \
  26. -t https://gist.githack.com/40thieves/0b495af3fb0ad5fe08915ce5159a2b7b/raw/9c583c0a5b0cbd83a66538a07591b41332efda6a/transform-lodash.js \
  27. --noSemi=true \
  28. modules/publish-modal/frontend/js
  29. npx jscodeshift \
  30. -t https://gist.githack.com/40thieves/0b495af3fb0ad5fe08915ce5159a2b7b/raw/9c583c0a5b0cbd83a66538a07591b41332efda6a/transform-lodash.js \
  31. --noSemi=true \
  32. modules/publish-modal/test/frontend
  33. make format_fix