var dest = "./build";
var src = './src';

module.exports = {
  browserSync: {
    open: false,
    https: true,
    server: {
      // We're serving the src folder as well
      // for sass sourcemap linking
      baseDir: [dest, src]
    },
    files: [
      dest + "/**",
      // Exclude Map files
      "!" + dest + "/**.map"
    ]
  },
  stylus: {
    src: src + "/stylus/*.styl",
    dest: dest
  },
  sass: {
    src: src + "/sass/*.{sass, scss}",
    dest: dest
  },
  images: {
    src: src + "/images/**",
    dest: dest + "/images"
  },
  markup: {
    src: src + "/htdocs/**",
    dest: dest
  },
  ghdeploy : {
  },
  browserify: {
    // Enable source maps
    debug: false,
    // Additional file extentions to make optional
    extensions: ['.coffee', '.hbs'],
    // A separate bundle will be generated for each
    // bundle config in the list below
    bundleConfigs: [
      {
        entries: './src/javascript/app.js',
        dest: dest,
        outputName: 'app.js'
      },
      /*
      {
        entries: './src/javascript/head.js',
        dest: dest,
        outputName: 'head.js'
      },
      */
      {
        entries: './src/javascript/site.js',
        dest: dest,
        outputName: 'site.js'
      }
    ]
  }
};

var dest = "./build";
var src = './src';

module.exports = {
  browserSync: {
    open: false,
    https: true,
    port: 2112,
    server: {
      // We're serving the src folder as well
      // for sass sourcemap linking
      baseDir: [dest, src]
    },
    files: [
      dest + "/**",
      // Exclude Map files
      "!" + dest + "/**.map"
    ]
  },
  stylus: {
    src: src + "/stylus/*.styl",
    dest: dest
  },
  sass: {
    src: src + "/sass/*.{sass, scss}",
    dest: dest
  },
  images: {
    src: src + "/images/**",
    dest: dest + "/images"
  },
  markup: {
    src: src + "/htdocs/**",
    dest: dest
  },
  ghdeploy : {
  },
  browserify: {
    // Enable source maps
    debug: false,
    // Additional file extentions to make optional
    extensions: ['.coffee', '.hbs'],
    // A separate bundle will be generated for each
    // bundle config in the list below
    bundleConfigs: [
      {
        entries: './src/javascript/app.js',
        dest: dest,
        outputName: 'app.js'
      },
      /*
      {
        entries: './src/javascript/head.js',
        dest: dest,
        outputName: 'head.js'
      },
      */
      {
        entries: './src/javascript/site.js',
        dest: dest,
        outputName: 'site.js'
      }
    ]
  }
};

Move dev server to port 2112 because omg collisions
Move dev server to port 2112 because omg collisions
