Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 699 Bytes

gulpfile.litcoffee

File metadata and controls

22 lines (17 loc) · 699 Bytes

Build process using Gulp

Load Gulp modules.

gulp = require 'gulp' # main tool
coffee = require 'gulp-coffee' # compile coffeescript
uglify = require 'gulp-uglify' # minify javascript
sourcemaps = require 'gulp-sourcemaps' # create source maps
pump = require 'pump' # good error handling of gulp pipes

The only build task in this simple repository compiles the one source file, with minification and source maps.

gulp.task 'default', -> pump [
    gulp.src [ 'lwp-example-sidebar.litcoffee', 'definitions.litcoffee' ]
    sourcemaps.init()
    coffee bare : yes
    uglify()
    sourcemaps.write '.'
    gulp.dest '.'
]