This shell script will add @format and @flow to the top of all .js
files that are inside src
folder. Keep this shell file at the root of your project
Shell scripts must be executable files in order to run. You can use the chmod command to indicate that the text file is executable.
- In the Terminal app on your Mac. Enter the chmod command. For example:
chmod 755 YourScriptName.sh
- After making the shell script file executable, you can run it by entering its pathname. For example:
./YourScriptName.sh