chore(mp-harmony): 更新鸿蒙项目配置与依赖
1. 新增忽略node_modules目录到gitignore 2. 升级modelVersion到6.0.0并更新相关配置 3. 更新ascf-toolkit插件与ascfapi依赖版本 4. 新增业务模块构建配置 5. 优化hvigor配置与插件参数
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -11,4 +11,5 @@
|
||||
# 鸿蒙元服务构建产物
|
||||
stub-app-projects/mp-harmony/ascf/ascf_src
|
||||
stub-app-projects/mp-harmony/ascf/ascf_build
|
||||
stub-app-projects/mp-harmony/entry/src/main/resources/rawfile
|
||||
stub-app-projects/mp-harmony/entry/src/main/resources/rawfile
|
||||
stub-app-projects/mp-harmony/**/node_modules
|
||||
@@ -64,6 +64,66 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "components_diy",
|
||||
"srcPath": "./ascf/ascf_build/components_diy",
|
||||
"targets": [
|
||||
{
|
||||
"name": "default",
|
||||
"applyToProducts": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pages_goods",
|
||||
"srcPath": "./ascf/ascf_build/pages_goods",
|
||||
"targets": [
|
||||
{
|
||||
"name": "default",
|
||||
"applyToProducts": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pages_order",
|
||||
"srcPath": "./ascf/ascf_build/pages_order",
|
||||
"targets": [
|
||||
{
|
||||
"name": "default",
|
||||
"applyToProducts": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pages_promotion",
|
||||
"srcPath": "./ascf/ascf_build/pages_promotion",
|
||||
"targets": [
|
||||
{
|
||||
"name": "default",
|
||||
"applyToProducts": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "pages_tool",
|
||||
"srcPath": "./ascf/ascf_build/pages_tool",
|
||||
"targets": [
|
||||
{
|
||||
"name": "default",
|
||||
"applyToProducts": [
|
||||
"default"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -2,5 +2,6 @@ import { hapTasks } from '@ohos/hvigor-ohos-plugin';
|
||||
|
||||
export default {
|
||||
system: hapTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
|
||||
plugins:[] /* Custom plugin to extend the functionality of Hvigor. */
|
||||
plugins:[], /* Custom plugin to extend the functionality of Hvigor. */
|
||||
modelVersion: '6.0.0'
|
||||
}
|
||||
|
||||
@@ -6,14 +6,14 @@
|
||||
"lockfileVersion": 3,
|
||||
"ATTENTION": "THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.",
|
||||
"specifiers": {
|
||||
"@atomicservice/ascfapi@^1.0.6": "@atomicservice/ascfapi@1.0.12"
|
||||
"@atomicservice/ascfapi@^1.0.6": "@atomicservice/ascfapi@1.0.23"
|
||||
},
|
||||
"packages": {
|
||||
"@atomicservice/ascfapi@1.0.12": {
|
||||
"@atomicservice/ascfapi@1.0.23": {
|
||||
"name": "@atomicservice/ascfapi",
|
||||
"version": "1.0.12",
|
||||
"integrity": "sha512-PGBTjY0x/fSgFyuxJBA54JCxEdKzWPHD+c4+azOn84o/n7uMFjKjBeDQ+5UnPgl0ejze8+MrlxD1GWaV1VNtGQ==",
|
||||
"resolved": "https://ohpm.openharmony.cn/ohpm/@atomicservice/ascfapi/-/ascfapi-1.0.12.har",
|
||||
"version": "1.0.23",
|
||||
"integrity": "sha512-gZz56dpnA1Jm8u9+RjYpQL9/JaC8Jk/lnVd3Yy99a+zYw7x/8kroiFuOW/TjcZFYfNU+Z9UboTuPUOzWzJ0NLA==",
|
||||
"resolved": "https://ohpm.openharmony.cn/ohpm/@atomicservice/ascfapi/-/ascfapi-1.0.23.har",
|
||||
"registryType": "ohpm",
|
||||
"packageType": "InterfaceHar"
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"name": "entry",
|
||||
"version": "1.0.0",
|
||||
"description": "Please describe the basic information.",
|
||||
"modelVersion": "6.0.0",
|
||||
"main": "",
|
||||
"author": "",
|
||||
"license": "",
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
{
|
||||
"modelVersion": "5.0.0",
|
||||
"dependencies": {
|
||||
"@atomicservice/ascf-toolkit-hvigor-plugin": "~1.0.3-beta || ~1.0.3"
|
||||
},
|
||||
"execution": {},
|
||||
"logging": {},
|
||||
"debugging": {},
|
||||
"nodeOptions": {}
|
||||
}
|
||||
{
|
||||
"modelVersion": "6.0.0",
|
||||
"dependencies": {
|
||||
"@atomicservice/ascf-toolkit-hvigor-plugin": "^1.0.17"
|
||||
},
|
||||
"properties": {
|
||||
"hvigor.dependency.useNpm": true
|
||||
}
|
||||
}
|
||||
@@ -3,8 +3,9 @@ import ascfPlugin, { signByBuildModePlugin } from '@atomicservice/ascf-toolkit-h
|
||||
|
||||
export default {
|
||||
system: appTasks, /* Built-in plugin of Hvigor. It cannot be modified. */
|
||||
plugins:[
|
||||
ascfPlugin(),
|
||||
plugins: [
|
||||
ascfPlugin({ disableSubpackages: false }),
|
||||
signByBuildModePlugin('default', 'release') // 需要 build-profile.json5 配置 signingConfigs 调试和发布的签名
|
||||
]
|
||||
}
|
||||
],
|
||||
modelVersion: '6.0.0'
|
||||
}
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"modelVersion": "5.0.0",
|
||||
"modelVersion": "6.0.0",
|
||||
"description": "Please describe the basic information.",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@ohos/hypium": "1.0.21",
|
||||
"@ohos/hamock": "1.0.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user