1c36cf2e9Sopenharmony_ci#
2c36cf2e9Sopenharmony_ci# Copyright (c) 2023-2023 Huawei Device Co., Ltd.
3c36cf2e9Sopenharmony_ci# Licensed under the Apache License, Version 2.0 (the "License");
4c36cf2e9Sopenharmony_ci# you may not use this file except in compliance with the License.
5c36cf2e9Sopenharmony_ci# You may obtain a copy of the License at
6c36cf2e9Sopenharmony_ci#
7c36cf2e9Sopenharmony_ci#     http://www.apache.org/licenses/LICENSE-2.0
8c36cf2e9Sopenharmony_ci#
9c36cf2e9Sopenharmony_ci# Unless required by applicable law or agreed to in writing, software
10c36cf2e9Sopenharmony_ci# distributed under the License is distributed on an "AS IS" BASIS,
11c36cf2e9Sopenharmony_ci# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12c36cf2e9Sopenharmony_ci# See the License for the specific language governing permissions and
13c36cf2e9Sopenharmony_ci# limitations under the License.
14c36cf2e9Sopenharmony_ci#
15c36cf2e9Sopenharmony_cifunction init_npm
16c36cf2e9Sopenharmony_ci{
17c36cf2e9Sopenharmony_ci    npm config set registry https://repo.huaweicloud.com/repository/npm/
18c36cf2e9Sopenharmony_ci    npm config set @ohos:registry https://repo.harmonyos.com/npm/
19c36cf2e9Sopenharmony_ci    npm config set strict_ssl false
20c36cf2e9Sopenharmony_ci    npm config set sslVerify false
21c36cf2e9Sopenharmony_ci}
22c36cf2e9Sopenharmony_ci
23c36cf2e9Sopenharmony_ciinit_npm
24c36cf2e9Sopenharmony_ci
25c36cf2e9Sopenharmony_cifunction npm_install {
26c36cf2e9Sopenharmony_ci    cd  $1
27c36cf2e9Sopenharmony_ci    npm install
28c36cf2e9Sopenharmony_ci}
29c36cf2e9Sopenharmony_ci
30c36cf2e9Sopenharmony_ciAPP_HOME="`pwd - P`"
31c36cf2e9Sopenharmony_cinpm_install "$APP_HOME"
32c36cf2e9Sopenharmony_cinpm_install "$APP_HOME/common"
33c36cf2e9Sopenharmony_cinpm_install "$APP_HOME/feature/ippPrint"
34c36cf2e9Sopenharmony_cinpm_install "$APP_HOME/entry"
35c36cf2e9Sopenharmony_ci
36c36cf2e9Sopenharmony_cicd $APP_HOME
37c36cf2e9Sopenharmony_cinode ./node_modules/@ohos/hvigor/bin/hvigor.js --mode module assembleHap -p debuggable=false