2018-12-03 12:21:00 -05:00
|
|
|
set -ex
|
|
|
|
|
2018-12-21 13:55:29 -05:00
|
|
|
curl -o .eslintrc https://raw.githubusercontent.com/sharelatex/web-sharelatex/master/.eslintrc
|
|
|
|
curl -o .prettierrc https://raw.githubusercontent.com/sharelatex/web-sharelatex/master/.prettierrc
|
2018-12-13 16:55:47 -05:00
|
|
|
|
|
|
|
git add .
|
2018-12-20 13:56:51 -05:00
|
|
|
git commit -m "Decaffeinate: add eslint and prettier rc files"
|
2018-12-13 16:55:47 -05:00
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
npx bulk-decaffeinate convert --dir app/coffee
|
2018-12-03 12:21:00 -05:00
|
|
|
|
|
|
|
npx bulk-decaffeinate clean
|
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
git mv app/coffee app/js
|
2018-12-03 12:21:00 -05:00
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
git commit -m "Rename app/coffee dir to app/js"
|
2018-12-03 12:21:00 -05:00
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
npx prettier-eslint 'app/js/**/*.js' --write
|
2018-12-03 12:21:00 -05:00
|
|
|
|
|
|
|
git add .
|
2018-12-03 12:31:48 -05:00
|
|
|
git commit -m "Prettier: convert app/js decaffeinated files to Prettier format"
|
2018-12-03 12:21:00 -05:00
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
npx bulk-decaffeinate convert --dir test/acceptance/coffee
|
2018-12-03 12:21:00 -05:00
|
|
|
|
|
|
|
npx bulk-decaffeinate clean
|
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
git mv test/acceptance/coffee test/acceptance/js
|
2018-12-03 12:21:00 -05:00
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
git commit -m "Rename test/acceptance/coffee to test/acceptance/js"
|
2018-12-03 12:21:00 -05:00
|
|
|
|
2018-12-03 12:31:48 -05:00
|
|
|
npx prettier-eslint 'test/acceptance/js/**/*.js' --write
|
2018-12-03 12:21:00 -05:00
|
|
|
|
|
|
|
git add .
|
2018-12-03 12:31:48 -05:00
|
|
|
git commit -m "Prettier: convert test/acceptance decaffeinated files to Prettier format"
|
2018-12-03 12:21:00 -05:00
|
|
|
|
2018-12-03 13:24:54 -05:00
|
|
|
git mv app.coffee app.js
|
2018-12-04 07:44:59 -05:00
|
|
|
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
|
|
|
|
|
2018-12-13 16:59:55 -05:00
|
|
|
git add .
|
2018-12-03 13:24:54 -05:00
|
|
|
git commit -m "Decaffeinate: convert individual files to js"
|
|
|
|
|
2018-12-13 16:55:47 -05:00
|
|
|
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"
|
|
|
|
|
2018-12-04 07:44:59 -05:00
|
|
|
echo "done"
|