Skip to content
This repository was archived by the owner on Nov 17, 2023. It is now read-only.

Commit 43c1580

Browse files
author
Ramón Tomás
committed
Fixed bug #729
Removed bower in web MVC app
1 parent 11acb94 commit 43c1580

File tree

5 files changed

+20
-21
lines changed

5 files changed

+20
-21
lines changed

src/Web/WebMVC/.bowerrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/Web/WebMVC/Dockerfile

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,7 @@ EXPOSE 80
66
FROM microsoft/dotnet:2.1-sdk as dotnet-build
77
WORKDIR /src
88

9-
FROM ${NODE_IMAGE} as node-build
10-
WORKDIR /web
11-
COPY src/Web/WebMVC .
12-
RUN npm install -g [email protected]
13-
RUN bower install --allow-root
14-
159
FROM dotnet-build as build
16-
WORKDIR /src/src/Web/WebMVC/wwwroot
17-
COPY --from=node-build /web/wwwroot .
1810
WORKDIR /src
1911
COPY . .
2012
WORKDIR /src/src/Web/WebMVC

src/Web/WebMVC/WebMVC.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0" />
2929
<PackageReference Include="Microsoft.AspNetCore.DataProtection.Redis" Version="0.3.3" />
3030
<PackageReference Include="Microsoft.VisualStudio.Azure.Fabric.MSBuild" Version="1.6.5" />
31+
<PackageReference Include="Microsoft.Web.LibraryManager.Build" Version="1.0.163" />
3132
</ItemGroup>
3233

3334
<Target Name="PrepublishScript" BeforeTargets="PrepareForPublish">

src/Web/WebMVC/bower.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

src/Web/WebMVC/libman.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"version": "1.0",
3+
"defaultProvider": "cdnjs",
4+
"libraries": [
5+
{
6+
"library": "[email protected]",
7+
"destination": "wwwroot/lib/jquery/"
8+
},
9+
{
10+
"provider": "unpkg",
11+
"library": "[email protected]",
12+
"destination": "wwwroot/lib/bootstrap/"
13+
},
14+
{
15+
"library": "[email protected]",
16+
"destination": "wwwroot/lib/jquery-validation-unobtrusive/"
17+
}
18+
]
19+
}

0 commit comments

Comments
 (0)