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 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"x == "watch"x ]
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kn-cli",
3
- "version": "1.0.72",
3
+ "version": "1.0.74",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
 
@@ -0,0 +1,9 @@
1
+ {
2
+ "editor.tabSize": 2,
3
+ "files.exclude": {
4
+ "**/node_modules": true,
5
+ },
6
+ "search.exclude": {
7
+ "**/release": true,
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "editor.tabSize": 2,
3
+ "files.exclude": {
4
+ "**/node_modules": true,
5
+ },
6
+ "search.exclude": {
7
+ "**/release": true,
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "editor.tabSize": 2,
3
+ "files.exclude": {
4
+ "**/node_modules": true,
5
+ },
6
+ "search.exclude": {
7
+ "**/release": true,
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "editor.tabSize": 2,
3
+ "files.exclude": {
4
+ "**/node_modules": true,
5
+ },
6
+ "search.exclude": {
7
+ "**/release": true,
8
+ }
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "editor.tabSize": 2,
3
+ "files.exclude": {
4
+ "**/node_modules": true,
5
+ },
6
+ "search.exclude": {
7
+ "**/release": true,
8
+ }
9
+ }