# Dependencies: # - Bucklescript: https://bucklescript.github.io/en/ # - entr for watching file changes: http://entrproject.org/ # Source this file in your bashrc (or other shell) to have the command available # Set your $EDITOR environment variable to the editor of your choice. # To use: $ reasonstart my-new-project # This will create and start the new project on the given location. function reasonstart () { bsb -init $1 -theme basic-reason && cd $1 && $EDITOR ./src/*re && find src/*re | entr sh -c 'npm run build && node src/Demo.bs.js' }