From b438af7378b7e287a7a75cfa2f763c5f059868b5 Mon Sep 17 00:00:00 2001 From: Nate Stemen Date: Mon, 3 Dec 2018 14:13:08 -0500 Subject: [PATCH] simplified version of decaffeinate shell script --- services/chat/decaffeinate-simple.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 services/chat/decaffeinate-simple.sh diff --git a/services/chat/decaffeinate-simple.sh b/services/chat/decaffeinate-simple.sh new file mode 100644 index 0000000000..6fd8a618b9 --- /dev/null +++ b/services/chat/decaffeinate-simple.sh @@ -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" \ No newline at end of file