[SDC] Onboarding 1710 rebase.
[sdc.git] / openecomp-ui / runLocalFE.cmd
1 @REM /*!
2 @REM  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
3 @REM  *
4 @REM  * Licensed under the Apache License, Version 2.0 (the "License");
5 @REM  * you may not use this file except in compliance with the License.
6 @REM  * You may obtain a copy of the License at
7 @REM  *
8 @REM  * http://www.apache.org/licenses/LICENSE-2.0
9 @REM  *
10 @REM  * Unless required by applicable law or agreed to in writing, software
11 @REM  * distributed under the License is distributed on an "AS IS" BASIS,
12 @REM  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
13 @REM  * or implied. See the License for the specific language governing
14 @REM  * permissions and limitations under the License.
15 @REM  */
16
17 @echo off
18
19 SETLOCAL
20
21 set uiDir=%cd%
22 set currentDir=%cd%
23 if not ("%1" == "") set uiDir=%1
24
25 echo check npm version:
26 call npm -version
27 if errorlevel 1 (
28     echo install node with npm from https://nodejs.org/en/download/
29         goto done
30 )
31 echo npm is installed
32 echo one more check...
33 call npm list prompt
34 if errorlevel 1 (
35     npm install prompt
36 )
37 echo ready to run
38 call node runLocalFE.js