@modern-js/plugin-docsite 0.0.0-canary-20220425114412 → 0.0.0-canary-20220513004825

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
@@ -1,5 +1,58 @@
1
1
  # @modern-js/plugin-docsite
2
2
 
3
+ ## 0.0.0-canary-20220513004825
4
+
5
+ ### Patch Changes
6
+
7
+ - d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
8
+ - Updated dependencies [d2995e7d7]
9
+ - Updated dependencies [47934c4da]
10
+ - Updated dependencies [d32f35134]
11
+ - Updated dependencies [b1f7d2aa6]
12
+ - Updated dependencies [97086dde8]
13
+ - Updated dependencies [6ae4a34ae]
14
+ - Updated dependencies [97086dde8]
15
+ - Updated dependencies [97086dde8]
16
+ - Updated dependencies [948cc4436]
17
+ - @modern-js/webpack@0.0.0-canary-20220513004825
18
+ - @modern-js/utils@0.0.0-canary-20220513004825
19
+
20
+ ## 1.2.9
21
+
22
+ ### Patch Changes
23
+
24
+ - 69a728375: fix: remove exports.jsnext:source after publish
25
+ - Updated dependencies [b7b8075dc]
26
+ - Updated dependencies [cd7346b0d]
27
+ - Updated dependencies [0e0537005]
28
+ - Updated dependencies [738c55d39]
29
+ - Updated dependencies [69a728375]
30
+ - @modern-js/webpack@1.6.2
31
+ - @modern-js/utils@1.7.2
32
+
33
+ ## 1.2.8
34
+
35
+ ### Patch Changes
36
+
37
+ - 77519490: refactor(webpack): remove `@modern-js/core`
38
+ - Updated dependencies [2d155c4c]
39
+ - Updated dependencies [a0475f1a]
40
+ - Updated dependencies [123e432d]
41
+ - Updated dependencies [e5a9b26d]
42
+ - Updated dependencies [0b26b93b]
43
+ - Updated dependencies [123e432d]
44
+ - Updated dependencies [f9f66ef9]
45
+ - Updated dependencies [71526621]
46
+ - Updated dependencies [77519490]
47
+ - Updated dependencies [592edabc]
48
+ - Updated dependencies [3578716a]
49
+ - Updated dependencies [895fa0ff]
50
+ - Updated dependencies [3d1fac2a]
51
+ - Updated dependencies [3578913e]
52
+ - Updated dependencies [1c3beab3]
53
+ - @modern-js/utils@1.6.0
54
+ - @modern-js/webpack@1.5.7
55
+
3
56
  ## 1.2.7
4
57
 
5
58
  ### Patch Changes
@@ -5,7 +5,8 @@ import webpack from 'webpack';
5
5
  import { getWebpackConfig, WebpackConfigTarget } from '@modern-js/webpack';
6
6
  import { UTILS_STATIC } from "../constant";
