'use strict';

var gulp = require('gulp'),
    config = require('../../config'),
    path = require('path');

gulp.task('watchers', function() {

    var build = gulp.args.build || gulp.args.emulate || gulp.args.run,
        targetDir = path.resolve(build ? 'www' : '.tmp');

    gulp.watch(config.paths.sass, ['styles']);

    // TODO not working...
    gulp.watch(config.paths.fonts, ['fonts']);

    // TODO
    // gulp.watch('app/icons/**', ['iconfont']);

    // TODO
    // gulp.watch('app/images/**', ['images'])

    gulp.watch(config.paths.scripts, ['jsHint', 'scripts', 'index']);
    gulp.watch(config.paths.vendor, ['vendor']);
    gulp.watch(config.paths.partials, ['scripts', 'partials', 'index']);
    gulp.watch(config.paths.index, ['index']);

});


'use strict';

var gulp = require('gulp'),
    config = require('../../config'),
    path = require('path');

gulp.task('watchers', function() {

    var build = gulp.args.build || gulp.args.emulate || gulp.args.run,
        targetDir = path.resolve(build ? 'www' : '.tmp');

    gulp.watch(config.paths.sass, ['styles']);

    // TODO not working...
    gulp.watch(config.paths.fonts, ['fonts']);

    // TODO
    // gulp.watch('app/icons/**', ['iconfont']);

    // TODO
    // gulp.watch('app/images/**', ['images'])

    gulp.watch(config.paths.scripts, ['jsHint', 'scripts', 'index']);
    gulp.watch(config.paths.vendor, ['vendor']);
    gulp.watch(config.paths.partials, ['scripts', 'partials', 'index']);
    gulp.watch(config.paths.index, ['index']);
});


Rebuild Partials - Trello #50-rebuild-partials Done #50