diff --git a/build.config.mjs b/build.config.mjs index 203b1be1f63..af2cf0badde 100644 --- a/build.config.mjs +++ b/build.config.mjs @@ -1,4 +1,4 @@ -export const assetsLookupGlob = "src/{OrchardCore.Themes,OrchardCore.Modules}/**/Assets.json"; +export const assetsLookupGlob = "src/{OrchardCore.Themes,OrchardCore.Modules}/**/Assets2.json"; export const parcelBundleOutput = "src/OrchardCore.Modules/OrchardCore.Resources/wwwroot/Scripts/bundle" export function parcel() { diff --git a/gulpfile.js b/gulpfile.js index 555c9b24339..8275549bc79 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -96,7 +96,7 @@ gulp.task('default', gulp.series(['build'])); */ function getAssetGroups() { - var assetManifestPaths = glob.sync("./src/OrchardCore.{Modules,Themes}/*/GulpAssets.json", {}); + var assetManifestPaths = glob.sync("./src/OrchardCore.{Modules,Themes}/*/Assets.json", {}); var assetGroups = []; assetManifestPaths.forEach(function (assetManifestPath) { var assetManifest = require("./" + assetManifestPath); diff --git a/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Assets.json b/src/OrchardCore.Modules/OrchardCore.AdminDashboard/Assets2.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.AdminDashboard/Assets.json rename to src/OrchardCore.Modules/OrchardCore.AdminDashboard/Assets2.json diff --git a/src/OrchardCore.Modules/OrchardCore.AdminMenu/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.AdminMenu/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.AdminMenu/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.AdminMenu/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.AuditTrail/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.AuditTrail/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.AuditTrail/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.AuditTrail/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.ContentFields/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.ContentFields/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.ContentFields/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.ContentFields/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.ContentLocalization/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.ContentLocalization/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.ContentLocalization/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.ContentLocalization/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.ContentPreview/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.ContentPreview/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.ContentPreview/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.ContentPreview/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.ContentTypes/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.ContentTypes/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.ContentTypes/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.ContentTypes/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Contents/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Contents/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Contents/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Contents/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Cors/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Cors/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Cors/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Cors/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Deployment/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Deployment/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Deployment/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Deployment/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Flows/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Flows/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Flows/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Flows/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Forms/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Forms/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Forms/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Forms/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Html/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Html/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Html/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Html/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Liquid/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Liquid/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Liquid/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Liquid/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Lists/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Lists/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Lists/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Lists/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Localization/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Localization/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Localization/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Localization/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Markdown/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Markdown/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Markdown/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Markdown/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Media/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Media/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Media/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Media/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Menu/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Menu/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Menu/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Menu/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Notifications/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Notifications/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Notifications/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Notifications/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.OpenId/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.OpenId/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.OpenId/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.OpenId/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Resources/Assets.json b/src/OrchardCore.Modules/OrchardCore.Resources/Assets.json index 0d4e12302e9..e882707d07e 100644 --- a/src/OrchardCore.Modules/OrchardCore.Resources/Assets.json +++ b/src/OrchardCore.Modules/OrchardCore.Resources/Assets.json @@ -1,415 +1,58 @@ [ { - "action": "copy", - "name": "credential-helpers", - "source": "Assets/js/credential-helpers.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "bootstrap", - "source": "node_modules/bootstrap/dist/css/bootstrap.css", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "bootstrap", - "source": "node_modules/bootstrap/dist/css/bootstrap.css.map", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "bootstrap", - "source": "node_modules/bootstrap/dist/css/bootstrap.min.css", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "bootstrap-rtl", - "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.css", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "bootstrap-rtl", - "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.css.map", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "bootstrap-rtl", - "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.min.css", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "bootstrap-rtl", - "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.min.css.map", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "bootstrap-js", - "source": "node_modules/bootstrap/dist/js/bootstrap.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "bootstrap-js", - "source": "node_modules/bootstrap/dist/js/bootstrap.js.map", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "bootstrap-js", - "source": "node_modules/bootstrap/dist/js/bootstrap..min.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "bootstrap-js", - "source": "node_modules/bootstrap/dist/js/bootstrap.min.js.map", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - - "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - - "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.js.map", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - - "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - - "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "popper-js", - "source": "node_modules/@popperjs/core/dist/umd/popper.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "bootstrap-select", - "source": "node_modules/bootstrap-select/dist/js/bootstrap-select.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/lib/codemirror.css", - "dest": "wwwroot/Styles/codemirror/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/display/fullscreen.css", - "dest": "wwwroot/Styles/codemirror/addon/display/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/hint/show-hint.css", - "dest": "wwwroot/Styles/codemirror/addon/hint/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/lib/codemirror.js", - "dest": "wwwroot/Scripts/codemirror/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/selection/active-line.js", - "dest": "wwwroot/Scripts/codemirror/addon/selection/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/display/autorefresh.js", - "dest": "wwwroot/Scripts/codemirror/addon/display/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/display/fullscreen.js", - "dest": "wwwroot/Scripts/codemirror/addon/display/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/edit/closetag.js", - "dest": "wwwroot/Scripts/codemirror/addon/edit/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/hint/show-hint.js", - "dest": "wwwroot/Scripts/codemirror/addon/hint/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/hint/sql-hint.js", - "dest": "wwwroot/Scripts/codemirror/addon/hint/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/mode/multiplex.js", - "dest": "wwwroot/Scripts/codemirror/addon/mode/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/addon/mode/simple.js", - "dest": "wwwroot/Scripts/codemirror/addon/mode/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/mode/css/css.js", - "dest": "wwwroot/Scripts/codemirror/mode/css/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/mode/htmlmixed/htmlmixed.js", - "dest": "wwwroot/Scripts/codemirror/mode/htmlmixed/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/mode/javascript/javascript.js", - "dest": "wwwroot/Scripts/codemirror/mode/javascript/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/mode/sql/sql.js", - "dest": "wwwroot/Scripts/codemirror/mode/sql/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "codemirror", - "source": "node_modules/codemirror/mode/xml/xml.js", - "dest": "wwwroot/Scripts/codemirror/mode/xml/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "jquery", - "source": "node_modules/jquery/dist/jquery.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "jquery", - "source": "node_modules/jquery/dist/jquery.slim.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "jquery", - "source": "node_modules/jquery.easing/jquery.easing.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "jquery", - "source": "node_modules/jquery-resizable-dom/dist/jquery-resizable.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "jquery", - "source": "node_modules/@popperjs/core/dist/umd/popper.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "trumbowyg", - "source": "node_modules/trumbowyg/dist/ui/icons.svg", - "dest": "wwwroot/Scripts/trumbowyg/ui/", - "tags": ["resources", "images"] - }, - { - "action": "copy", - "name": "trumbowyg", - "source": "node_modules/trumbowyg/dist/trumbowyg.js", - "dest": "wwwroot/Scripts/trumbowyg/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "trumbowyg", - "source": "Assets/trumbowyg/js/trumbowyg.shortcodes.js", - "dest": "wwwroot/Scripts/trumbowyg/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "trumbowyg", - "source": "Assets/trumbowyg/js/trumbowyg.theme.js", - "dest": "wwwroot/Scripts/trumbowyg/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "vue", - "source": "node_modules/vue/dist/vue.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "vue", - "source": "node_modules/vue/dist/vue.min.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "vue-multiselect", - "source": "node_modules/vue-multiselect/dist/vue-multiselect.min.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "vue-multiselect", - "source": "node_modules/vue-multiselect/dist/vue-multiselect.min.css*", - "dest": "wwwroot/Styles/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "vuedraggable", - "source": "node_modules/vuedraggable/dist/vuedraggable.umd.*", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "sortable", - "source": "node_modules/sortablejs/Sortable.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "sortable", - "source": "node_modules/sortablejs/Sortable.min.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "js-cookie", - "source": "node_modules/js-cookie/dist/js.cookie.js", - "dest": "wwwroot/Scripts/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "nouislider", - "source": "node_modules/nouislider/dist/nouislider.js", - "dest": "wwwroot/Scripts/nouislider/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "nouislider", - "source": "node_modules/nouislider/dist/nouislider.d.ts", - "dest": "wwwroot/Scripts/nouislider/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "nouislider", - "source": "node_modules/nouislider/dist/nouislider.css", - "dest": "wwwroot/Scripts/nouislider/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "fortawesome", - "source": "node_modules/@fortawesome/fontawesome-free/css/*", - "dest": "wwwroot/Vendor/fontawesome-free/css/", - "tags": ["resources", "css"] - }, - { - "action": "copy", - "name": "fortawesome", - "source": "node_modules/@fortawesome/fontawesome-free/js/*", - "dest": "wwwroot/Vendor/fontawesome-free/js/", - "tags": ["resources", "js"] - }, - { - "action": "copy", - "name": "fortawesome", - "source": "node_modules/@fortawesome/fontawesome-free/webfonts/*", - "dest": "wwwroot/Vendor/fontawesome-free/webfonts/", - "tags": ["resources", "fonts"] - }, - { - "action": "copy", - "name": "monaco", - "source": "Assets/monaco/*", - "dest": "wwwroot/Scripts/monaco/", - "tags": ["resources", "js"] + "generateRTL": true, + "inputs": [ + "../../../node_modules/bootstrap-select/dist/css/bootstrap-select.css" + ], + "output": "wwwroot/Styles/bootstrap-select.css" + }, + { + "generateRTL": true, + "inputs": [ + "../../../node_modules/trumbowyg/dist/ui/sass/trumbowyg.scss" + ], + "output": "wwwroot/Styles/trumbowyg/trumbowyg.css" + }, + { + "generateRTL": true, + "inputs": [ + "Assets/trumbowyg/plugins/*/ui/sass/*.scss" + ], + "output": "wwwroot/Styles/trumbowyg/trumbowyg-plugins.css" + }, + { + "inputs": [ + "Assets/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js", + "Assets/trumbowyg/plugins/base64/trumbowyg.base64.js", + "Assets/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js", + "Assets/trumbowyg/plugins/colors/trumbowyg.colors.js", + "Assets/trumbowyg/plugins/emoji/trumbowyg.emoji.js", + "Assets/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js", + "Assets/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js", + "Assets/trumbowyg/plugins/giphy/trumbowyg.giphy.js", + "Assets/trumbowyg/plugins/history/trumbowyg.history.js", + "Assets/trumbowyg/plugins/indent/trumbowyg.indent.js", + "Assets/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js", + "Assets/trumbowyg/plugins/lineheight/trumbowyg.lineheight.js", + "Assets/trumbowyg/plugins/mathml/trumbowyg.mathml.js", + "Assets/trumbowyg/plugins/mention/trumbowyg.mention.js", + "Assets/trumbowyg/plugins/noembed/trumbowyg.noembed.js", + "Assets/trumbowyg/plugins/pasteembed/trumbowyg.pasteembed.js", + "Assets/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.js", + "Assets/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js", + "Assets/trumbowyg/plugins/resizimg/trumbowyg.resizimg.js", + "Assets/trumbowyg/plugins/specialchars/trumbowyg.specialchars.js", + "Assets/trumbowyg/plugins/table/trumbowyg.table.js", + "Assets/trumbowyg/plugins/template/trumbowyg.template.js", + "Assets/trumbowyg/plugins/upload/trumbowyg.upload.js" + ], + "output": "wwwroot/Scripts/trumbowyg/trumbowyg-plugins.js" + }, + { + "copy": true, + "inputs": [ + "../../../node_modules/monaco-editor/min/**/*" + ], + "output": "wwwroot/Scripts/monaco/@" } ] diff --git a/src/OrchardCore.Modules/OrchardCore.Resources/Assets2.json b/src/OrchardCore.Modules/OrchardCore.Resources/Assets2.json new file mode 100644 index 00000000000..0d4e12302e9 --- /dev/null +++ b/src/OrchardCore.Modules/OrchardCore.Resources/Assets2.json @@ -0,0 +1,415 @@ +[ + { + "action": "copy", + "name": "credential-helpers", + "source": "Assets/js/credential-helpers.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "bootstrap", + "source": "node_modules/bootstrap/dist/css/bootstrap.css", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "bootstrap", + "source": "node_modules/bootstrap/dist/css/bootstrap.css.map", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "bootstrap", + "source": "node_modules/bootstrap/dist/css/bootstrap.min.css", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "bootstrap-rtl", + "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.css", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "bootstrap-rtl", + "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.css.map", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "bootstrap-rtl", + "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.min.css", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "bootstrap-rtl", + "source": "node_modules/bootstrap/dist/css/bootstrap.rtl.min.css.map", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "bootstrap-js", + "source": "node_modules/bootstrap/dist/js/bootstrap.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "bootstrap-js", + "source": "node_modules/bootstrap/dist/js/bootstrap.js.map", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "bootstrap-js", + "source": "node_modules/bootstrap/dist/js/bootstrap..min.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "bootstrap-js", + "source": "node_modules/bootstrap/dist/js/bootstrap.min.js.map", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + + "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + + "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.js.map", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + + "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + + "source": "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "popper-js", + "source": "node_modules/@popperjs/core/dist/umd/popper.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "bootstrap-select", + "source": "node_modules/bootstrap-select/dist/js/bootstrap-select.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/lib/codemirror.css", + "dest": "wwwroot/Styles/codemirror/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/display/fullscreen.css", + "dest": "wwwroot/Styles/codemirror/addon/display/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/hint/show-hint.css", + "dest": "wwwroot/Styles/codemirror/addon/hint/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/lib/codemirror.js", + "dest": "wwwroot/Scripts/codemirror/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/selection/active-line.js", + "dest": "wwwroot/Scripts/codemirror/addon/selection/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/display/autorefresh.js", + "dest": "wwwroot/Scripts/codemirror/addon/display/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/display/fullscreen.js", + "dest": "wwwroot/Scripts/codemirror/addon/display/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/edit/closetag.js", + "dest": "wwwroot/Scripts/codemirror/addon/edit/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/hint/show-hint.js", + "dest": "wwwroot/Scripts/codemirror/addon/hint/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/hint/sql-hint.js", + "dest": "wwwroot/Scripts/codemirror/addon/hint/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/mode/multiplex.js", + "dest": "wwwroot/Scripts/codemirror/addon/mode/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/addon/mode/simple.js", + "dest": "wwwroot/Scripts/codemirror/addon/mode/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/mode/css/css.js", + "dest": "wwwroot/Scripts/codemirror/mode/css/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/mode/htmlmixed/htmlmixed.js", + "dest": "wwwroot/Scripts/codemirror/mode/htmlmixed/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/mode/javascript/javascript.js", + "dest": "wwwroot/Scripts/codemirror/mode/javascript/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/mode/sql/sql.js", + "dest": "wwwroot/Scripts/codemirror/mode/sql/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "codemirror", + "source": "node_modules/codemirror/mode/xml/xml.js", + "dest": "wwwroot/Scripts/codemirror/mode/xml/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "jquery", + "source": "node_modules/jquery/dist/jquery.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "jquery", + "source": "node_modules/jquery/dist/jquery.slim.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "jquery", + "source": "node_modules/jquery.easing/jquery.easing.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "jquery", + "source": "node_modules/jquery-resizable-dom/dist/jquery-resizable.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "jquery", + "source": "node_modules/@popperjs/core/dist/umd/popper.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "trumbowyg", + "source": "node_modules/trumbowyg/dist/ui/icons.svg", + "dest": "wwwroot/Scripts/trumbowyg/ui/", + "tags": ["resources", "images"] + }, + { + "action": "copy", + "name": "trumbowyg", + "source": "node_modules/trumbowyg/dist/trumbowyg.js", + "dest": "wwwroot/Scripts/trumbowyg/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "trumbowyg", + "source": "Assets/trumbowyg/js/trumbowyg.shortcodes.js", + "dest": "wwwroot/Scripts/trumbowyg/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "trumbowyg", + "source": "Assets/trumbowyg/js/trumbowyg.theme.js", + "dest": "wwwroot/Scripts/trumbowyg/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "vue", + "source": "node_modules/vue/dist/vue.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "vue", + "source": "node_modules/vue/dist/vue.min.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "vue-multiselect", + "source": "node_modules/vue-multiselect/dist/vue-multiselect.min.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "vue-multiselect", + "source": "node_modules/vue-multiselect/dist/vue-multiselect.min.css*", + "dest": "wwwroot/Styles/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "vuedraggable", + "source": "node_modules/vuedraggable/dist/vuedraggable.umd.*", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "sortable", + "source": "node_modules/sortablejs/Sortable.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "sortable", + "source": "node_modules/sortablejs/Sortable.min.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "js-cookie", + "source": "node_modules/js-cookie/dist/js.cookie.js", + "dest": "wwwroot/Scripts/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "nouislider", + "source": "node_modules/nouislider/dist/nouislider.js", + "dest": "wwwroot/Scripts/nouislider/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "nouislider", + "source": "node_modules/nouislider/dist/nouislider.d.ts", + "dest": "wwwroot/Scripts/nouislider/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "nouislider", + "source": "node_modules/nouislider/dist/nouislider.css", + "dest": "wwwroot/Scripts/nouislider/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "fortawesome", + "source": "node_modules/@fortawesome/fontawesome-free/css/*", + "dest": "wwwroot/Vendor/fontawesome-free/css/", + "tags": ["resources", "css"] + }, + { + "action": "copy", + "name": "fortawesome", + "source": "node_modules/@fortawesome/fontawesome-free/js/*", + "dest": "wwwroot/Vendor/fontawesome-free/js/", + "tags": ["resources", "js"] + }, + { + "action": "copy", + "name": "fortawesome", + "source": "node_modules/@fortawesome/fontawesome-free/webfonts/*", + "dest": "wwwroot/Vendor/fontawesome-free/webfonts/", + "tags": ["resources", "fonts"] + }, + { + "action": "copy", + "name": "monaco", + "source": "Assets/monaco/*", + "dest": "wwwroot/Scripts/monaco/", + "tags": ["resources", "js"] + } +] diff --git a/src/OrchardCore.Modules/OrchardCore.Resources/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Resources/GulpAssets.json deleted file mode 100644 index e882707d07e..00000000000 --- a/src/OrchardCore.Modules/OrchardCore.Resources/GulpAssets.json +++ /dev/null @@ -1,58 +0,0 @@ -[ - { - "generateRTL": true, - "inputs": [ - "../../../node_modules/bootstrap-select/dist/css/bootstrap-select.css" - ], - "output": "wwwroot/Styles/bootstrap-select.css" - }, - { - "generateRTL": true, - "inputs": [ - "../../../node_modules/trumbowyg/dist/ui/sass/trumbowyg.scss" - ], - "output": "wwwroot/Styles/trumbowyg/trumbowyg.css" - }, - { - "generateRTL": true, - "inputs": [ - "Assets/trumbowyg/plugins/*/ui/sass/*.scss" - ], - "output": "wwwroot/Styles/trumbowyg/trumbowyg-plugins.css" - }, - { - "inputs": [ - "Assets/trumbowyg/plugins/allowtagsfrompaste/trumbowyg.allowtagsfrompaste.js", - "Assets/trumbowyg/plugins/base64/trumbowyg.base64.js", - "Assets/trumbowyg/plugins/cleanpaste/trumbowyg.cleanpaste.js", - "Assets/trumbowyg/plugins/colors/trumbowyg.colors.js", - "Assets/trumbowyg/plugins/emoji/trumbowyg.emoji.js", - "Assets/trumbowyg/plugins/fontfamily/trumbowyg.fontfamily.js", - "Assets/trumbowyg/plugins/fontsize/trumbowyg.fontsize.js", - "Assets/trumbowyg/plugins/giphy/trumbowyg.giphy.js", - "Assets/trumbowyg/plugins/history/trumbowyg.history.js", - "Assets/trumbowyg/plugins/indent/trumbowyg.indent.js", - "Assets/trumbowyg/plugins/insertaudio/trumbowyg.insertaudio.js", - "Assets/trumbowyg/plugins/lineheight/trumbowyg.lineheight.js", - "Assets/trumbowyg/plugins/mathml/trumbowyg.mathml.js", - "Assets/trumbowyg/plugins/mention/trumbowyg.mention.js", - "Assets/trumbowyg/plugins/noembed/trumbowyg.noembed.js", - "Assets/trumbowyg/plugins/pasteembed/trumbowyg.pasteembed.js", - "Assets/trumbowyg/plugins/pasteimage/trumbowyg.pasteimage.js", - "Assets/trumbowyg/plugins/preformatted/trumbowyg.preformatted.js", - "Assets/trumbowyg/plugins/resizimg/trumbowyg.resizimg.js", - "Assets/trumbowyg/plugins/specialchars/trumbowyg.specialchars.js", - "Assets/trumbowyg/plugins/table/trumbowyg.table.js", - "Assets/trumbowyg/plugins/template/trumbowyg.template.js", - "Assets/trumbowyg/plugins/upload/trumbowyg.upload.js" - ], - "output": "wwwroot/Scripts/trumbowyg/trumbowyg-plugins.js" - }, - { - "copy": true, - "inputs": [ - "../../../node_modules/monaco-editor/min/**/*" - ], - "output": "wwwroot/Scripts/monaco/@" - } -] diff --git a/src/OrchardCore.Modules/OrchardCore.Rules/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Rules/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Rules/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Rules/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Seo/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Seo/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Seo/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Seo/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Setup/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Setup/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Setup/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Setup/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Shortcodes/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Shortcodes/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Shortcodes/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Shortcodes/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Spatial/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Spatial/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Spatial/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Spatial/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Taxonomies/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Taxonomies/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Taxonomies/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Taxonomies/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Templates/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Templates/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Templates/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Templates/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Themes/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Themes/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Themes/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Themes/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.UrlRewriting/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.UrlRewriting/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.UrlRewriting/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.UrlRewriting/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Users/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Users/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Users/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Users/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Widgets/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Widgets/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Widgets/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Widgets/Assets.json diff --git a/src/OrchardCore.Modules/OrchardCore.Workflows/GulpAssets.json b/src/OrchardCore.Modules/OrchardCore.Workflows/Assets.json similarity index 100% rename from src/OrchardCore.Modules/OrchardCore.Workflows/GulpAssets.json rename to src/OrchardCore.Modules/OrchardCore.Workflows/Assets.json diff --git a/src/OrchardCore.Themes/TheAdmin/GulpAssets.json b/src/OrchardCore.Themes/TheAdmin/Assets.json similarity index 100% rename from src/OrchardCore.Themes/TheAdmin/GulpAssets.json rename to src/OrchardCore.Themes/TheAdmin/Assets.json diff --git a/src/OrchardCore.Themes/TheAgencyTheme/GulpAssets.json b/src/OrchardCore.Themes/TheAgencyTheme/Assets.json similarity index 100% rename from src/OrchardCore.Themes/TheAgencyTheme/GulpAssets.json rename to src/OrchardCore.Themes/TheAgencyTheme/Assets.json diff --git a/src/OrchardCore.Themes/TheBlogTheme/GulpAssets.json b/src/OrchardCore.Themes/TheBlogTheme/Assets.json similarity index 100% rename from src/OrchardCore.Themes/TheBlogTheme/GulpAssets.json rename to src/OrchardCore.Themes/TheBlogTheme/Assets.json diff --git a/src/OrchardCore.Themes/TheComingSoonTheme/GulpAssets.json b/src/OrchardCore.Themes/TheComingSoonTheme/Assets.json similarity index 100% rename from src/OrchardCore.Themes/TheComingSoonTheme/GulpAssets.json rename to src/OrchardCore.Themes/TheComingSoonTheme/Assets.json diff --git a/src/OrchardCore.Themes/TheTheme/GulpAssets.json b/src/OrchardCore.Themes/TheTheme/Assets.json similarity index 100% rename from src/OrchardCore.Themes/TheTheme/GulpAssets.json rename to src/OrchardCore.Themes/TheTheme/Assets.json