@modern-js/plugin-garfish 1.18.1 → 1.18.2
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
|
@@ -10,6 +10,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
10
10
|
|
|
11
11
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
12
|
|
|
13
|
+
import GarfishInstance from 'garfish';
|
|
13
14
|
import React from 'react';
|
|
14
15
|
import hoistNonReactStatics from 'hoist-non-react-statics';
|
|
15
16
|
import { logger } from "../util";
|
|
@@ -102,6 +103,7 @@ export default (config => ({
|
|
|
102
103
|
appInfoList,
|
|
103
104
|
apps
|
|
104
105
|
} = generateApps(GarfishConfig, manifest);
|
|
106
|
+
GarfishInstance.registerApp(appInfoList);
|
|
105
107
|
logger('generateApps', {
|
|
106
108
|
MApp,
|
|
107
109
|
apps,
|
|
@@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
var _garfish = _interopRequireDefault(require("garfish"));
|
|
9
|
+
|
|
8
10
|
var _react = _interopRequireDefault(require("react"));
|
|
9
11
|
|
|
10
12
|
var _hoistNonReactStatics = _interopRequireDefault(require("hoist-non-react-statics"));
|
|
@@ -118,6 +120,9 @@ var _default = config => ({
|
|
|
118
120
|
appInfoList,
|
|
119
121
|
apps
|
|
120
122
|
} = (0, _apps.generateApps)(GarfishConfig, manifest);
|
|
123
|
+
|
|
124
|
+
_garfish.default.registerApp(appInfoList);
|
|
125
|
+
|
|
121
126
|
(0, _util.logger)('generateApps', {
|
|
122
127
|
MApp,
|
|
123
128
|
apps,
|
|
@@ -9,6 +9,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
9
9
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
10
10
|
import _asyncToGenerator from "@babel/runtime/helpers/esm/asyncToGenerator";
|
|
11
11
|
var _excluded = ["manifest"];
|
|
12
|
+
import GarfishInstance from 'garfish';
|
|
12
13
|
import React from 'react';
|
|
13
14
|
import hoistNonReactStatics from 'hoist-non-react-statics';
|
|
14
15
|
import { logger } from "../util";
|
|
@@ -151,6 +152,7 @@ export default (function (config) {
|
|
|
151
152
|
});
|
|
152
153
|
MApp = generateMApp(GarfishConfig, manifest);
|
|
153
154
|
_generateApps = generateApps(GarfishConfig, manifest), appInfoList = _generateApps.appInfoList, apps = _generateApps.apps;
|
|
155
|
+
GarfishInstance.registerApp(appInfoList);
|
|
154
156
|
logger('generateApps', {
|
|
155
157
|
MApp: MApp,
|
|
156
158
|
apps: apps,
|
|
@@ -163,7 +165,7 @@ export default (function (config) {
|
|
|
163
165
|
appInfoList: appInfoList
|
|
164
166
|
});
|
|
165
167
|
|
|
166
|
-
case
|
|
168
|
+
case 9:
|
|
167
169
|
case "end":
|
|
168
170
|
return _context.stop();
|
|
169
171
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.18.
|
|
14
|
+
"version": "1.18.2",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/runtime/index.d.ts",
|
|
17
17
|
"typesVersions": {
|
|
@@ -122,6 +122,5 @@
|
|
|
122
122
|
"build": "wireit",
|
|
123
123
|
"build:watch": "rm -rf ./dist && modern build --watch",
|
|
124
124
|
"test": "wireit"
|
|
125
|
-
}
|
|
126
|
-
"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"
|
|
125
|
+
}
|
|
127
126
|
}
|