/gulp-ls-browserify-starter

Starter project featuring Livescript, Browserify, a Connect server and Livereload. Powered by gulp.

Primary LanguageJavaScript

gulp-livescript-browserify Starter Project

It's quite hard to work out how to get Gulp to work correctly with this setup, and I got sick of figuring it out every time. Here's a starter project that sets you up with a simple Connect server (with livereload built-in) to serve your files, and a browserify module system all running neatly in Livescript.

Usage

Grab, this repo, run npm i, start the server with gulp and start modifying the files to begin. The repo contains a tiny proof-of-concept program to build from.

By default the gulp command will start the Connect server at localhost:8080 and start a livereload server to go with it on the default port. The connect livereload plugin automatically injects the LR snippet onto your page so it works automatically with LR browser plugins.

If you find that gulp-watch is rebuilding your JS file twice for every time you save, and you're using vim, it may be because vim sometimes touches files twice when working with backups enabled. To stop it, set nowritebackup in your vimrc.

Todo

  • Comprehensive error handling... gulp-plumber?
  • Improve error formatting
  • Stylesheet compilation as well maybe