overleaf/services/chat/decaffeinate-simple.sh
2018-12-03 14:13:08 -05:00

19 lines
No EOL
509 B
Bash

set -ex
npx bulk-decaffeinate convert
npx bulk-decaffeinate clean
git mv app/coffee app/js
git commit -m "Rename app/coffee dir to app/js"
git mv test/acceptance/coffee test/acceptance/js
git commit -m "Rename test/acceptance/coffee to test/acceptance/js"
npx prettier-eslint '*.js' --write
npx prettier-eslint 'config/*.js' --write
npx prettier-eslint 'app/js/**/*.js' --write
npx prettier-eslint 'test/acceptance/js/**/*.js' --write
git add .
git commit -m "Prettier: lint javascript files"
echo "done"