Gulp MAMP
Gulp MAMP allows you to configure, start and stop your MAMP server from the terminal.
npm install gulp-mamp
The "mamp" task
The Goods
Configure your site_path and port and you are good to go. Your gulpfile.js should look like this:
/* !!!! CONFIGURE !!!!================================ */var options = {};optionsuser = 'yourusername';optionsport = 8888;optionssite_path = '/your/full/site/path'; // something like /Users/username/sites/mymampsite // Modulesvar gulp = ;var mamp = ; gulp; gulp; gulp; gulp;
Getting Started (and Stopped!)
Once you have your gulpfile.js file configged, you can run the following commands to config, start and stop MAMP.
gulp mamp
gulp stop