mxdraw 0.1.337 → 0.1.339

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mxdraw",
3
- "version": "0.1.337",
3
+ "version": "0.1.339",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "homepage": "https://mxcad.github.io/mxdraw_docs/",
@@ -24,16 +24,14 @@
24
24
  },
25
25
  "scripts": {
26
26
  "prepub_test": "npm run test:prod && npm run build",
27
- "prepub": "npm run build",
28
- "pub": "node release.js",
29
27
  "dev": "vite examples .",
30
28
  "lint": "tslint --project tsconfig.json -t codeFrame 'src/**/*.ts' 'test/**/*.ts'",
31
29
  "prebuild": "rimraf dist",
32
30
  "build": "cross-env COMPRESS=true rollup -c rollup.config.ts && npm run docs && node compress",
33
31
  "build-debug": "cross-env COMPRESS=false rollup -c rollup.config.ts -m",
34
- "oldDocs": "typedoc --out docs --target es6 --theme minimal --mode file src",
35
- "type-doc": "typedoc --out docs",
36
- "docs": "npm run patch && npm run doctoc && typedoc --out docs",
32
+ "oldDocs": "typedoc --out docs/docs/.vuepress/dist/api --target es6 --theme minimal --mode file src",
33
+ "type-doc": "typedoc --out docs/docs/.vuepress/dist/api",
34
+ "docs": "ts-node tools/build_docs && npm run patch && npm run doctoc && typedoc --out docs/docs/.vuepress/dist/api",
37
35
  "start": "npm run dev",
38
36
  "test": "jest --coverage",
39
37
  "test:watch": "jest --coverage --watch",
@@ -47,10 +45,13 @@
47
45
  "semantic-release": "semantic-release",
48
46
  "semantic-release-prepare": "ts-node tools/semantic-release-prepare",
49
47
  "precommit": "lint-staged",
50
- "postinstall": "",
51
48
  "patch": "patch-package",
52
49
  "travis-deploy-once": "travis-deploy-once",
53
- "doctoc": "doctoc --title 目录 --maxlevel 3 README.md"
50
+ "doctoc": "doctoc --title 目录 --maxlevel 3 README.md",
51
+ "add-commit": "git add dist README.md LICENSE_CN LICENSE CHANGELOG.md && npx git-cz",
52
+ "pub": "npm run add-commit && release-it && git push -u origin main",
53
+ "pub:npm": "npm version patch && npm publish",
54
+ "pub-init": "git init && git checkout -b main && git remote add origin https://github.com/mxcad/mxdraw.git -f && npm run add-commit && git pull origin main --allow-unrelated-histories -X ours && git push -u origin main"
54
55
  },
55
56
  "sideEffects": [
56
57
  "jquery",
@@ -64,7 +65,7 @@
64
65
  },
65
66
  "config": {
66
67
  "commitizen": {
67
- "path": "node_modules/cz-conventional-changelog"
68
+ "path": "node_modules/cz-git"
68
69
  }
69
70
  },
70
71
  "prettier": {
@@ -107,7 +108,9 @@
107
108
  "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
108
109
  "babel-polyfill": "^6.26.0",
109
110
  "colors": "^1.3.2",
110
- "commitizen": "^3.0.0",
111
+ "commitizen": "4.3.0",
112
+ "release-it": "^15.10.3",
113
+ "@release-it/conventional-changelog": "^5.1.1",
111
114
  "coveralls": "^3.0.2",
112
115
  "cross-env": "^7.0.3",
113
116
  "css-loader": "^6.5.1",
@@ -163,7 +166,8 @@
163
166
  "typedoc-plugin-rename-defaults": "^0.4.0",
164
167
  "typescript": "^4.5.2",
165
168
  "uglify-es": "^3.3.9",
166
- "vite": "^4.3.9"
169
+ "vite": "^4.3.9",
170
+ "cz-git": "^1.6.1"
167
171
  },
168
172
  "dependencies": {
169
173
  "element-resize-event-polyfill": "^1.0.5",