@modern-js/plugin-docsite 1.0.0-rc.2 → 1.0.0-rc.7

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 ADDED
@@ -0,0 +1,64 @@
1
+ # @modern-js/plugin-docsite
2
+
3
+ ## 1.0.0-rc.7
4
+
5
+ ### Patch Changes
6
+
7
+ - 224f7fe: fix server route match
8
+ - 204c626: feat: initial
9
+ - Updated dependencies [224f7fe]
10
+ - Updated dependencies [204c626]
11
+ - @modern-js/core@1.0.0-rc.7
12
+ - @modern-js/webpack@1.0.0-rc.7
13
+ - @modern-js/plugin@1.0.0-rc.7
14
+ - @modern-js/utils@1.0.0-rc.7
15
+
16
+ ## 1.0.0-rc.6
17
+
18
+ ### Patch Changes
19
+
20
+ - 224f7fe: fix server route match
21
+ - 204c626: feat: initial
22
+ - Updated dependencies [224f7fe]
23
+ - Updated dependencies [204c626]
24
+ - @modern-js/core@1.0.0-rc.6
25
+ - @modern-js/webpack@1.0.0-rc.6
26
+ - @modern-js/plugin@1.0.0-rc.6
27
+ - @modern-js/utils@1.0.0-rc.6
28
+
29
+ ## 1.0.0-rc.5
30
+
31
+ ### Patch Changes
32
+
33
+ - 224f7fe: fix server route match
34
+ - 204c626: feat: initial
35
+ - Updated dependencies [224f7fe]
36
+ - Updated dependencies [204c626]
37
+ - @modern-js/core@1.0.0-rc.5
38
+ - @modern-js/webpack@1.0.0-rc.5
39
+ - @modern-js/plugin@1.0.0-rc.5
40
+ - @modern-js/utils@1.0.0-rc.5
41
+
42
+ ## 1.0.0-rc.4
43
+
44
+ ### Patch Changes
45
+
46
+ - fix server route match
47
+ - 204c626: feat: initial
48
+ - Updated dependencies [undefined]
49
+ - Updated dependencies [204c626]
50
+ - @modern-js/core@1.0.0-rc.4
51
+ - @modern-js/webpack@1.0.0-rc.4
52
+ - @modern-js/plugin@1.0.0-rc.4
53
+ - @modern-js/utils@1.0.0-rc.4
54
+
55
+ ## 1.0.0-rc.3
56
+
57
+ ### Patch Changes
58
+
59
+ - feat: initial
60
+ - Updated dependencies [undefined]
61
+ - @modern-js/core@1.0.0-rc.3
62
+ - @modern-js/webpack@1.0.0-rc.3
63
+ - @modern-js/plugin@1.0.0-rc.3
64
+ - @modern-js/utils@1.0.0-rc.3
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  <p align="center">
3
- <a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs.png" width="300" alt="Modern.js Logo" /></a>
3
+ <a href="https://modernjs.dev" target="blank"><img src="https://lf3-static.bytednsdoc.com/obj/eden-cn/ylaelkeh7nuhfnuhf/modernjs-cover.png" width="300" alt="Modern.js Logo" /></a>
4
4
  </p>
5
5
 
6
6
  <p align="center">现代 Web 工程体系</p>
