-
Notifications
You must be signed in to change notification settings - Fork 82
/
buildandstart.sh
executable file
·45 lines (37 loc) · 1.02 KB
/
buildandstart.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
if ! type dotnet > /dev/null; then
echo ".NET Core not found. Please install .NET Core SDK 2.1 to run this application"
echo "For more information visit https://dotnet.microsoft.com/download/dotnet-core/2.1"
exit 127
fi
if ! type npm > /dev/null; then
echo "NPM not found. Please install npm to build this application"
echo "For more information visit https://www.npmjs.com/get-npm"
exit 127
fi
echo "------------------------------"
echo "Digital Workflow Platform"
echo "Build and Start script"
echo "https://dwkit.com"
echo ""
echo "Step 1 Install NPM packages"
echo "------------------------------"
cd src/OptimaJet.DWKit.StarterApplication
npm install
echo ""
echo "Step 2 Build Webpack"
echo "------------------------------"
webpack -p
cd ../..
echo ""
echo "Step 3 dotnet build"
echo "------------------------------"
dotnet build
echo ""
echo "Step 4 dotnet publish"
echo "------------------------------"
dotnet publish -o ./../../bin
echo ""
echo "Starting..."
echo "-----------------------------"
./start.sh