/*jslint white: true, nomen: true */
/*global require, _cwd */

// NOTE: any third party directories added here also need to be added to shared/adobe/buildbot/config/animal/animal.config
// or they won't copied to staged directory and won't be available for the official build:
	// runtime_js = [
	// 	'ROOT/beaker/scripts/js/behaviors',
	// 	'ROOT/beaker/scripts/js/lib',
	// 	adobe_path + '/apd/nml/nml_include_paths_staged.js',     
	// 	adobe_path + '/apd/nml/nml_include.js',    		   
	// 	adobe_path + '/apd/nml/src', 
	// 	thirdparty_path + '/JSON-js',
	// 	thirdparty_path + '/projects/jquery',
	// 	thirdparty_path + '/projects/require',
	// 	thirdparty_path + '/requirejs-2.1.1',
	// 	thirdparty_path + '/lodash',
	// 	thirdparty_path + '/immutable-js/dist'
	// 	]


// NOTE: include paths for official build uses 'animal' in the path
var kScriptsDir = _cwd + "/../../../../animal/scripts/js",
	kThirdPartyDir = _cwd + "/../../../third_party";

require.config({
// TODO: this is the recommened way but enable it later because it will break many scripts
//	baseUrl: _cwd,

	packages : [
		{
			name: "lib/tasks",
			location: kScriptsDir + "/lib/tasks"
		},
		{
			name: "lib/dev",
			location: kScriptsDir + "/lib/dev"
		}
	],

	// TODO: duplicated in nml_include_paths.js
	paths: {
		"jquery-require" : kThirdPartyDir + "/projects/jquery/jquery-extend-1.10.1",
		"JSON-js"        : kThirdPartyDir + "/JSON-js/json2",
		"lodash"         : kThirdPartyDir + "/lodash/lodash.min",
		"immutable"      : kThirdPartyDir + "/immutable-js/dist/immutable.min",
		
		"lib"            : kScriptsDir + "/lib",
		"behaviors"      : kScriptsDir + "/behaviors", 
		"tests"          : kScriptsDir + "/tests",

		"src"            : _cwd + "/src"
	}
});