overleaf/services/web/transform-absolute-paths.sh
Timothée Alby dea9730503 Merge pull request #2694 from overleaf/ta-jl-otp
Two Factor Authentication for Staff

GitOrigin-RevId: 7028e93cb4a4cd88c138a52b0528817056b930d9
2020-04-08 03:14:35 +00:00

37 lines
No EOL
1 KiB
Bash
Executable file

npx jscodeshift \
-t transform.js \
--ignore-pattern=frontend/js/libraries.js \
--ignore-pattern=frontend/js/vendor \
frontend/js
npx jscodeshift \
-t transform.js \
--ignore-pattern=test/frontend/import_tests.js \
test/frontend
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 v2-templates two-factor-authentication
do
npx jscodeshift \
-t transform.js \
modules/$MODULE/frontend/js
done
npx jscodeshift \
-t transform.js \
--ignore-pattern=modules/rich-text/frontend/js/ide/controllers/editor_loader_controller.js \
modules/rich-text/frontend/js
npx jscodeshift \
-t transform.js \
modules/rich-text/test/frontend
npx jscodeshift \
-t transform.js \
--ignore-pattern=modules/publish-modal/frontend/js/ide/controllers/PublishController.js \
modules/publish-modal/frontend/js
npx jscodeshift \
-t transform.js \
modules/publish-modal/test/frontend
make format_fix