Skip to content

kebot/gulp-ozjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published