overleaf/services/chat/decaffeinate.sh

54 lines
1.6 KiB
Bash
Raw Normal View History

set -ex
curl -o .eslintrc https://raw.githubusercontent.com/sharelatex/web-sharelatex-internal/master/.eslintrc?token=AMHVk43L42-Htd0MSIfjao6vRukW52r4ks5cHA9WwA%3D%3D
curl -o .prettierrc https://raw.githubusercontent.com/sharelatex/web-sharelatex-internal/master/.prettierrc?token=AMHVk45yPk51AJkmy-hYGoHI9gW-kZHvks5cHAu3wA%3D%3D
git add .
git commit -m "Decaffeinate: add eslint and prettier rc files"
npx bulk-decaffeinate convert --dir app/coffee
npx bulk-decaffeinate clean
git mv app/coffee app/js
git commit -m "Rename app/coffee dir to app/js"
npx prettier-eslint 'app/js/**/*.js' --write
git add .
git commit -m "Prettier: convert app/js decaffeinated files to Prettier format"
npx bulk-decaffeinate convert --dir test/acceptance/coffee
npx bulk-decaffeinate clean
git mv test/acceptance/coffee test/acceptance/js
git commit -m "Rename test/acceptance/coffee to test/acceptance/js"
npx prettier-eslint 'test/acceptance/js/**/*.js' --write
git add .
git commit -m "Prettier: convert test/acceptance decaffeinated files to Prettier format"
2018-12-03 13:24:54 -05:00
git mv app.coffee app.js
git mv Gruntfile.coffee Gruntfile.js
2018-12-03 13:24:54 -05:00
git mv config/settings.defaults.coffee config/settings.defaults.js
git commit -m "Rename individual coffee files to js files"
decaffeinate app.js
decaffeinate Gruntfile.js
decaffeinate config/settings.defaults.js
git add .
2018-12-03 13:24:54 -05:00
git commit -m "Decaffeinate: convert individual files to js"
npx prettier-eslint 'app.js' 'Gruntfile.js' 'config/settings.defaults.js' --write
2018-12-03 13:24:54 -05:00
2018-12-10 22:59:31 -05:00
git add .
2018-12-03 13:24:54 -05:00
git commit -m "Prettier: convert individual decaffeinated files to Prettier format"
echo "done"