module.exports = {
  name: 'ionic-conference-app',
  proxies: null,

  // hooks execute before or after all project-related Ionic commands
  // (so not for start, docs, but serve, run, etc.) and take in the arguments
  // passed to the command as a parameter
  //
  // The format is 'before' or 'after' + commandName (uppercased)
  // ex: beforeServe, afterRun, beforePrepare, etc.
  hooks: {
    beforeServe: function(argv) {
      var path = require('path');
      var fork = require('child_process').fork;
      // npm generates non-js .bin files for windows, so use gulp directly
      fork(path.resolve('./node_modules/gulp/bin/gulp.js'), ['watch']);
    }
  },

  // paths: {
  //   modules: {
  //
  //   },
  //   sass: {
  //     src: ['app/app.ios.scss', 'app/app.md.scss'],
  //     dest: 'www/build/css/',
  //     include: ['node_modules/ionic-framework']
  //   },
  //   html : {
  //     src: ['app/**/*.html']
  //     dest: 'www/build/html/'
  //   },
  //   fonts: {
  //     src: ['node_modules/ionic-framework/fonts/**/*.ttf'],
  //     dest: 'www/build/fonts/'
  //   },
  //   watch: {
  //     sass: ['**/*.scss'],
  //     livereload: []
  //   }
  // },

  paths: {
    wwwDir: 'www',
    buildDir: 'build',
    buildJSDir: 'js',
    buildCSSDir: 'css',
    buildFontsDir: 'fonts',
    appDir: 'app',
    appSrcModule: 'app.ts',
    appBuildBundle: 'app.bundle.js',
    appSassSrc: ['app.ios.scss', 'app.md.scss'],
    appSassWatch: '**/*.scss',
    ionicDir: 'node_modules/ionic-framework',
    ionicSassDir: 'node_modules/ionic-framework',
    ionicFontFiles: 'fonts/**/*.ttf'
  },

  autoPrefixerOpts: {
    browsers: [
      'last 2 versions',
      'iOS >= 7',
      'Android >= 4',
      'Explorer >= 10',
      'ExplorerMobile >= 11'
    ],
    cascade: false
  }

};

module.exports = {
  name: 'ionic-conference-app',
  proxies: null,

  paths: {
    html : {
      src: ['app/**/*.html'],
      dest: "www/build"
    },
    sass: {
      src: ['app/app.+(ios|md).scss'],
      dest: 'www/build/css',
      include: ['node_modules/ionic-framework']
    },
    fonts: {
      src: ['node_modules/ionic-framework/fonts/**/*.ttf'],
      dest: "www/build/fonts"
    },
    watch: {
      sass: ['app/**/*.scss'],
      html: ['app/**/*.html'],
      livereload: [
        'www/build/**/*.html',
        'www/build/**/*.js',
        'www/build/**/*.css'
      ]
    }
  },

  autoPrefixerOptions: {
    browsers: [
      'last 2 versions',
      'iOS >= 7',
      'Android >= 4',
      'Explorer >= 10',
      'ExplorerMobile >= 11'
    ],
    cascade: false
  },

  // hooks execute before or after all project-related Ionic commands
  // (so not for start, docs, but serve, run, etc.) and take in the arguments
  // passed to the command as a parameter
  //
  // The format is 'before' or 'after' + commandName (uppercased)
  // ex: beforeServe, afterRun, beforePrepare, etc.
  hooks: {
    beforeServe: function(argv) {
      //console.log('beforeServe');
    }
  }
};

update ionic.config.js