mxcad 1.0.39 → 1.0.41

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": "mxcad",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "main": "./dist/mxcad.umd.js",
5
5
  "module": "./dist/mxcad.es.js",
6
6
  "typings": "dist/mxcad.d.ts",
@@ -9,42 +9,53 @@
9
9
  "require": "./dist/mxcad.umd.js",
10
10
  "module": "./dist/mxcad.es.js"
11
11
  },
12
- "./wasm": "./dist/mxdrawassembly_min.wasm",
13
- "./dist/mxdrawassembly_min.wasm": "./dist/mxdrawassembly_min.wasm",
14
- "./wasm3d": "./dist/mxdraw3d_min.wasm",
15
- "./dist/mxdraw3d_min.wasm": "./dist/mxdraw3d_min.wasm.wasm"
12
+ "./wasm2d": "./dist/wasm/2d/*",
13
+ "./wasm3d": "./dist/wasm/3d/*"
16
14
  },
17
15
  "description": "mxcad cad编辑版",
18
16
  "files": [
19
17
  "dist"
20
18
  ],
19
+ "repository": "https://github.com/mxcad/mxcad_docs.git",
21
20
  "peerDependencies": {
22
21
  "mxdraw": "^0.1.155"
23
22
  },
24
23
  "scripts": {
25
24
  "dev": "vite --host --force",
26
25
  "dev3d": "vite --host --force --mode 3d",
27
- "build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts && npx typedoc --tsconfig tsconfig.json",
26
+ "build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",
28
27
  "preview": "vite preview",
29
28
  "test": "jest --runInBand",
29
+ "cz": "czg",
30
+ "dev:docs": "node docs/typedoc.js && vitepress dev docs",
31
+ "build:docs": "node docs/typedoc.js && vitepress build docs",
32
+ "pub": "release-it",
33
+ "add-commit": "git add docs dist && npx git-cz",
34
+ "pub-init": "git init && git remote add origin https://github.com/mxcad/mxcad_docs.git -f && git add docs dist && git commit -m\"init\" && git branch --set-upstream-to=origin/master master",
30
35
  "test:coverage": "jest --runInBand --coverage",
31
36
  "lint:scripts": "eslint . --ext .ts",
32
37
  "lint:styles": "stylelint ./**/*.{css,scss}",
33
38
  "format:scripts": "prettier . --write",
34
39
  "format:styles": "stylelint ./**/*.{css,scss} --fix",
35
- "format": "npm run format:scripts && npm run format:styles",
36
- "emcc:init": "cd emsdk && git pull && cd ../ && .\\emsdk\\emsdk install latest && .\\emsdk\\emsdk activate latest && .\\emsdk\\emsdk_env.bat",
37
- "c-to-mjs": "emcc -O3 ./emsdk/WebAssembly/hello.cpp -o ./src/wasm/index.mjs -s STANDALONE_WASM",
38
- "c-to-wasi": "emcc -O2 ./emsdk/WebAssembly/hello.cpp -o ./emsdk/WebAssembly/wasi.js -s STANDALONE_WASM",
39
- "node:to": "node cToWasm"
40
+ "format": "npm run format:scripts && npm run format:styles"
41
+ },
42
+ "config": {
43
+ "commitizen": {
44
+ "path": "node_modules/cz-git"
45
+ }
40
46
  },
41
47
  "devDependencies": {
48
+ "@release-it/conventional-changelog": "^5.1.1",
42
49
  "@types/jest": "^29.0.0",
43
50
  "@types/jsdom": "^20.0.0",
44
51
  "@types/node": "^18.7.16",
45
52
  "@types/offscreencanvas": "^2019.7.0",
46
53
  "@typescript-eslint/eslint-plugin": "^5.36.2",
47
54
  "@typescript-eslint/parser": "^5.36.2",
55
+ "@vue/babel-plugin-jsx": "^1.1.1",
56
+ "commitizen": "^4.3.0",
57
+ "cz-git": "^1.6.1",
58
+ "czg": "^1.6.1",
48
59
  "dts-bundle-generator": "^6.13.0",
49
60
  "eslint": "^8.23.0",
50
61
  "eslint-config-prettier": "^8.5.0",
@@ -53,20 +64,29 @@
53
64
  "inquirer": "8.0.0",
54
65
  "jest": "^28.1.3",
55
66
  "lint-staged": "^13.0.3",
67
+ "mxdraw": "^0.1.156",
56
68
  "prettier": "^2.7.1",
69
+ "release-it": "^15.10.3",
57
70
  "stylelint": "^14.11.0",
58
71
  "stylelint-config-recommended": "^9.0.0",
59
72
  "stylelint-config-sass-guidelines": "^9.0.1",
60
73
  "three": "0.113.2",
61
74
  "ts-jest": "^28.0.8",
62
75
  "ts-node": "^10.9.1",
63
- "typedoc": "^0.23.21",
76
+ "typedoc": "^0.24.7",
77
+ "typedoc-plugin-markdown": "^3.15.3",
78
+ "typedoc-plugin-mdn-links": "^3.0.3",
64
79
  "typescript": "^4.8.3",
65
80
  "vite": "^3.1.0",
66
81
  "vite-plugin-html": "^3.2.0",
67
82
  "vite-plugin-top-level-await": "^1.2.2",
68
- "vite-plugin-wasm": "^3.1.0"
83
+ "vite-plugin-vitepress-auto-sidebar": "^1.4.1",
84
+ "vite-plugin-wasm": "^3.1.0",
85
+ "vitepress": "^1.0.0-alpha.75",
86
+ "vitepress-demo-editor": "^3.2.1"
69
87
  },
70
88
  "license": "MIT",
71
- "dependencies": {}
89
+ "dependencies": {
90
+ "vitepress-plugin-pagefind": "^0.2.4"
91
+ }
72
92
  }
@@ -1,3 +0,0 @@
1
-
2
- declare module 'mxcad/dist/mxdrawassembly_min.wasm'
3
- declare module 'mxcad/wasm'