From cb04731319bdc2c388ba765999af8818181d98b9 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Mon, 21 Jun 2021 14:22:31 +0300 Subject: [PATCH] libs --- Gruntfile.js | 10 ----- frontend/libs.json | 91 +++++++++++++++++++++++++++++++++++++--------- 2 files changed, 73 insertions(+), 28 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index 071ee7f75e..a7788f8b3a 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -397,12 +397,6 @@ function getBundleLibList() { let list = []; libs.forEach(item => { - if (typeof item === 'string') { - list.push(item); - - return; - } - if (!item.bundle) { return; } @@ -423,10 +417,6 @@ function getCopyLibList() { let list = []; libs.forEach(item => { - if (typeof item === 'string') { - return; - } - if (item.bundle) { return; } diff --git a/frontend/libs.json b/frontend/libs.json index 777281caca..47fa23982d 100644 --- a/frontend/libs.json +++ b/frontend/libs.json @@ -1,22 +1,77 @@ [ - "jquery/dist/jquery.js", - "underscore/underscore.js", - "es6-promise/dist/es6-promise.js", - "backbone/backbone.js", - "handlebars/dist/handlebars.js", - "bullbone/dist/bullbone.js", - "base-64/base64.js", - "moment/moment.js", - "moment-timezone/moment-timezone.js", - "timepicker/jquery.timepicker.js", - "devbridge-autocomplete/dist/jquery.autocomplete.js", - "jquery-textcomplete/dist/jquery.textcomplete.js", - "bootstrap/dist/js/bootstrap.js", - "bootstrap-datepicker/dist/js/bootstrap-datepicker.js", - "marked/lib/marked.js", - "dompurify/dist/purify.js", - "gridstack/dist/gridstack.js", - "gridstack/dist/gridstack.jQueryUI.js", + + { + "path": "jquery/dist/jquery.js", + "bundle": true + }, + { + "path": "underscore/underscore.js", + "bundle": true + }, + { + "path": "es6-promise/dist/es6-promise.js", + "bundle": true + }, + { + "path": "backbone/backbone.js", + "bundle": true + }, + { + "path": "handlebars/dist/handlebars.js", + "bundle": true + }, + { + "path": "bullbone/dist/bullbone.js", + "bundle": true + }, + { + "path": "base-64/base64.js", + "bundle": true + }, + { + "path": "moment/moment.js", + "bundle": true + }, + { + "path": "moment-timezone/moment-timezone.js", + "bundle": true + }, + { + "path": "timepicker/jquery.timepicker.js", + "bundle": true + }, + { + "path": "devbridge-autocomplete/dist/jquery.autocomplete.js", + "bundle": true + }, + { + "path": "jquery-textcomplete/dist/jquery.textcomplete.js", + "bundle": true + }, + { + "path": "bootstrap/dist/js/bootstrap.js", + "bundle": true + }, + { + "path": "bootstrap-datepicker/dist/js/bootstrap-datepicker.js", + "bundle": true + }, + { + "path": "marked/lib/marked.js", + "bundle": true + }, + { + "path": "dompurify/dist/purify.js", + "bundle": true + }, + { + "path": "gridstack/dist/gridstack.js", + "bundle": true + }, + { + "path": "gridstack/dist/gridstack.jQueryUI.js", + "bundle": true + }, { "path": "selectize/dist/js/standalone/selectize.js" },