@dcloudio/uni-mp-harmony 2.0.2-alpha-4050720250316001
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/dist/index.js +2644 -0
- package/lib/assets/jsconfig.json +6 -0
- package/lib/uni.compiler.js +4 -0
- package/lib/uni.config.js +53 -0
- package/license.md +1 -0
- package/package.json +21 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
const fs = require('fs')
|
|
2
|
+
const path = require('path')
|
|
3
|
+
|
|
4
|
+
const SIGN_DIR_NAME = 'sign'
|
|
5
|
+
// TODO quickapp ide 有bug,不识别项目根目录 sign,暂时拷贝到 .quickapp 目录
|
|
6
|
+
const SIGN_OUT_DIR_NAME = '.quickapp/sign'
|
|
7
|
+
|
|
8
|
+
function getSignCopyOption () {
|
|
9
|
+
const signDir = path.resolve(process.env.UNI_INPUT_DIR, SIGN_DIR_NAME)
|
|
10
|
+
if (fs.existsSync(signDir)) {
|
|
11
|
+
return {
|
|
12
|
+
from: signDir,
|
|
13
|
+
to: SIGN_OUT_DIR_NAME
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
module.exports = {
|
|
19
|
+
options: {
|
|
20
|
+
cssVars: {
|
|
21
|
+
'--status-bar-height': '25px',
|
|
22
|
+
'--window-top': '0px',
|
|
23
|
+
'--window-bottom': '0px',
|
|
24
|
+
'--window-left': '0px',
|
|
25
|
+
'--window-right': '0px'
|
|
26
|
+
},
|
|
27
|
+
extnames: {
|
|
28
|
+
style: '.css',
|
|
29
|
+
template: '.hxml',
|
|
30
|
+
filter: '.hjs'
|
|
31
|
+
},
|
|
32
|
+
filterTag: 'hjs',
|
|
33
|
+
subPackages: true,
|
|
34
|
+
},
|
|
35
|
+
validate (platformOptions, manifestJson) {
|
|
36
|
+
Object.assign(platformOptions, manifestJson['mp-harmony'] || {}, platformOptions)
|
|
37
|
+
},
|
|
38
|
+
copyWebpackOptions (platformOptions, vueOptions) {
|
|
39
|
+
const copyOptions = []
|
|
40
|
+
let jsConfigPath = path.resolve(process.env.UNI_INPUT_DIR, 'jsconfig.json')
|
|
41
|
+
if (!fs.existsSync(jsConfigPath)) {
|
|
42
|
+
jsConfigPath = path.resolve(__dirname, 'assets/jsconfig.json')
|
|
43
|
+
}
|
|
44
|
+
copyOptions.push(jsConfigPath)
|
|
45
|
+
|
|
46
|
+
const signCopyOption = getSignCopyOption()
|
|
47
|
+
if (signCopyOption) {
|
|
48
|
+
copyOptions.push(signCopyOption)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return copyOptions
|
|
52
|
+
}
|
|
53
|
+
}
|
package/license.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[https://uniapp.dcloud.net.cn/license.html ](https://uniapp.dcloud.net.cn/license.html )
|
package/package.json
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dcloudio/uni-mp-harmony",
|
|
3
|
+
"version": "2.0.2-alpha-4050720250316001",
|
|
4
|
+
"description": "uni-app mp-harmony",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/dcloudio/uni-app.git",
|
|
9
|
+
"directory": "packages/uni-mp-harmony"
|
|
10
|
+
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"author": "fxy060608",
|
|
15
|
+
"license": "Apache-2.0",
|
|
16
|
+
"uni-app": {
|
|
17
|
+
"name": "mp-harmony",
|
|
18
|
+
"title": "鸿蒙元服务"
|
|
19
|
+
},
|
|
20
|
+
"gitHead": "4a974e44466ae58194372e446299cf83c7a3ad2c"
|
|
21
|
+
}
|