@tmsfe/tmskit 0.0.15 → 0.0.18

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/CHANGELOG.md CHANGED
@@ -21,6 +21,24 @@
21
21
  * 编译代码有更新时,增加提示日志
22
22
  * 删除源码文件或文件夹时,支持监听文件变动,删除编译文件
23
23
  * fix window中tar命令的兼容性问题
24
- 7. [0.0.14]
24
+ 7. [0.0.15]
25
25
  * 删除原函数软连功能
26
- * fix 修复dist node_module.tar.gz没有删除bug
26
+ * fix 修复dist node_module.tar.gz没有删除bug
27
+ 8. [0.0.16]
28
+ * fix: 日志打印多空行问题
29
+ * add: 增加--noCache的参数,支持不使用缓存运行dev
30
+ * add: package.json、module.config.json更新后,提示重新启动dev
31
+ * fix: gulp-watch更新某个文件时,编译多个文件的问题
32
+ * 策略:拉取第三方代码,dev流程都会执行
33
+ * add: 钩子函数支持promise
34
+ * fix: 编译watch不支持文件夹监听
35
+ * fix: 升级chokidar的版本
36
+ 9. [0.0.17]
37
+ * 删除“module.config.json pages为空”的判断
38
+ * 编译后 app.json 的 `subpackages`字段 按 `name` 排序
39
+ * `updateAppJson`钩子,增加`isDev、tmsConfig、modules、appJson`参数
40
+ * 增加`tmskit run cloud`命令
41
+ 10. [0.0.18]
42
+ * 修改模板名称tmskit-template
43
+ * tms.private.config.js 作为 tms.config.js的复写文件,不再是补充文件
44
+ * module.config.json 支持`preloadRule`字段
package/README.md CHANGED
@@ -27,7 +27,6 @@ node /Users/odile/workspace/tms-frontend1/tools/tmskit/dist/index.cjs run dev
27
27
 
28
28
 
29
29
  3. 发布tmskit
30
- npm run pub:patch (小版本)
31
- npm run pub:minor (中版本)
32
- npm run pub:major (大版本)
30
+ cd tools/npm-publish
31
+ npm run tmskit
33
32
  ```
@@ -0,0 +1,34 @@
1
+ echo_fail_info_and_exit() {
2
+ if [ $? != 0 ]
3
+ then
4
+ echo ${1}
5
+ exit 1
6
+ fi
7
+ }
8
+
9
+ verName=$1
10
+ echo "开始npm version"
11
+ version=`npm version $verName`
12
+ echo_fail_info_and_exit "npm version fail"
13
+ echo "npm version结束 $version"
14
+
15
+ echo "开始npm install"
16
+ npm install
17
+ echo_fail_info_and_exit "npm install fail"
18
+ echo "npm install 结束"
19
+
20
+ echo "开始npm run build"
21
+ npm run build
22
+ echo_fail_info_and_exit "npm run build fail"
23
+ echo "npm run build结束"
24
+
25
+ echo "开始npm publish"
26
+ npm publish --access public --registry https://registry.npmjs.org
27
+ echo_fail_info_and_exit "npm publish fail"
28
+ echo "npm publish结束"
29
+
30
+ echo "开始全局安装tmskit@$version"
31
+ `npm install -g @tmsfe/tmskit@$version --registry=https://registry.npmjs.org`
32
+ echo_fail_info_and_exit "npm install -g @tmsfe/tmskit@$version fail"
33
+ tmskit -v
34
+ echo "开始全局安装tmskit@$version完成"