'use strict';

var merge = require('merge');
var rump = require('rump');
var webpack = require('./webpack');

exports.rebuild = function() {
  rump.configs.main.globs = merge.recursive({
    build: {
      scripts: '*.js'
    },
    watch: {
      scripts: '**/*.js'
    },
    test: {
      scripts: '**/*_test.js'
    }
  }, rump.configs.main.globs);

  rump.configs.main.paths = merge.recursive({
    source: {
      scripts: 'scripts'
    },
    destination: {
      scripts: 'scripts'
    }
  }, rump.configs.main.paths);

  rump.configs.main.scripts = merge.recursive({
    aliases: {},
    common: false,
    library: false,
    uglify: {
      dropDebugger: true,
      dropConsole: true
    },
    webpack: {}
  }, rump.configs.main.scripts);

  exports.webpack = webpack();
};

exports.rebuild();

@@ -12,21 +12,22 @@
 ';%0A%0Avar 
-merge
+extend
  = requi
@@ -30,21 +30,22 @@
 equire('
-merge
+extend
 ');%0Avar 
@@ -164,32 +164,29 @@
 globs = 
-merge.recursive(
+extend(true, 
 %7B%0A    bu
@@ -374,32 +374,29 @@
 paths = 
-merge.recursive(
+extend(true, 
 %7B%0A    so
@@ -551,24 +551,21 @@
 s = 
-merge.recursive(
+extend(true, 
 %7B%0A  

Convert remaining merge to extend