var gulp = require('gulp');
var paths = require('../gulp.config.json');
var argv = require('yargs')
.default('env', 'local')
.default('config', '')
.argv;
var local = argv.env == 'local' ? true : false;

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

    if (local) {
        // Watch templates files
        gulp.watch([
            paths.frontendDirectives + '**/*.html',
            paths.internalComponents + '**/*.html'
        ], ['views']);

        gulp.watch([
            paths.frontendDirectives + '**/*.html',
            paths.internalComponents + '**/*.html'
        ], ['views']);

        gulp.watch([
            paths.internalComponents + '**/*.js',
            paths.docs
        ], ['docs']);

        // Watch .less files
        gulp.watch([
            'src/assets/less/*.less',
            paths.FrontendAssets + 'less/*.less'
        ], ['assets']);

       //Watchers for translate files
       gulp.watch('src/app/commons/languages/*', ['translateFiles']);
   }
});

@@ -669,16 +669,52 @@
 ths.docs
+.install,%0A            paths.docs.api
 %0A       

fix gulp task watch