Skip to content

Commit

Permalink
Migrate OrchardCore.Resources assets
Browse files Browse the repository at this point in the history
Use Glob pattern in new Assets.json file
  • Loading branch information
Skrypt committed Jan 8, 2025
1 parent fd7c476 commit 7b19fe8
Show file tree
Hide file tree
Showing 11 changed files with 47 additions and 9,606 deletions.
59 changes: 47 additions & 12 deletions src/OrchardCore.Modules/OrchardCore.Resources/Assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,35 +85,28 @@
},
{
"action": "copy",
"name": "bootstrap-bundle-js",

"source": "node_modules/bootstrap/dist/js/bootstrap.bundle.js",
"dest": "wwwroot/Scripts/",
"tags": ["resources", "js"]
},
{
"action": "copy",
"name": "bootstrap-bundle-js",

"source": "node_modules/bootstrap/dist/js/bootstrap.bundle.js.map",
"dest": "wwwroot/Scripts/",
"tags": ["resources", "js"]
},
{
"action": "copy",
"name": "bootstrap-bundle-js",

"source": "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js",
"dest": "wwwroot/Scripts/",
"tags": ["resources", "js"]
},
{
"action": "copy",
"name": "bootstrap-bundle-js",
"source": "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map",
"dest": "wwwroot/Scripts/",
"tags": ["resources", "js"]
},
{
"action": "copy",
"name": "bootstrap-bundle-js",

"source": "node_modules/bootstrap/dist/js/bootstrap.bundle.min.js.map",
"dest": "wwwroot/Scripts/",
"tags": ["resources", "js"]
Expand Down Expand Up @@ -291,7 +284,7 @@
"name": "trumbowyg",
"source": "node_modules/trumbowyg/dist/ui/icons.svg",
"dest": "wwwroot/Scripts/trumbowyg/ui/",
"tags": ["resources", "css"]
"tags": ["resources", "images"]
},
{
"action": "copy",
Expand Down Expand Up @@ -335,6 +328,20 @@
"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",
Expand Down Expand Up @@ -376,5 +383,33 @@
"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"]
}
]
42 changes: 0 additions & 42 deletions src/OrchardCore.Modules/OrchardCore.Resources/GulpAssets.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,48 +48,6 @@
],
"output": "wwwroot/Scripts/trumbowyg/trumbowyg-plugins.js"
},
{
"copy": true,
"inputs": [
"../../../node_modules/vue-multiselect/dist/vue-multiselect.min.css*"
],
"output": "wwwroot/Styles/@"
},
{
"copy": true,
"inputs": [
"../../../node_modules/vuedraggable/dist/vuedraggable.umd.*"
],
"output": "wwwroot/Scripts/@"
},
{
"copy": true,
"inputs": [
"../../../node_modules/@fortawesome/fontawesome-free/css/*"
],
"output": "wwwroot/Vendor/fontawesome-free/css/@"
},
{
"copy": true,
"inputs": [
"../../../node_modules/@fortawesome/fontawesome-free/js/*"
],
"output": "wwwroot/Vendor/fontawesome-free/js/@"
},
{
"copy": true,
"inputs": [
"../../../node_modules/@fortawesome/fontawesome-free/webfonts/*"
],
"output": "wwwroot/Vendor/fontawesome-free/webfonts/@"
},
{
"copy": true,
"inputs": [
"Assets/monaco/*"
],
"output": "wwwroot/Scripts/monaco/@"
},
{
"copy": true,
"inputs": [
Expand Down
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.

0 comments on commit 7b19fe8

Please sign in to comment.