mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
simplified version of decaffeinate shell script
This commit is contained in:
parent
6049355277
commit
b438af7378
1 changed files with 19 additions and 0 deletions
19
services/chat/decaffeinate-simple.sh
Normal file
19
services/chat/decaffeinate-simple.sh
Normal 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"
|
Loading…
Reference in a new issue