@@ -28,7 +28,7 @@ const loadTemplate = async (file, customPath = false) => {
28
28
  if (customPath) {
29
29
  result = await fs.readFile(file, 'utf-8');
30
30
  } else {
31
- result = await fs.readFile(path.resolve(__dirname, '../../..', 'static', file), 'utf-8');
31
+ result = await fs.readFile(path.join(UTILS_STATIC, file), 'utf-8');
32
32
  }
33
33
 
34
34
  return _template(result, {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.MDX_DEFAULT_RENDERER = exports.DOCS_RENDER_PATH = exports.UTILS_STATIC = void 0;
6
+ exports.UTILS_STATIC = exports.MDX_DEFAULT_RENDERER = exports.DOCS_RENDER_PATH = void 0;
7
7
 
8
8
  var _path = _interopRequireDefault(require("path"));
9
9
 
@@ -51,7 +51,7 @@ const loadTemplate = async (file, customPath = false) => {
51
51
  if (customPath) {
52
52
  result = await _utils.fs.readFile(file, 'utf-8');
53
53
  } else {
54
- result = await _utils.fs.readFile(_path.default.resolve(__dirname, '../../..', 'static', file), 'utf-8');
54
+ result = await _utils.fs.readFile(_path.default.join(_constant.UTILS_STATIC, file), 'utf-8');
55
55
  }
56
56
 
57
57
  return (0, _template2.default)(result, {
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@modern-js/plugin-docsite",
3
- "version": "1.0.0-rc.2",
3
+ "version": "1.0.0-rc.7",
4
4
  "jsnext:source": "./src/index.ts",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "main": "./dist/js/node/index.js",
@@ -21,10 +21,10 @@
21
21
  "@babel/runtime": "^7",
22
22
  "@mdx-js/mdx": "^1.6.22",
23
23
  "@mdx-js/react": "^1.6.22",
24
- "@modern-js/core": "^1.0.0-rc.2",
25
- "@modern-js/plugin": "^1.0.0-rc.2",
26
- "@modern-js/utils": "^1.0.0-rc.2",
27
- "@modern-js/webpack": "^1.0.0-rc.2",
24
+ "@modern-js/core": "^1.0.0-rc.7",
25
+ "@modern-js/plugin": "^1.0.0-rc.7",
26
+ "@modern-js/utils": "^1.0.0-rc.7",
27
+ "@modern-js/webpack": "^1.0.0-rc.7",
28
28
  "antd": "^4.16.13",
29
29
  "chokidar": "^3.5.2",
30
30
  "core-js": "^3.17.2",
@@ -48,7 +48,7 @@
48
48
  "webpack-dev-server": "^4.1.1"
49
49
  },
50
50
  "devDependencies": {
51
- "@modern-js/module-tools-hooks": "^1.0.0-rc.2",
51
+ "@modern-js/module-tools-hooks": "^1.0.0-rc.7",
52
52
  "@types/core-js": "^2.5.5",
53
53
  "@types/github-slugger": "^1.3.0",
54
54
  "@types/glob": "^7.1.4",
@@ -59,8 +59,8 @@
59
59
  "@types/react-dom": "^17",
60
60
  "@types/webpack-dev-server": "^4.1.0",
61
61
  "typescript": "^4",
62
- "@modern-js/plugin-testing": "^1.0.0-rc.2",
63
- "@modern-js/module-tools": "^1.0.0-rc.2"
62
+ "@modern-js/plugin-testing": "^1.0.0-rc.7",
63
+ "@modern-js/module-tools": "^1.0.0-rc.7"
64
64
  },
65
65
  "sideEffects": false,
66
66
  "modernConfig": {
@@ -74,6 +74,10 @@
74
74
  ]
75
75
  }
76
76
  },
77
+ "publishConfig": {
78
+ "registry": "https://registry.npmjs.org/",
79
+ "access": "public"
80
+ },
77
81
  "scripts": {
78
82
  "new": "modern new",
79
83
  "build": "modern build",
@@ -20,10 +20,7 @@ const loadTemplate = async (file: string, customPath = false) => {
20
20
  if (customPath) {
21
21
  result = await fs.readFile(file, 'utf-8');
22
22
  } else {
23
- result = await fs.readFile(
24
- path.resolve(__dirname, '../../..', 'static', file),
25
- 'utf-8',
26
- );
23
+ result = await fs.readFile(path.join(UTILS_STATIC, file), 'utf-8');
27
24
  }
28
25
 
29
26
  return template(result, { interpolate: /<%=([\s\S]+?)%>/g });