@tmsfe/tmskit 0.0.15-beta.1 → 0.0.15-beta.5

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.
@@ -0,0 +1,15 @@
1
+ const fs = require('fs');
2
+ const shellJs = require('shelljs');
3
+
4
+ function main() {
5
+ const pwd = shellJs.pwd();
6
+ const gulpWatchDirNM = `${pwd}/node_modules/gulp-watch/node_modules`;
7
+ if (fs.existsSync(gulpWatchDirNM)) {
8
+ shellJs.cd(gulpWatchDirNM);
9
+ console.log('pwd pwd pwd', shellJs.pwd());
10
+ shellJs.rm('-rf', 'chokidar');
11
+ }
12
+ }
13
+
14
+ main();
15
+
@@ -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完成"
package/dist/index.cjs.js CHANGED
@@ -3280,13 +3280,14 @@ var entry = [{
3280
3280
 
3281
3281
  var require$$7 = {
3282
3282
  name: "@tmsfe/tmskit",
3283
- version: "0.0.15-beta.1",
3283
+ version: "0.0.15-beta.5",
3284
3284
  description: "tmskit",
3285
3285
  main: "dist/index.cjs",
3286
3286
  bin: {
3287
3287
  tmskit: "main.js"
3288
3288
  },
3289
3289
  files: [
3290
+ "build",
3290
3291
  "src",
3291
3292
  "dist",
3292
3293
  "main.js",
@@ -3298,7 +3299,7 @@ var require$$7 = {
3298
3299
  "pub:patch": "sh build/publish.sh patch",
3299
3300
  "pub:minor": "sh build/publish.sh minor",
3300
3301
  "pub:major": "sh build/publish.sh major",
3301
- postinstall: "cd node_modules/gulp-watch && npm install chokidar@3.5.3"
3302
+ postinstall: "node build/postinstall.js"
3302
3303
  },
3303
3304
  author: "tms·web",
3304
3305
  license: "ISC",
@@ -3321,6 +3322,7 @@ var require$$7 = {
3321
3322
  dependencies: {
3322
3323
  async: "^3.2.2",
3323
3324
  chalk: "^4.1.0",
3325
+ chokidar: "^3.5.3",
3324
3326
  commander: "^8.3.0",
3325
3327
  "copy-webpack-plugin": "^9.1.0",
3326
3328
  ejs: "^3.1.5",
@@ -3337,7 +3339,6 @@ var require$$7 = {
3337
3339
  moment: "^2.29.1",
3338
3340
  "object-assign": "^4.0.1",
3339
3341
  ora: "^5.1.0",
3340
- "patch-package": "^6.4.7",
3341
3342
  "plugin-error": "^1.0.0",
3342
3343
  postcss: "^8.4.6",
3343
3344
  precinct: "^8.3.1",
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@tmsfe/tmskit",
3
- "version": "0.0.15-beta.1",
3
+ "version": "0.0.15-beta.5",
4
4
  "description": "tmskit",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {
7
7
  "tmskit": "main.js"
8
8
  },
9
9
  "files": [
10
+ "build",
10
11
  "src",
11
12
  "dist",
12
13
  "main.js",
@@ -18,7 +19,7 @@
18
19
  "pub:patch": "sh build/publish.sh patch",
19
20
  "pub:minor": "sh build/publish.sh minor",
20
21
  "pub:major": "sh build/publish.sh major",
21
- "postinstall": "cd node_modules/gulp-watch && npm install chokidar@3.5.3"
22
+ "postinstall": "node build/postinstall.js"
22
23
  },
23
24
  "author": "tms·web",
24
25
  "license": "ISC",
@@ -41,6 +42,7 @@
41
42
  "dependencies": {
42
43
  "async": "^3.2.2",
43
44
  "chalk": "^4.1.0",
45
+ "chokidar": "^3.5.3",
44
46
  "commander": "^8.3.0",
45
47
  "copy-webpack-plugin": "^9.1.0",
46
48
  "ejs": "^3.1.5",
@@ -57,7 +59,6 @@
57
59
  "moment": "^2.29.1",
58
60
  "object-assign": "^4.0.1",
59
61
  "ora": "^5.1.0",
60
- "patch-package": "^6.4.7",
61
62
  "plugin-error": "^1.0.0",
62
63
  "postcss": "^8.4.6",
63
64
  "precinct": "^8.3.1",
@@ -7,7 +7,6 @@ const { info } = require('../../../utils/log');
7
7
  const { global } = require('../../../utils/global');
8
8
  const { CACHE_DIR } = require('../../../config/constant');
9
9
 
10
-
11
10
  // 用户编译分包时,需要将dist中其他分包(主包不能删除)的内容删除,否则其他分包的内容混入到主包(导致主包的体积超2M)
12
11
  function delOtherModule(tmsConfig, targetModules) {
13
12
  const modules = tmsModulesMergeLocalModuleCfg(tmsConfig.modules, tmsConfig.appName);