kn-cli 1.0.73 → 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 +15 -1
- package/package.json +1 -1
- package/readme.md +3 -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
|
package/package.json
CHANGED
package/readme.md
CHANGED