From d1a25e7c4789eb589b0f17b9e1edbff6e91d5fb6 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Tue, 25 Oct 2016 19:34:30 +0200 Subject: [PATCH] Build fixed --- src/Squidex/app/framework/utils/color.ts | 2 ++ src/Squidex/appsettings.Production.json | 5 +++++ src/Squidex/package.json | 2 +- src/Squidex/project.json | 8 +++++++- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 src/Squidex/appsettings.Production.json diff --git a/src/Squidex/app/framework/utils/color.ts b/src/Squidex/app/framework/utils/color.ts index 7021808a6..80c328a06 100644 --- a/src/Squidex/app/framework/utils/color.ts +++ b/src/Squidex/app/framework/utils/color.ts @@ -5,6 +5,8 @@ * Copyright (c) Sebastian Stehle. All rights reserved */ +/* tslint:disable:no-bitwise */ + interface IColorDefinition { regex: RegExp; diff --git a/src/Squidex/appsettings.Production.json b/src/Squidex/appsettings.Production.json new file mode 100644 index 000000000..40ee5bbcb --- /dev/null +++ b/src/Squidex/appsettings.Production.json @@ -0,0 +1,5 @@ +{ + "identity": { + "baseUrl": "http://squidex.io" + } +} \ No newline at end of file diff --git a/src/Squidex/package.json b/src/Squidex/package.json index 15e5b5e1d..1c25bc7ba 100644 --- a/src/Squidex/package.json +++ b/src/Squidex/package.json @@ -9,7 +9,7 @@ "test:coverage": "karma start karma.coverage.conf.js", "test:clean": "rimraf _test-output", "dev": "webpack-dev-server --inline --hot --port 3000", - "build": "webpack --config app-config/webpack.prod.js --progress --display-error-details", + "build": "webpack --config app-config/webpack.prod.js --bail", "build:clean": "rimraf wwwroot/build" }, "dependencies": { diff --git a/src/Squidex/project.json b/src/Squidex/project.json index 23c6a452f..8bd6ff325 100644 --- a/src/Squidex/project.json +++ b/src/Squidex/project.json @@ -73,6 +73,12 @@ }, "scripts": { - "postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ] + "prepublish": [ + "npm install", + "npm run-script build" + ], + "postpublish": [ + "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" + ] } }