simplified version of decaffeinate shell script

This commit is contained in:
Nate Stemen 2018-12-03 14:13:08 -05:00
parent 6049355277
commit b438af7378

View file

@ -0,0 +1,19 @@
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"