mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-03 14:19:01 +02:00
bc1b73d74e
Transform absolute paths in frontend to relative GitOrigin-RevId: c1914c0fd09d68984ba6c85a1f00aa3e6858d944
37 lines
1010 B
Bash
Executable File
37 lines
1010 B
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
|
|
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 |