using System.Linq; using Cassette; using Cassette.Scripts; using Cassette.Stylesheets; namespace NzbDrone.Web.Backbone.NzbDrone { public class CassetteBundleConfiguration : IConfiguration { public const string BASE_STYLE = "BASE_STYLE"; public const string BACKBONE = "BACKBONE"; public const string NZBDRONE = "NZBDRONE"; internal const string FONTS = "FONTS"; private const string APP_PATH = "_backboneApp"; public void Configure(BundleCollection bundles) { bundles.AddUrlWithAlias("//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,400,600,300'", FONTS); //bundles.AddPerSubDirectory("Backbone.NzbDrone"); bundles.Add(BASE_STYLE, new[]{ APP_PATH + "\\Content\\Bootstrap\\bootstrap.less", APP_PATH + "\\Content\\base.css", APP_PATH + "\\Content\\menu.css", APP_PATH + "\\AddSeries\\addSeries.css" }, bundle => bundle.AddReference("/" + FONTS)); bundles.Add(BACKBONE, new[]{ APP_PATH + "\\JsLibraries\\jquery-1.8.2.js", APP_PATH + "\\JsLibraries\\bootstrap.js", APP_PATH + "\\JsLibraries\\underscore.js", APP_PATH + "\\JsLibraries\\backbone.js", APP_PATH + "\\JsLibraries\\backbone.marionette.js", APP_PATH + "\\JsLibraries\\backbone.marionette.extend.js", }); bundles.Add(NZBDRONE, new[]{ APP_PATH + "\\app.js", APP_PATH + "\\AddSeries\\addSeriesView.js"}, bundle => bundle.AddReference("/" + BACKBONE)); } } }