Watch the CoffeeScript repository’s source files for changes, then recompile and test.
It is assumed the git command is available globally. You also need the cake command available globally, so install CoffeeScript (the official published version) globally if you haven’t already done so:
# Install CoffeeScript globally
npm install --global coffeescriptClone this repo and the CoffeeScript repo (or a fork of it) as sibling folders, e.g.:
~/Sites/coffeescript~/Sites/coffeescript-gulp
So something like:
mkdir -p ~/Sites
cd ~/Sites
git clone [email protected]:jashkenas/coffeescript.git
git clone [email protected]:GeoffreyBooth/coffeescript-gulp.gitNext, within the coffeescript-gulp repo, create symlinks to the CoffeeScript repo’s src and test folders:
cd ~/Sites/coffeescript-gulp
ln -s ../coffeescript/Cakefile Cakefile
ln -s ../coffeescript/src src
ln -s ../coffeescript/test testcd ~/Sites/coffeescript-gulp
npx gulpIt will start and enter watch mode. Save any file in ../coffeescript/src or ../coffeescript/test, or Cakefile, to recompile the CoffeeScript compiler and run the tests. To run the tests in node --harmony mode, start via gulp --test-harmony.