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