<NME> page-modules.js
<BEF> 'use strict';

const gulp = tars.packages.gulp;
const runSequence = tars.packages.runSequence.use(gulp);
const path = require('path');

const filesToWatch = [
 * @param  {Object} watchOptions
 */
module.exports = function (watchOptions) {
    var pagesToWatch = 'markup/pages/**/*.';
    var moduelsToWatch = 'markup/modules/**/*.';
    var filesToWatch = [];
    var templateExtension = watchOptions.templateExtension;

    templateExtension.forEach(function (item) {
        filesToWatch.push(
            pagesToWatch + item,
            moduelsToWatch + item
        );
    });

    return chokidar.watch(filesToWatch, {
            ignored: '',
            persistent: true,
            ignoreInitial: true
            filesToWatch,
            Object.assign(tars.options.watch, {
                ignored: `markup/pages/**/_*.${tars.templater.ext}`,
            }),
        )
        .on('all', (event, watchedPath) => {
            tars.helpers.watcherLog(event, watchedPath);

            if (
                watchedPath.indexOf(`markup${path.sep}pages`) > -1 &&
                (event === 'unlink' || event === 'add')
            ) {
                runSequence('html:concat-mocks-data', 'html:compile-templates', () => {});
            } else {
                runSequence('html:compile-templates', () => {});
            }
        });
};

<MSG> Revert "TARS-77: Add sourcemaps generation for js."

<DFF> @@ -8,19 +8,10 @@ var watcherLog = require('../../helpers/watcher-log');
  * @param  {Object} watchOptions
  */
 module.exports = function (watchOptions) {
-    var pagesToWatch = 'markup/pages/**/*.';
-    var moduelsToWatch = 'markup/modules/**/*.';
-    var filesToWatch = [];
-    var templateExtension = watchOptions.templateExtension;
-
-    templateExtension.forEach(function (item) {
-        filesToWatch.push(
-            pagesToWatch + item,
-            moduelsToWatch + item
-        );
-    });
-
-    return chokidar.watch(filesToWatch, {
+    return chokidar.watch([
+            'markup/pages/**/*.' + watchOptions.templateExtension,
+            'markup/modules/**/*.' + watchOptions.templateExtension
+        ], {
             ignored: '',
             persistent: true,
             ignoreInitial: true

{'addition_count': 4, 'commit_subject': 'Revert "TARS-77: Add sourcemaps generation for js."', 'deletion_count': 13, 'file_extension': '.js', 'lang': 'js', 'license': 'mit', 'repo_name': 'tars/tars'}