Create a new file called “trans” or whatever you want to call it:
babel $1.js --out-file $1.babel; node $1.babel
Then make our bash script executable:
chmod +x trans
If the current directory is not in the path, you can launch it like this for devServer.js, for example.