﻿using System.Web;
using System.Web.Optimization;

namespace Aurora
{
    public sealed class BundleConfig
    {
        // For more information on bundling, visit http://go.microsoft.com/fwlink/?LinkId=301862
        public static void RegisterBundles(BundleCollection bundles)
        {
            bundles.Add(new ScriptBundle("~/bundles/frameworks").Include(
                        "~/Scripts/jquery-{version}.js",
                        "~/Scripts/angular.js",
                        "~/Scripts/angular-route.js"));

            bundles.Add(new ScriptBundle("~/bundles/bootstrap").Include(
                         "~/Scripts/bootstrap.js"));

            bundles.Add(new ScriptBundle("~/bundles/aurora").Include(
                        "~/Scripts/app/core/core.module.js",
                        "~/Scripts/app/core/core.js",
                        "~/Scripts/app/core/dataservice.js",
                        "~/Scripts/app/widgets/widgets.module.js",
                        "~/Scripts/app/widgets/aaWidgetLoadingDisplay.js",
                        "~/Scripts/app/widgets/aaWidgetErrorDisplay.js",
                        "~/Scripts/app/widgets/aaWidgetMaintenanceDisplay.js",
                        "~/Scripts/app/layout/layout.module.js",
                        "~/Scripts/app/layout/layout.js",
                        "~/Scripts/app/overview/overview.module.js",
                        "~/Scripts/app/overview/overview.js",
                        "~/Scripts/app/aurora.js"));

            bundles.Add(new StyleBundle("~/Content/css").Include(
                      "~/Content/bootstrap.css",
                      "~/Content/sitestrap.css",
                      "~/Content/site.css"));
        }
    }
}
