外部javascript库-升级

bkkx9g8r  于 2021-09-13  发布在  Java
关注(0)|答案(0)|浏览(187)

目前,我正在从事几年前创建的一个VisualStudio项目。
我发现他们把所有的javascript库都放在一个文件夹中。
我喜欢升级一些javascript库。我可以知道实现这一目标的最佳方式吗?最佳实践是什么?
小贩
很棒的引导复选框
引导数据采集器主机
引导选择
自举星级
引导触针
chartjs
jquery
jquery用户界面
jquery验证
击倒
击倒邮箱
选择2引导
telerik.kendoui.professional
库的外观如附件所示

// Font Awesome icons style
        bundles.Add(new StyleBundle("~/bundles/font-awesome/css").Include(
                  "~/Vendor/fontawesome/css/font-awesome.min.css", new CssRewriteUrlTransformWrapper()));

        // Bootstrap style
        bundles.Add(new StyleBundle("~/bundles/bootstrap/css").Include(
                  "~/Vendor/bootstrap/dist/css/bootstrap.min.css", new CssRewriteUrlTransformWrapper()));

        // Bootstrap
        bundles.Add(new ScriptBundle("~/bundles/bootstrap/js").Include(
                  "~/Vendor/bootstrap/dist/js/bootstrap.min.js"));

        // jQuery
        bundles.Add(new ScriptBundle("~/bundles/jquery/js").Include(
                  "~/Vendor/jquery/dist/jquery.min.js"));

        // jQuery UI
        bundles.Add(new ScriptBundle("~/bundles/jqueryui/js").Include(
                  "~/Vendor/jquery-ui/jquery-ui.min.js"));

        // Flot chart
        bundles.Add(new ScriptBundle("~/bundles/flot/js").Include(
                  "~/Vendor/flot/jquery.flot.js",
                  "~/Vendor/flot/jquery.flot.tooltip.min.js",
                  "~/Vendor/flot/jquery.flot.resize.js",
                  "~/Vendor/flot/jquery.flot.pie.js",
                  "~/Vendor/flot.curvedlines/curvedLines.js",
                  "~/Vendor/jquery.flot.spline/index.js"));

        // Slick carousel Styless
        bundles.Add(new StyleBundle("~/bundles/slickStyles").Include(
                  "~/Vendor/slick/slick.css", new CssRewriteUrlTransform()));

        // Slick carousel theme Styless
        bundles.Add(new StyleBundle("~/bundles/slickThemeStyles").Include(
                  "~/Vendor/slick/slick-theme.css", new CssRewriteUrlTransform()));

        // Slick carousel
        bundles.Add(new ScriptBundle("~/bundles/slick").Include(
                  "~/Vendor/slick/slick.min.js"));

        // SlimScroll
        bundles.Add(new ScriptBundle("~/bundles/slimScroll/js").Include(
                  "~/Vendor/slimScroll/jquery.slimscroll.min.js"));

        // Star rating
        bundles.Add(new ScriptBundle("~/bundles/starRating/js").Include(
                  "~/Vendor/bootstrap-star-rating/js/star-rating.min.js"));

        // Star rating style
        bundles.Add(new StyleBundle("~/bundles/starRating/css").Include(
                  "~/Vendor/bootstrap-star-rating/css/star-rating.min.css", new CssRewriteUrlTransformWrapper()));

        // Sweetalert
        bundles.Add(new ScriptBundle("~/bundles/sweetAlert/js").Include(
                  "~/Vendor/sweetalert/lib/sweet-alert.min.js"));

        // Sweetalert style
        bundles.Add(new StyleBundle("~/bundles/sweetAlert/css").Include(
                  "~/Vendor/sweetalert/lib/sweet-alert.css"));

        // Toastr
        bundles.Add(new ScriptBundle("~/bundles/toastr/js").Include(
                  "~/Vendor/toastr/build/toastr.min.js"));

        // Toastr style
        bundles.Add(new StyleBundle("~/bundles/toastr/css").Include(
                  "~/Vendor/toastr/build/toastr.min.css"));

        // Nestable
        bundles.Add(new ScriptBundle("~/bundles/nestable/js").Include(
                  "~/Vendor/nestable/jquery.nestable.js"));

        // Toastr
        bundles.Add(new ScriptBundle("~/bundles/bootstrapTour/js").Include(
                  "~/Vendor/bootstrap-tour/build/js/bootstrap-tour.min.js"));

        // Toastr style
        bundles.Add(new StyleBundle("~/bundles/bootstrapTour/css").Include(
                  "~/Vendor/bootstrap-tour/build/css/bootstrap-tour.min.css"));

        // Moment
        bundles.Add(new ScriptBundle("~/bundles/moment/js").Include(
                  "~/Vendor/moment/moment.js",
                  "~/Vendor/moment/momentjs-business.js"));

        // Full Calendar
        bundles.Add(new ScriptBundle("~/bundles/fullCalendar/js").Include(
                  "~/Vendor/fullcalendar/dist/fullcalendar.min.js"));

        // Full Calendar style
        bundles.Add(new StyleBundle("~/bundles/fullCalendar/css").Include(
                  "~/Vendor/fullcalendar/dist/fullcalendar.min.css"));

        // Chart JS
        bundles.Add(new ScriptBundle("~/bundles/chartjs/js").Include(
                  "~/Vendor/chartjs/Chart.min.js"));

        // Datatables
        bundles.Add(new ScriptBundle("~/bundles/datatables/js").Include(
                  "~/Vendor/datatables/media/js/jquery.dataTables.min.js",                      
                  "~/Vendor/datatables_plugins/tooltip/tooltip.js"));

        // Datatables bootstrap
        bundles.Add(new ScriptBundle("~/bundles/datatablesBootstrap/js").Include(
                  "~/Vendor/datatables_plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"));

        // Datatables style
        bundles.Add(new StyleBundle("~/bundles/datatables/css").Include(
                  "~/Vendor/datatables_plugins/integration/bootstrap/3/dataTables.bootstrap.css"));

        // Xeditable
        bundles.Add(new ScriptBundle("~/bundles/xeditable/js").Include(
                  "~/Vendor/xeditable/bootstrap3-editable/js/bootstrap-editable.min.js"));

        // Xeditable style
        bundles.Add(new StyleBundle("~/bundles/xeditable/css").Include(
                  "~/Vendor/xeditable/bootstrap3-editable/css/bootstrap-editable.css", new CssRewriteUrlTransformWrapper()));

        // Select 2
        bundles.Add(new ScriptBundle("~/bundles/select2/js").Include(
                  "~/Vendor/select2-3.5.2/select2.min.js"));

        // Select 2 style           
        bundles.Add(new StyleBundle("~/bundles/select2/css").Include(
                 "~/Vendor/select2-3.5.2/select2.css", new CssRewriteUrlTransformWrapper()));
        bundles.Add(new StyleBundle("~/bundles/select2-bootstrap/css").Include(
                 "~/Vendor/select2-bootstrap/select2-bootstrap.css", new CssRewriteUrlTransformWrapper()));

        // Touchspin
        bundles.Add(new ScriptBundle("~/bundles/touchspin/js").Include(
                  "~/Vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.js"));

        // Touchspin style
        bundles.Add(new StyleBundle("~/bundles/touchspin/css").Include(
                  "~/Vendor/bootstrap-touchspin/dist/jquery.bootstrap-touchspin.min.css"));

        // Datepicker
        bundles.Add(new ScriptBundle("~/bundles/datepicker/js").Include(
                  "~/Vendor/bootstrap-datepicker-master/dist/js/bootstrap-datepicker.min.js"));

        // Datepicker style
        bundles.Add(new StyleBundle("~/bundles/datepicker/css").Include(
                  "~/Vendor/bootstrap-datepicker-master/dist/css/bootstrap-datepicker3.min.css"));

        // Datepicker
        bundles.Add(new ScriptBundle("~/bundles/summernote/js").Include(
                  "~/Vendor/summernote/dist/summernote.min.js"));

        // Datepicker style
        bundles.Add(new StyleBundle("~/bundles/summernote/css").Include(
                  "~/Vendor/summernote/dist/summernote.css",
                  "~/Vendor/summernote/dist/summernote-bs3.css"));

        // Bootstrap checkbox style
        bundles.Add(new StyleBundle("~/bundles/bootstrapCheckbox/css").Include(
                  "~/Vendor/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css"));

        // Blueimp gallery
        bundles.Add(new ScriptBundle("~/bundles/blueimp/js").Include(
                  "~/Vendor/blueimp-gallery/js/jquery.blueimp-gallery.min.js"));

        // Blueimp gallery style
        bundles.Add(new StyleBundle("~/bundles/blueimp/css").Include(
                  "~/Vendor/blueimp-gallery/css/blueimp-gallery.min.css", new CssRewriteUrlTransformWrapper()));

        // Foo Table
        bundles.Add(new ScriptBundle("~/bundles/fooTable/js").Include(
                  "~/Vendor/fooTable/dist/footable.all.min.js"));

        // Foo Table style
        bundles.Add(new StyleBundle("~/bundles/fooTable/css").Include(
                  "~/Vendor/fooTable/css/footable.core.min.css", new CssRewriteUrlTransformWrapper()));

        // jQuery Validation
        bundles.Add(new ScriptBundle("~/bundles/validation/js").Include(
                  "~/Vendor/jquery-validation/jquery.validate.min.js",
                  "~/Vendor/jquery-validation/additional-methods.min.js"));

        // high charts
        bundles.Add(new ScriptBundle("~/bundles/highcharts/js").Include(
                  "~/Vendor/highcharts/highcharts.js",
                  "~/Vendor/highcharts/highcharts-3d.js",
                  "~/Vendor/highcharts/highcharts-more.js",
                  "~/Vendor/highcharts/modules/drilldown.js",
                  "~/Vendor/highcharts/modules/pattern-fill.js",
                  "~/Vendor/highcharts/modules/funnel.js",
                  "~/Vendor/highcharts/modules/exporting.js",
                  "~/Vendor/highcharts/modules/solid-gauge.js"));

        // knockout
        bundles.Add(new ScriptBundle("~/bundles/ko/js").Include(
                  "~/Vendor/knockout/knockout-{version}.js"));

        // knockout postbox
        bundles.Add(new ScriptBundle("~/bundles/kopostbox/js").Include(
                  "~/Vendor/knockout-postbox/knockout-postbox.js"));

        // jquery template
        bundles.Add(new ScriptBundle("~/bundles/jqueryTmpl/js").Include(
                  "~/Vendor/jquery-template/jQuery.tmpl.js"));

        // datatables buttons
        bundles.Add(new ScriptBundle("~/bundles/datatablesButtons/js").Include(
                  "~/Vendor/datatables_extensions/buttons/js/dataTables.buttons.js"));

        bundles.Add(new ScriptBundle("~/bundles/datatablesButtonsBootstrap/js").Include(
                  "~/Vendor/datatables_extensions/buttons/js/buttons.print.js",
                  "~/Vendor/datatables_extensions/buttons/js/buttons.html5.js",
                  "~/Vendor/datatables_extensions/buttons/js/buttons.bootstrap.js"));

        // datatables buttons style
        bundles.Add(new StyleBundle("~/bundles/datatablesButtons/css").Include(
                  "~/Vendor/datatables_extensions/buttons/css/buttons.dataTables.min.css",
                  "~/Vendor/datatables_extensions/buttons/css/buttons.bootstrap.min.css"));
        // gridster
        bundles.Add(new ScriptBundle("~/bundles/gridster/js").Include(
                  "~/Vendor/gridster/jquery.gridster.min.js",
                  "~/Vendor/gridster/jquery.gridster.with-extras.min.js"));

        // gridster style
        bundles.Add(new StyleBundle("~/bundles/gridster/css").Include(
                  "~/Vendor/gridster/jquery.gridster.min.css"));

        // site style
        bundles.Add(new StyleBundle("~/bundles/site/css").Include(
                  "~/Content/Site.css",
                  "~/Content/print.css"));

        // boostrap select style
        bundles.Add(new StyleBundle("~/bundles/bootstrapSelect/css").Include(
                  "~/Vendor/bootstrap-select/css/bootstrap-select.min.css"));

        // bootstrap select js
        bundles.Add(new ScriptBundle("~/bundles/bootstrapSelect/js").Include(
                  "~/Vendor/bootstrap-select/js/bootstrap-select.min.js"));

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

        // cropbox
        bundles.Add(new ScriptBundle("~/bundles/cropbox/js").Include(
                  "~/Vendor/cropbox/cropbox.js"));

        // gridstack js
        bundles.Add(new ScriptBundle("~/bundles/gridstack/js").Include(
                  "~/Vendor/gridstack.js-master/js/gridstack.min.js"));

        // gridstack css
        bundles.Add(new StyleBundle("~/bundles/gridstack/css").Include(
                  "~/Vendor/gridstack.js-master/css/gridstack.min.css"));

        // fingerprint js
        bundles.Add(new ScriptBundle("~/bundles/fingerprint/js").Include(
                  "~/Vendor/fingerprintjs2/fingerprint2.min.js"));

        // dual listbox css
        bundles.Add(new StyleBundle("~/bundles/dualListbox/css").Include(
                "~/Vendor/dualListbox/bootstrap-duallistbox.min.css"));

        // dual listbox js
        bundles.Add(new ScriptBundle("~/bundles/dualListbox/js").Include(
                "~/Vendor/dualListbox/jquery.bootstrap-duallistbox.js"));

        //ko validator
        bundles.Add(new ScriptBundle("~/bundles/ko-validator/js").Include(
                "~/Vendor/Knockout-Validation-master/dist/knockout.validation.min.js"));

        //kendo-grid-js
        bundles.Add(new ScriptBundle("~/bundles/kendo-grid/js").Include(
                "~/Vendor/telerik.kendoui.professional/js/kendo.web.min.js",
                "~/Vendor/telerik.kendoui.professional/js/jszip.min.js",
                "~/Vendor/telerik.kendoui.professional/js/pako_deflate.min.js",
                "~/Vendor/telerik.kendoui.professional/js/kendo.all.min.js",
                "~/Scripts/app/kendo.custom.js"));

        //kendo-common-css
        bundles.Add(new StyleBundle("~/bundles/kendo-common/css")
                  .Include("~/Vendor/telerik.kendoui.professional/styles/kendo.common.min.css", new CssRewriteUrlTransformWrapper()));

        //kendo-theme-css
        bundles.Add(new StyleBundle("~/bundles/kendo-theme/css").Include(
                  string.Format("~/Vendor/telerik.kendoui.professional/styles/kendo.{0}.min.css", System.Configuration.ConfigurationManager.AppSettings["KendoTheme"]), new CssRewriteUrlTransformWrapper()));

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题