UNPKG

the-amazing-quran-images

Version:

This repository contains images of the holly Quran in png format, and a small node module to handle them

32 lines (27 loc) 650 B
var gulp = require('gulp'); var jshint = require('gulp-jshint'); var babel = require('gulp-babel'); var app = 'src'; var dist = './'; var paths = [ app + '/ayahImageManager.js' ]; gulp.task('jshint', function () { return gulp.src(paths) .pipe(jshint()) .pipe(jshint.reporter('jshint-stylish')); }); gulp.task('js', function() { return gulp.src(paths) .pipe(babel({ presets: ['es2015'] })) .on('error', function(err) { console.log(err); this.emit('end'); }) .pipe(gulp.dest(dist)); }); gulp.task('watch', function () { gulp.watch(paths, ['js']); }); gulp.task('default', [ 'jshint', 'js' ]);