@modern-js/plugin-docsite 0.0.0-canary-20220414073202 → 0.0.0-canary-20220512102344

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,6 +1,77 @@
1
1
  # @modern-js/plugin-docsite
2
2
 
3
- ## 0.0.0-canary-20220414073202
3
+ ## 0.0.0-canary-20220512102344
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
+ - @modern-js/webpack@0.0.0-canary-20220512102344
17
+ - @modern-js/utils@0.0.0-canary-20220512102344
18
+
19
+ ## 1.2.9
20
+
21
+ ### Patch Changes
22
+
23
+ - 69a728375: fix: remove exports.jsnext:source after publish
24
+ - Updated dependencies [b7b8075dc]
25
+ - Updated dependencies [cd7346b0d]
26
+ - Updated dependencies [0e0537005]
27
+ - Updated dependencies [738c55d39]
28
+ - Updated dependencies [69a728375]
29
+ - @modern-js/webpack@1.6.2
30
+ - @modern-js/utils@1.7.2
31
+
32
+ ## 1.2.8
33
+
34
+ ### Patch Changes
35
+
36
+ - 77519490: refactor(webpack): remove `@modern-js/core`
37
+ - Updated dependencies [2d155c4c]
38
+ - Updated dependencies [a0475f1a]
39
+ - Updated dependencies [123e432d]
40
+ - Updated dependencies [e5a9b26d]
41
+ - Updated dependencies [0b26b93b]
42
+ - Updated dependencies [123e432d]
43
+ - Updated dependencies [f9f66ef9]
44
+ - Updated dependencies [71526621]
45
+ - Updated dependencies [77519490]
46
+ - Updated dependencies [592edabc]
47
+ - Updated dependencies [3578716a]
48
+ - Updated dependencies [895fa0ff]
49
+ - Updated dependencies [3d1fac2a]
50
+ - Updated dependencies [3578913e]
51
+ - Updated dependencies [1c3beab3]
52
+ - @modern-js/utils@1.6.0
53
+ - @modern-js/webpack@1.5.7
54
+
55
+ ## 1.2.7
56
+
57
+ ### Patch Changes
58
+
59
+ - 6cffe99d: chore:
60
+ remove react eslint rules for `modern-js` rule set.
61
+ add .eslintrc for each package to speed up linting
62
+ - 04ae5262: chore: bump @modern-js/utils to v1.4.1 in dependencies
63
+ - 60f7d8bf: feat: add tests dir to npmignore
64
+ - 5dbbeb57: fix: export extended Command type
65
+ - Updated dependencies [b8599d09]
66
+ - Updated dependencies [6cffe99d]
67
+ - Updated dependencies [04ae5262]
68
+ - Updated dependencies [60f7d8bf]
69
+ - Updated dependencies [e4cec1ce]
70
+ - Updated dependencies [3bf4f8b0]
71
+ - @modern-js/utils@1.5.0
72
+ - @modern-js/webpack@1.5.5
73
+
74
+ ## 1.2.6
4
75
 
5
76
  ### Patch Changes
6
77
 
@@ -12,8 +83,8 @@
12
83
  - Updated dependencies [ea2ae711]
13
84
  - Updated dependencies [17d0cc46]
14
85
  - Updated dependencies [d2d1d6b2]
15
- - @modern-js/webpack@0.0.0-canary-20220414073202
16
- - @modern-js/utils@0.0.0-canary-20220414073202
86
+ - @modern-js/webpack@1.5.4
87
+ - @modern-js/utils@1.4.0
17
88
 
18
89
  ## 1.2.5
19
90
 
@@ -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-20220414073202",
14
+ "version": "0.0.0-canary-20220512102344",
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-20220414073202",
41
- "@modern-js/webpack": "^0.0.0-canary-20220414073202",
40
+ "@modern-js/utils": "^0.0.0-canary-20220512102344",
41
+ "@modern-js/webpack": "^0.0.0-canary-20220512102344",
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-20220414073202",
61
+ "@modern-js/core": "0.0.0-canary-20220512102344",
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
  }
@@ -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
- }
@@ -1,7 +0,0 @@
1
- import plugin from '../src';
2
-
3
- describe('plugin-docset', () => {
4
- it('default', () => {
5
- expect(plugin).toBeDefined();
6
- });
7
- });
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": true,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "outDir": "./out",
8
- "emitDeclarationOnly": true,
9
- "isolatedModules": true,
10
- "paths": {},
11
- "types": ["node", "jest"]
12
- }
13
- }
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
- }