✨ feat:初始化
This commit is contained in:
+4
-18
@@ -5,11 +5,11 @@ const versions =
|
||||
encoding: 'utf8',
|
||||
}) != 'HEAD\n'
|
||||
? childProcess.execSync('git rev-parse --abbrev-ref HEAD', {
|
||||
encoding: 'utf8',
|
||||
})
|
||||
encoding: 'utf8',
|
||||
})
|
||||
: childProcess.execSync('git describe --tags --abbrev=0', {
|
||||
encoding: 'utf8',
|
||||
})
|
||||
encoding: 'utf8',
|
||||
})
|
||||
const CURRENT_GITHASH = childProcess.execSync('git rev-parse --short HEAD', {
|
||||
encoding: 'utf8',
|
||||
})
|
||||
@@ -18,19 +18,6 @@ const CURRENT_VERSION = `Version: ${JSON.stringify(process.env.CODE_BRANCH || ve
|
||||
'',
|
||||
)
|
||||
|
||||
const CIPluginOpt = {
|
||||
// 微信小程序
|
||||
weapp: {
|
||||
appid: 'wx64fe67f111d52457',
|
||||
privateKeyPath: 'key/private.wx64fe67f111d52457.key',
|
||||
// devToolsInstallPath: 'D:/weixin/微信web开发者工具',
|
||||
},
|
||||
// 版本号
|
||||
version: versions,
|
||||
// 版本发布描述
|
||||
desc: versions,
|
||||
}
|
||||
|
||||
const config = {
|
||||
projectName: 'EShop',
|
||||
date: '2022-4-6',
|
||||
@@ -42,7 +29,6 @@ const config = {
|
||||
},
|
||||
sourceRoot: 'src',
|
||||
outputRoot: 'dist',
|
||||
plugins: [['@tarojs/plugin-mini-ci', CIPluginOpt]],
|
||||
defineConstants: {
|
||||
CURRENT_VERSION: JSON.stringify(CURRENT_VERSION),
|
||||
CURRENT_GITHASH: JSON.stringify(CURRENT_GITHASH),
|
||||
|
||||
Reference in New Issue
Block a user