decaffeinate.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. set -ex
  2. npx bulk-decaffeinate convert --dir app/coffee
  3. npx bulk-decaffeinate clean
  4. git mv app/coffee app/js
  5. git commit -m "Rename app/coffee dir to app/js"
  6. npx prettier-eslint 'app/js/**/*.js' --write
  7. git add .
  8. git commit -m "Prettier: convert app/js decaffeinated files to Prettier format"
  9. npx bulk-decaffeinate convert --dir test/acceptance/coffee
  10. npx bulk-decaffeinate clean
  11. git mv test/acceptance/coffee test/acceptance/js
  12. git commit -m "Rename test/acceptance/coffee to test/acceptance/js"
  13. npx prettier-eslint 'test/acceptance/js/**/*.js' --write
  14. git add .
  15. git commit -m "Prettier: convert test/acceptance decaffeinated files to Prettier format"
  16. git mv app.coffee app.js
  17. git mv Gruntfile.coffe Gruntfile.js
  18. git mv config/settings.defaults.coffee config/settings.defaults.js
  19. git commit -m "Rename individual coffee files to js files"
  20. decaffeinate app.js
  21. decaffeinate Gruntfile.js
  22. decaffeinate config/settings.defaults.js
  23. git commit -m "Decaffeinate: convert individual files to js"
  24. npx prettier-eslint app.js Gruntfile.js config/settings.defaults.js --write
  25. git commit -m "Prettier: convert individual decaffeinated files to Prettier format"
  26. echo "done"