gulp tasks for oz.js and ozma.js http://ozjs.org
JavaScript Makefile CoffeeScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
tests
.gitignore
LICENSE
README.md
index.js
package.json

README.md

gulp-ozjs

Gitter gulp tasks for oz.js and ozma.js http://ozjs.org

Simple gulp file

ozma = require('gulp-ozjs')
uglify = require('gulp-uglify');

gulp.task('ozma', function(){
  var stream = gulp.src([
    'app.js',
    'subapp/app.js'
  ]).pipe(ozma({
    baseUrl: 'static/js',
    disableAutoSuffix: true,
    loader: 'lib/oz.js'
  })).pipe(uglify()).pipe(gulp.dest('dist'));
  return stream;
});

gulp.task('watch', function(){
  return gulp.watch(['static/js/**/*.js'], ['ozma']);
});

TODO

  1. read file in streams first, not in directly in filesystem.