@modern-js/plugin-bff 2.3.0 → 2.4.1-beta.0
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 +21 -0
- package/README.md +14 -18
- package/dist/js/treeshaking/cli.js +4 -4
- package/dist/js/treeshaking/server.js +1 -1
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @modern-js/plugin-bff
|
|
2
2
|
|
|
3
|
+
## 2.4.1-beta.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [11c053b]
|
|
8
|
+
- @modern-js/utils@2.4.1-beta.0
|
|
9
|
+
- @modern-js/server-utils@2.4.1-beta.0
|
|
10
|
+
- @modern-js/bff-core@2.4.1-beta.0
|
|
11
|
+
- @modern-js/create-request@2.4.1-beta.0
|
|
12
|
+
|
|
13
|
+
## 2.4.0
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Updated dependencies [98a2733]
|
|
18
|
+
- Updated dependencies [8c2db5f]
|
|
19
|
+
- @modern-js/utils@2.4.0
|
|
20
|
+
- @modern-js/bff-core@2.4.0
|
|
21
|
+
- @modern-js/create-request@2.4.0
|
|
22
|
+
- @modern-js/server-utils@2.4.0
|
|
23
|
+
|
|
3
24
|
## 2.3.0
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
|
-
|
|
2
1
|
<p align="center">
|
|
3
2
|
<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
3
|
</p>
|
|
4
|
+
|
|
5
|
+
<h1 align="center">Modern.js</h1>
|
|
6
|
+
|
|
5
7
|
<p align="center">
|
|
6
|
-
|
|
7
|
-
<br/>
|
|
8
|
-
<a href="https://modernjs.dev" target="blank">
|
|
9
|
-
modernjs.dev
|
|
10
|
-
</a>
|
|
11
|
-
</p>
|
|
12
|
-
<p align="center">
|
|
13
|
-
The meta-framework suite designed from scratch for frontend-focused modern web development
|
|
8
|
+
A Progressive React Framework for modern web development.
|
|
14
9
|
</p>
|
|
15
10
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
> 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.
|
|
11
|
+
## Getting Started
|
|
19
12
|
|
|
20
|
-
|
|
13
|
+
Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
|
|
21
14
|
|
|
22
|
-
##
|
|
15
|
+
## Documentation
|
|
23
16
|
|
|
24
|
-
- [
|
|
25
|
-
- [
|
|
26
|
-
- [API References](https://modernjs.dev/docs/apis)
|
|
17
|
+
- [English Documentation](https://modernjs.dev/en/)
|
|
18
|
+
- [中文文档](https://modernjs.dev)
|
|
27
19
|
|
|
28
20
|
## Contributing
|
|
29
21
|
|
|
30
|
-
|
|
22
|
+
Please read the [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md).
|
|
23
|
+
|
|
24
|
+
## License
|
|
25
|
+
|
|
26
|
+
Modern.js is [MIT licensed](https://github.com/modern-js-dev/modern.js/blob/main/LICENSE).
|
|
@@ -168,7 +168,7 @@ var cli_default = function() {
|
|
|
168
168
|
tools: {
|
|
169
169
|
webpackChain: function(chain, param) {
|
|
170
170
|
var name = param.name, CHAIN_ID = param.CHAIN_ID;
|
|
171
|
-
var
|
|
171
|
+
var _api_useAppContext = api.useAppContext(), appDirectory = _api_useAppContext.appDirectory, port = _api_useAppContext.port;
|
|
172
172
|
var modernConfig = api.useResolvedConfigContext();
|
|
173
173
|
var bff = (modernConfig || {}).bff;
|
|
174
174
|
var prefix = (bff === null || bff === void 0 ? void 0 : bff.prefix) || DEFAULT_API_PREFIX;
|
|
@@ -250,14 +250,14 @@ var cli_default = function() {
|
|
|
250
250
|
},
|
|
251
251
|
afterBuild: function afterBuild() {
|
|
252
252
|
return _asyncToGenerator(function() {
|
|
253
|
-
var
|
|
253
|
+
var _api_useAppContext, appDirectory, distDirectory, modernConfig, distDir, apiDir, sharedDir, tsconfigPath, sourceDirs, server, _modernConfig_source, alias, define, globalVars, babel;
|
|
254
254
|
return __generator(this, function(_state) {
|
|
255
255
|
switch(_state.label){
|
|
256
256
|
case 0:
|
|
257
257
|
if (unRegisterResolveRuntimePath) {
|
|
258
258
|
unRegisterResolveRuntimePath();
|
|
259
259
|
}
|
|
260
|
-
|
|
260
|
+
_api_useAppContext = api.useAppContext(), appDirectory = _api_useAppContext.appDirectory, distDirectory = _api_useAppContext.distDirectory;
|
|
261
261
|
modernConfig = api.useResolvedConfigContext();
|
|
262
262
|
distDir = path.resolve(distDirectory);
|
|
263
263
|
apiDir = path.resolve(appDirectory, API_DIR);
|
|
@@ -271,7 +271,7 @@ var cli_default = function() {
|
|
|
271
271
|
sourceDirs.push(sharedDir);
|
|
272
272
|
}
|
|
273
273
|
server = modernConfig.server;
|
|
274
|
-
|
|
274
|
+
_modernConfig_source = modernConfig.source, alias = _modernConfig_source.alias, define = _modernConfig_source.define, globalVars = _modernConfig_source.globalVars;
|
|
275
275
|
babel = modernConfig.tools.babel;
|
|
276
276
|
if (!(sourceDirs.length > 0)) return [
|
|
277
277
|
3,
|
|
@@ -105,7 +105,7 @@ var server_default = function() {
|
|
|
105
105
|
var apiAppPath = "";
|
|
106
106
|
return {
|
|
107
107
|
prepare: function prepare() {
|
|
108
|
-
var
|
|
108
|
+
var _api_useAppContext = api.useAppContext(), appDirectory = _api_useAppContext.appDirectory, distDirectory = _api_useAppContext.distDirectory;
|
|
109
109
|
var root = isProd() ? distDirectory : appDirectory;
|
|
110
110
|
var apiPath = path.resolve(root || process.cwd(), API_DIR);
|
|
111
111
|
apiAppPath = path.resolve(apiPath, API_APP_NAME);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@modern-js/plugin-bff",
|
|
3
|
-
"description": "
|
|
3
|
+
"description": "A Progressive React Framework for modern web development.",
|
|
4
4
|
"homepage": "https://modernjs.dev",
|
|
5
5
|
"bugs": "https://github.com/modern-js-dev/modern.js/issues",
|
|
6
6
|
"repository": "modern-js-dev/modern.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "2.
|
|
14
|
+
"version": "2.4.1-beta.0",
|
|
15
15
|
"jsnext:source": "./src/cli.ts",
|
|
16
16
|
"types": "./dist/types/cli.d.ts",
|
|
17
17
|
"main": "./dist/js/node/cli.js",
|
|
@@ -51,10 +51,10 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@babel/core": "^7.18.0",
|
|
53
53
|
"@babel/runtime": "^7.18.0",
|
|
54
|
-
"@modern-js/bff-core": "2.
|
|
55
|
-
"@modern-js/create-request": "2.
|
|
56
|
-
"@modern-js/server-utils": "2.
|
|
57
|
-
"@modern-js/utils": "2.
|
|
54
|
+
"@modern-js/bff-core": "2.4.1-beta.0",
|
|
55
|
+
"@modern-js/create-request": "2.4.1-beta.0",
|
|
56
|
+
"@modern-js/server-utils": "2.4.1-beta.0",
|
|
57
|
+
"@modern-js/utils": "2.4.1-beta.0"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@types/babel__core": "^7.1.15",
|
|
@@ -66,14 +66,14 @@
|
|
|
66
66
|
"typescript": "^4",
|
|
67
67
|
"webpack": "^5.75.0",
|
|
68
68
|
"webpack-chain": "^6.5.1",
|
|
69
|
-
"@modern-js/runtime": "2.
|
|
70
|
-
"@modern-js/core": "2.
|
|
71
|
-
"@modern-js/bff-runtime": "2.
|
|
72
|
-
"@modern-js/server-core": "2.
|
|
73
|
-
"@modern-js/types": "2.
|
|
74
|
-
"@modern-js/app-tools": "
|
|
75
|
-
"@scripts/build": "2.
|
|
76
|
-
"@scripts/jest-config": "2.
|
|
69
|
+
"@modern-js/runtime": "2.4.1-beta.0",
|
|
70
|
+
"@modern-js/core": "2.4.1-beta.0",
|
|
71
|
+
"@modern-js/bff-runtime": "2.4.0",
|
|
72
|
+
"@modern-js/server-core": "2.4.1-beta.0",
|
|
73
|
+
"@modern-js/types": "2.4.0",
|
|
74
|
+
"@modern-js/app-tools": "3.0.0-beta.0",
|
|
75
|
+
"@scripts/build": "2.4.0",
|
|
76
|
+
"@scripts/jest-config": "2.4.0"
|
|
77
77
|
},
|
|
78
78
|
"sideEffects": false,
|
|
79
79
|
"publishConfig": {
|