Skip to content

Commit

Permalink
Resolved #4503: Introduce @libs/uppy npm package.
Browse files Browse the repository at this point in the history
  • Loading branch information
hikalkan committed Jun 26, 2020
1 parent 2c5e162 commit fff0a6f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System.Collections.Generic;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;

namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.Uppy
{
public class UppyScriptContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/uppy/uppy.min.js");
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using System.Collections.Generic;
using Volo.Abp.AspNetCore.Mvc.UI.Bundling;

namespace Volo.Abp.AspNetCore.Mvc.UI.Packages.Uppy
{
public class UppyStyleContributor : BundleContributor
{
public override void ConfigureBundle(BundleConfigurationContext context)
{
context.Files.AddIfNotContains("/libs/uppy/uppy.min.css");
}
}
}
5 changes: 5 additions & 0 deletions npm/packs/uppy/abp.resourcemapping.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
mappings: {
"@node_modules/uppy/dist/*.*": "@libs/uppy/"
}
}
12 changes: 12 additions & 0 deletions npm/packs/uppy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "2.9.0",
"name": "@abp/uppy",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@abp/core": "^2.9.0",
"uppy": "^1.16.1"
},
"gitHead": "bb4ea17d5996f01889134c138d00b6c8f858a431"
}

0 comments on commit fff0a6f

Please sign in to comment.