mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-01 14:21:34 -05:00
modify script to convert bulk of coffee and lint
This commit is contained in:
parent
296bdcf5bb
commit
1c8430d207
1 changed files with 10 additions and 38 deletions
|
@ -1,57 +1,29 @@
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
npx bulk-decaffeinate convert --dir public/coffee
|
npx bulk-decaffeinate convert --dir app/coffee
|
||||||
|
|
||||||
for module in modules/**/public/coffee; do
|
|
||||||
npx bulk-decaffeinate convert --dir $module
|
|
||||||
done
|
|
||||||
|
|
||||||
npx bulk-decaffeinate clean
|
npx bulk-decaffeinate clean
|
||||||
|
|
||||||
git mv public/coffee public/src
|
git mv app/coffee app/js
|
||||||
|
|
||||||
for module in modules/**/public; do
|
git commit -m "Rename app/coffee dir to app/js"
|
||||||
if [ -e $module/coffee ]; then
|
|
||||||
git mv $module/coffee $module/src
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
git commit -m "Rename public/coffee dir to public/src"
|
npx prettier-eslint 'app/js/**/*.js' --write
|
||||||
|
|
||||||
npx prettier-eslint 'public/src/**/*.js' --write
|
|
||||||
|
|
||||||
for module in modules/**/public/src; do
|
|
||||||
npx prettier-eslint "$module/**/*.js" --write
|
|
||||||
done
|
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Prettier: convert public/src decaffeinated files to Prettier format"
|
git commit -m "Prettier: convert app/js decaffeinated files to Prettier format"
|
||||||
|
|
||||||
npx bulk-decaffeinate convert --dir test/unit_frontend/coffee
|
npx bulk-decaffeinate convert --dir test/acceptance/coffee
|
||||||
|
|
||||||
for module in modules/**/test/unit_frontend/coffee; do
|
|
||||||
npx bulk-decaffeinate convert --dir $module
|
|
||||||
done
|
|
||||||
|
|
||||||
npx bulk-decaffeinate clean
|
npx bulk-decaffeinate clean
|
||||||
|
|
||||||
git mv test/unit_frontend/coffee test/unit_frontend/src
|
git mv test/acceptance/coffee test/acceptance/js
|
||||||
|
|
||||||
for module in modules/**/test/unit_frontend; do
|
git commit -m "Rename test/acceptance/coffee to test/acceptance/js"
|
||||||
if [ -e $module/coffee ]; then
|
|
||||||
git mv $module/coffee $module/src
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
|
|
||||||
git commit -m "Rename test/unit_frontend/coffee to test/unit_frontend/src"
|
npx prettier-eslint 'test/acceptance/js/**/*.js' --write
|
||||||
|
|
||||||
npx prettier-eslint 'test/unit_frontend/src/**/*.js' --write
|
|
||||||
|
|
||||||
for module in modules/**/test/unit_frontend/src; do
|
|
||||||
npx prettier-eslint "$module/**/*.js" --write
|
|
||||||
done
|
|
||||||
|
|
||||||
git add .
|
git add .
|
||||||
git commit -m "Prettier: convert test/unit_frontend decaffeinated files to Prettier format"
|
git commit -m "Prettier: convert test/acceptance decaffeinated files to Prettier format"
|
||||||
|
|
||||||
echo "done"
|
echo "done"
|
Loading…
Reference in a new issue