add readme 和注释

This commit is contained in:
DevWiki 2024-03-07 11:53:57 +08:00
parent 5e79ba416a
commit f23b41ffa1
17 changed files with 32 additions and 4 deletions

View File

@ -1,6 +1,9 @@
{ {
// app的构建配置
"app": { "app": {
//签名配置
"signingConfigs": [], "signingConfigs": [],
//产品配置
"products": [ "products": [
{ {
"name": "default", "name": "default",
@ -10,6 +13,7 @@
"runtimeOS": "HarmonyOS", "runtimeOS": "HarmonyOS",
} }
], ],
//构建类型集合
"buildModeSet": [ "buildModeSet": [
{ {
"name": "debug", "name": "debug",
@ -19,10 +23,15 @@
} }
] ]
}, },
//组件集合
"modules": [ "modules": [
// app组件
{ {
// 组件名称
"name": "app", "name": "app",
// 组件源码位置
"srcPath": "./app", "srcPath": "./app",
// 构建目标
"targets": [ "targets": [
{ {
"name": "default", "name": "default",
@ -32,9 +41,10 @@
} }
] ]
}, },
//shareLib组件
{ {
"name": "shareLib", "name": "common_ui",
"srcPath": "./shareLib", "srcPath": "./common_ui",
"targets": [ "targets": [
{ {
"name": "default", "name": "default",

View File

@ -1,5 +1,5 @@
{ {
"name": "sharelib", "name": "common_ui",
"version": "1.0.0", "version": "1.0.0",
"description": "Please describe the basic information.", "description": "Please describe the basic information.",
"main": "Index.ets", "main": "Index.ets",

View File

@ -1,6 +1,6 @@
{ {
"module": { "module": {
"name": "shareLib", "name": "common_ui",
"type": "shared", "type": "shared",
"description": "$string:shared_desc", "description": "$string:shared_desc",
"deviceTypes": [ "deviceTypes": [

View File

@ -1,12 +1,20 @@
{ {
//项目名称
"name": "hm4demo", "name": "hm4demo",
//项目版本号
"version": "1.0.0", "version": "1.0.0",
//项目描述
"description": "Please describe the basic information.", "description": "Please describe the basic information.",
//
"main": "", "main": "",
//作者信息
"author": "", "author": "",
//
"license": "", "license": "",
//依赖配置
"dependencies": { "dependencies": {
}, },
//开发依赖配置
"devDependencies": { "devDependencies": {
"@ohos/hypium": "1.0.15", "@ohos/hypium": "1.0.15",
"@ohos/hamock": "1.0.0-rc" "@ohos/hamock": "1.0.0-rc"

10
readme.md Normal file
View File

@ -0,0 +1,10 @@
# 项目概要
本项目模块分为:
- app: 主入口模块
- common_ui : 通用UI动态共享库模块
## app模块
## common ui模块