Refactored repo organization. Added Jenkinsfile.
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@if (!string.IsNullOrEmpty((ViewData["Specific"] as string)))
|
||||
{
|
||||
@* Adds page specific scripts semi-automatically. *@
|
||||
<script defer src="@($"~/js/specific/{(ViewData["Specific"])}.js")" asp-append-version="true"></script>
|
||||
}
|
||||
</head>
|
||||
|
@@ -1,5 +1,5 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
|
||||
<!-- https://docs.microsoft.com/en-us/dotnet/core/project-sdk/msbuild-props for more information. -->
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<UserSecretsId>aspnet-Props-20A2A991-EC61-4C06-91D2-953482026A7B</UserSecretsId>
|
||||
@@ -43,7 +43,7 @@
|
||||
</Exec>
|
||||
<Error Condition="'$(ErrorCode)' != '0'" Text="Node.js is required to build and run this project. To continue, please install Node.js from https://nodejs.org/, and then restart your command prompt or IDE." />
|
||||
<Message Importance="high" Text="Restoring dependencies using 'npm'. This may take several minutes..." />
|
||||
<Exec WorkingDirectory="$(SpaRoot)" Command="npm install" />
|
||||
<Exec WorkingDirectory="./" Command="npm install" />
|
||||
</Target>
|
||||
|
||||
<!-- Build static resources -->
|
||||
@@ -51,4 +51,4 @@
|
||||
<Exec Command="npm run build:dev" Condition=" '$(Configuration)' == 'Debug' " LogStandardErrorAsError="true" />
|
||||
<Exec Command="npm run build:prod" Condition=" '$(Configuration)' == 'Release' " LogStandardErrorAsError="true" />
|
||||
</Target>
|
||||
</Project>
|
||||
</Project>
|
@@ -1,11 +1,10 @@
|
||||
{
|
||||
"private": true,
|
||||
"main": "js/index.js",
|
||||
"scripts": {
|
||||
"build": "webpack --config webpack.prod.js",
|
||||
"build:dev": "webpack --config webpack.dev.js",
|
||||
"build:prod": "webpack --config webpack.prod.js",
|
||||
"postinstall": "python ../scripts/npm_post_install.py"
|
||||
"postinstall": "python3 ../scripts/clear_webpack_cache.py"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
|
Reference in New Issue
Block a user