feat: #8734, move sortable to package.json

v1.18.x
Barış Soner Uşaklı 4 years ago
parent 75c9668656
commit cc705e5e2b

@ -127,6 +127,7 @@
"socket.io-client": "2.3.1",
"socket.io-redis": "5.4.0",
"socketio-wildcard": "2.0.0",
"sortablejs": "^1.10.2",
"spdx-license-list": "^6.1.0",
"spider-detector": "2.0.0",
"textcomplete": "^0.17.1",

@ -6,7 +6,8 @@ define('admin/manage/categories', [
'benchpress',
'categorySelector',
'api',
], function (serialize, translator, Benchpress, categorySelector, api) {
'sortable',
], function (serialize, translator, Benchpress, categorySelector, api, Sortable) {
var Categories = {};
var newCategoryId = -1;
var sortables;

File diff suppressed because it is too large Load Diff

@ -83,7 +83,6 @@ JS.scripts = {
admin: [
'node_modules/material-design-lite/material.js',
'public/vendor/jquery/sortable/Sortable.js',
'public/vendor/colorpicker/colorpicker.js',
'public/src/admin/admin.js',
'public/vendor/jquery/serializeObject/jquery.ba-serializeobject.min.js',
@ -296,8 +295,18 @@ function requirejsOptimize(target, callback) {
name: 'bootbox',
},
];
const targetModules = {
admin: [
{
baseUrl: './node_modules/sortablejs',
name: 'sortable',
},
],
client: [
async.eachSeries(bundledModules, function (moduleCfg, next) {
],
};
async.eachSeries(bundledModules.concat(targetModules[target]), function (moduleCfg, next) {
requirejs.optimize({ ...sharedCfg, ...moduleCfg }, function () {
next();
}, function (err) {

Loading…
Cancel
Save