kn-cli 1.0.72 → 1.0.74
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/build/start.sh +16 -2
- package/package.json +1 -1
- package/readme.md +5 -0
- package/templates/template_admin/.vscode/settings.json +9 -0
- package/templates/template_app/.vscode/settings.json +9 -0
- package/templates/template_oa/.vscode/settings.json +9 -0
- package/templates/template_oa_jwt/.vscode/settings.json +9 -0
- package/templates/template_offcial/.vscode/settings.json +9 -0
package/build/start.sh
CHANGED
|
@@ -96,7 +96,21 @@ setNpmSetup(){
|
|
|
96
96
|
then
|
|
97
97
|
echo "切换到淘宝npm源"
|
|
98
98
|
npm config set registry https://registry.npm.taobao.org
|
|
99
|
-
npm config set registry https://registry.npm.taobao.org -g
|
|
99
|
+
npm config set registry https://registry.npm.taobao.org -g
|
|
100
|
+
fi
|
|
101
|
+
|
|
102
|
+
if [ $registryType = "zheda" ]
|
|
103
|
+
then
|
|
104
|
+
echo "切换到浙大源"
|
|
105
|
+
npm config set registry https://mirrors.zju.edu.cn/npm
|
|
106
|
+
npm config set registry https://mirrors.zju.edu.cn/npm -g
|
|
107
|
+
fi
|
|
108
|
+
|
|
109
|
+
if [ $registryType = "huawei" ]
|
|
110
|
+
then
|
|
111
|
+
echo "切换到华为源"
|
|
112
|
+
npm config set registry https://repo.huaweicloud.com/repository/npm/
|
|
113
|
+
npm config set registry https://repo.huaweicloud.com/repository/npm/ -g
|
|
100
114
|
fi
|
|
101
115
|
fi
|
|
102
116
|
npm install
|
|
@@ -118,7 +132,7 @@ build(){
|
|
|
118
132
|
if [ -n "$build_type" ] && [ $build_type = "dev" ]
|
|
119
133
|
then
|
|
120
134
|
echo "开始npm run dev"
|
|
121
|
-
if [ "$dev_mode"
|
|
135
|
+
if [ "${dev_mode}" = "watch" ]
|
|
122
136
|
then
|
|
123
137
|
npm run dev:watch
|
|
124
138
|
checkResult "npm run dev:watch"
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -96,7 +96,12 @@ module.exports = {
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
# 更新日志
|
|
99
|
+
* 1.0.74
|
|
100
|
+
工程模版内增加vscode基础配置
|
|
99
101
|
|
|
102
|
+
* 1.0.73
|
|
103
|
+
修改 start.sh内 `if[ "dev_mode"x == "watch"x ]` --> `if [ "${dev_mode}" = "watch" ]` 以兼容系统
|
|
104
|
+
|
|
100
105
|
* 1.0.72
|
|
101
106
|
增加devServer:{historyApiFallback:true}设置,支持本地调试的history模式
|
|
102
107
|
|