7
7
  export function generatorWebpackConfig(appDirectory, tmpDir, isDev) {
8
- const originConfig = getWebpackConfig(WebpackConfigTarget.CLIENT);
8
+ // FIXME: 这个包现在没有使用,待使用时再重构 webpack 配置的获取
9
+ const originConfig = getWebpackConfig(WebpackConfigTarget.CLIENT, {}, {});
9
10
  const plugins = (originConfig.plugins || []).filter(p => p.constructor !== webpack.HotModuleReplacementPlugin);
10
11
  const config = {
11
12
  mode: isDev ? 'development' : 'production',
@@ -21,7 +21,8 @@ var _constant = require("../constant");
21
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
22
 
23
23
  function generatorWebpackConfig(appDirectory, tmpDir, isDev) {
24
- const originConfig = (0, _webpack2.getWebpackConfig)(_webpack2.WebpackConfigTarget.CLIENT);
24
+ // FIXME: 这个包现在没有使用,待使用时再重构 webpack 配置的获取
25
+ const originConfig = (0, _webpack2.getWebpackConfig)(_webpack2.WebpackConfigTarget.CLIENT, {}, {});
25
26
  const plugins = (originConfig.plugins || []).filter(p => p.constructor !== _webpack.default.HotModuleReplacementPlugin);
26
27
  const config = {
27
28
  mode: isDev ? 'development' : 'production',
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-canary-20220425114412",
14
+ "version": "0.0.0-canary-20220513004825",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -37,8 +37,8 @@
37
37
  "@babel/runtime": "^7",
38
38
  "@mdx-js/mdx": "^1.6.22",
39
39
  "@mdx-js/react": "^1.6.22",
40
- "@modern-js/utils": "^0.0.0-canary-20220425114412",
41
- "@modern-js/webpack": "^0.0.0-canary-20220425114412",
40
+ "@modern-js/utils": "^0.0.0-canary-20220513004825",
41
+ "@modern-js/webpack": "^0.0.0-canary-20220513004825",
42
42
  "antd": "^4.16.13",
43
43
  "core-js": "^3.17.2",
44
44
  "github-slugger": "^1.4.0",
@@ -58,7 +58,7 @@
58
58
  "webpack-dev-server": "^4.1.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@modern-js/core": "0.0.0-canary-20220425114412",
61
+ "@modern-js/core": "0.0.0-canary-20220513004825",
62
62
  "@scripts/build": "0.0.0",
63
63
  "@scripts/jest-config": "0.0.0",
64
64
  "@types/core-js": "^2.5.5",
@@ -88,10 +88,32 @@
88
88
  "registry": "https://registry.npmjs.org/",
89
89
  "access": "public"
90
90
  },
91
+ "wireit": {
92
+ "build": {
93
+ "command": "modern build",
94
+ "files": [
95
+ "src/**/*",
96
+ "tsconfig.json",
97
+ "package.json"
98
+ ],
99
+ "output": [
100
+ "dist/**/*"
101
+ ]
102
+ },
103
+ "test": {
104
+ "command": "jest --passWithNoTests",
105
+ "files": [
106
+ "src/**/*",
107
+ "tsconfig.json",
108
+ "package.json"
109
+ ],
110
+ "output": []
111
+ }
112
+ },
91
113
  "scripts": {
92
114
  "new": "modern new",
93
- "build": "modern build",
94
- "test": "jest --passWithNoTests"
115
+ "build": "wireit",
116
+ "test": "wireit"
95
117
  },
96
118
  "readme": "\n<p align=\"center\">\n <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>\n</p>\n<p align=\"center\">\n现代 Web 工程体系\n <br/>\n <a href=\"https://modernjs.dev\" target=\"blank\">\n modernjs.dev\n </a>\n</p>\n<p align=\"center\">\n The meta-framework suite designed from scratch for frontend-focused modern web development\n</p>\n\n# Introduction\n\n> The doc site ([modernjs.dev](https://modernjs.dev)) and articles are only available in Chinese for now, we are planning to add English versions soon.\n\n- [Modern.js: Hello, World!](https://zhuanlan.zhihu.com/p/426707646)\n\n## Getting Started\n\n- [Quick Start](https://modernjs.dev/docs/start)\n- [Guides](https://modernjs.dev/docs/guides)\n- [API References](https://modernjs.dev/docs/apis)\n\n## Contributing\n\n- [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)\n"
97
119
  }
package/.eslintrc.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ['@modern-js'],
4
- parserOptions: {
5
- tsconfigRootDir: __dirname,
6
- project: ['./tsconfig.json'],
7
- },
8
- };
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "baseUrl": "./",
6
- "paths": {
7
- "@*": ["./*"]
8
- },
9
- "lib": ["dom", "dom.iterable", "esnext"],
10
- "allowJs": true,
11
- "skipLibCheck": true,
12
- "esModuleInterop": true,
13
- "allowSyntheticDefaultImports": true,
14
- "strict": true,
15
- "noImplicitReturns": true,
16
- "noUnusedLocals": true,
17
- "noUnusedParameters": true,
18
- "forceConsistentCasingInFileNames": true,
19
- "moduleResolution": "node",
20
- "resolveJsonModule": true,
21
- "noEmit": true,
22
- "jsx": "react"
23
- },
24
- "include": ["src"]
25
- }
package/jest.config.js DELETED
@@ -1,7 +0,0 @@
1
- const sharedConfig = require('@scripts/jest-config');
2
-
3
- /** @type {import('@jest/types').Config.InitialOptions} */
4
- module.exports = {
5
- ...sharedConfig,
6
- rootDir: __dirname,
7
- };
package/modern.config.js DELETED
@@ -1,2 +0,0 @@
1
- /** @type {import('@modern-js/module-tools').UserConfig} */
2
- module.exports = {};
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "module": "esnext",
5
- "baseUrl": "./",
6
- "paths": {
7
- "@*": ["./*"]
8
- },
9
- "lib": ["dom", "dom.iterable", "esnext"],
10
- "allowJs": true,
11
- "skipLibCheck": true,
12
- "esModuleInterop": true,
13
- "allowSyntheticDefaultImports": true,
14
- "strict": true,
15
- "noImplicitReturns": true,
16
- "noUnusedLocals": true,
17
- "noUnusedParameters": true,
18
- "forceConsistentCasingInFileNames": true,
19
- "moduleResolution": "node",
20
- "resolveJsonModule": true,
21
- "noEmit": true,
22
- "jsx": "react"
23
- },
24
- "include": ["src"]
25
- }
package/tsconfig.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "isolatedModules": true,
8
- "paths": {}
9
- },
10
- "include": ["src"]
11
- }