module.exports = (function() {
  'use strict';

  // config vars
  const base = './app-src';
  const scripts = base + '/scripts';
  const sass = base + '/styles';

  const data = {
    browserSyncPort: 3000,
    cordovaPath: 'cordova',
    defaultPlatform: 'ios',
    excludedBowerComponents: [
      'es5-shim',
      'json3',
      'jquery',
      'bower_components/jquery/dist/jquery.js',
      'bower_components/bootstrap/dist/js/bootstrap.js',
      'bower_components/bootstrap',
    ],
    base: base,
    mainFile: base + '/index.html',
    mainSassFile: sass + '/main.scss',
    routesFiles: base + '/scripts/_routes.js',
    e2eBaseUrl: 'http://localhost:3000/',
    styles: base + '/styles/',
    stylesF: [
      base + '/styles/**/_*.{scss,sass,less}',
      scripts + '/**/*.{scss,sass,less}'
    ],
    stylesAllF: [
      base + '/styles/**/*.{scss,sass,less}',
      scripts + '/**/*.{scss,sass,less}'
    ],
    scripts: base + '/scripts/',
    scriptsF: [
      // modules first
      base + '/scripts/**/_*.js',
      base + '/scripts/**/*.js',
      '!' + base + '/scripts/**/*.spec.js'
    ],
    scriptsAllF: base + '/scripts/**/*.js',
    scriptTestsF: base + '/scripts/**/*.spec.js',
    templateCacheFileName: 'tmp.templates.js',
    html: base + '/scripts/',
    htmlF: [
      base + '/scripts/**/*.html'
    ],
    staticFiles: [
      base + '/manifest.json',
      base + '/service-workers/notifications.js',
    ],
    appCacheManifest: base + '/manifest.appcache',
    images: base + '/img/',
    imagesF: base + '/img/**/*.*',
    fonts: base + '/fonts/',
    fontsF: base + '/fonts/**/*.*',
    sounds: base + '/snd/',
    soundsF: base + '/snd/**/*.*',
    tmp: './.tmp',
    dist: 'app',
    wwwDestination: '',
    karmaConf: './karma.conf.js',
    karmaConfE2E: './karma-e2e.conf.js'
  };

  data.allHtmlF = data.htmlF.slice()
  data.allHtmlF.push(data.mainFile);

  return data;
})();
