@modern-js/repo-generator 0.0.0-next-20230207091311 → 0.0.0-next-20230207110201

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.
Files changed (3) hide show
  1. package/README.md +13 -16
  2. package/dist/index.js +13 -2
  3. package/package.json +11 -11
package/README.md CHANGED
@@ -1,29 +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>
5
- <p align="center">
6
- 现代 Web 工程体系
7
- <br/>
8
- <a href="https://modernjs.dev" target="blank">
9
- modernjs.dev
10
- </a>
11
- </p>
4
+
5
+ <h1 align="center">Modern.js</h1>
6
+
12
7
  <p align="center">
13
8
  A Progressive React Framework for modern web development.
14
9
  </p>
15
10
 
16
- # Introduction
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
 
13
+ Please follow [Quick Start](https://modernjs.dev/en/guides/get-started/quick-start) to get started with Modern.js.
20
14
 
21
- ## Getting Started
15
+ ## Documentation
22
16
 
23
- - [Quick Start](https://modernjs.dev/docs/start)
24
- - [Guides](https://modernjs.dev/docs/guides)
25
- - [API References](https://modernjs.dev/docs/apis)
17
+ - [English Documentation](https://modernjs.dev/en/)
18
+ - [中文文档](https://modernjs.dev)
26
19
 
27
20
  ## Contributing
28
21
 
29
- - [Contributing Guide](https://github.com/modern-js-dev/modern.js/blob/main/CONTRIBUTING.md)
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).
package/dist/index.js CHANGED
@@ -136422,7 +136422,7 @@ var require_is2 = __commonJS({
136422
136422
  return mod && mod.__esModule ? mod : { "default": mod };
136423
136423
  };
136424
136424
  Object.defineProperty(exports, "__esModule", { value: true });
136425
- exports.isFastRefresh = exports.isUseSSRBundle = exports.isSSR = exports.isEmpty = exports.isTypescript = exports.isDepExists = void 0;
136425
+ exports.isFastRefresh = exports.isWorker = exports.isUseSSRBundle = exports.isSSR = exports.isEmpty = exports.isTypescript = exports.isDepExists = void 0;
136426
136426
  var fs_1 = __importDefault(require("fs"));
136427
136427
  var path_1 = __importDefault(require("path"));
136428
136428
  var debug_1 = require_debug5();
@@ -136459,13 +136459,24 @@ var require_is2 = __commonJS({
136459
136459
  };
136460
136460
  exports.isSSR = isSSR;
136461
136461
  var isUseSSRBundle = (config) => {
136462
- const { output: output2 } = config;
136462
+ const { output: output2, server } = config;
136463
+ if (server === null || server === void 0 ? void 0 : server.worker) {
136464
+ return false;
136465
+ }
136463
136466
  if (output2 === null || output2 === void 0 ? void 0 : output2.ssg) {
136464
136467
  return true;
136465
136468
  }
136466
136469
  return (0, exports.isSSR)(config);
136467
136470
  };
136468
136471
  exports.isUseSSRBundle = isUseSSRBundle;
136472
+ var isWorker = (config) => {
136473
+ const { output: output2, server } = config;
136474
+ if ((server === null || server === void 0 ? void 0 : server.worker) && ((output2 === null || output2 === void 0 ? void 0 : output2.ssg) || (0, exports.isSSR)(config))) {
136475
+ return true;
136476
+ }
136477
+ return false;
136478
+ };
136479
+ exports.isWorker = isWorker;
136469
136480
  var isFastRefresh = () => (0, node_env_1.isDev)() && process.env.FAST_REFRESH !== "false";
136470
136481
  exports.isFastRefresh = isFastRefresh;
136471
136482
  __exportStar(require_node_env2(), exports);
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "0.0.0-next-20230207091311",
14
+ "version": "0.0.0-next-20230207110201",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "main": "./dist/index.js",
17
17
  "files": [
@@ -26,16 +26,16 @@
26
26
  "@types/node": "^14",
27
27
  "jest": "^27",
28
28
  "typescript": "^4",
29
- "@modern-js/base-generator": "0.0.0-next-20230207091311",
30
- "@modern-js/generator-common": "0.0.0-next-20230207091311",
31
- "@modern-js/generator-plugin": "0.0.0-next-20230207091311",
32
- "@modern-js/generator-utils": "0.0.0-next-20230207091311",
33
- "@modern-js/module-generator": "0.0.0-next-20230207091311",
34
- "@modern-js/monorepo-generator": "0.0.0-next-20230207091311",
35
- "@modern-js/mwa-generator": "0.0.0-next-20230207091311",
36
- "@modern-js/utils": "0.0.0-next-20230207091311",
37
- "@scripts/build": "0.0.0-next-20230207091311",
38
- "@scripts/jest-config": "0.0.0-next-20230207091311"
29
+ "@modern-js/base-generator": "0.0.0-next-20230207110201",
30
+ "@modern-js/generator-common": "0.0.0-next-20230207110201",
31
+ "@modern-js/generator-plugin": "0.0.0-next-20230207110201",
32
+ "@modern-js/generator-utils": "0.0.0-next-20230207110201",
33
+ "@modern-js/module-generator": "0.0.0-next-20230207110201",
34
+ "@modern-js/monorepo-generator": "0.0.0-next-20230207110201",
35
+ "@modern-js/mwa-generator": "0.0.0-next-20230207110201",
36
+ "@modern-js/utils": "0.0.0-next-20230207110201",
37
+ "@scripts/build": "0.0.0-next-20230207110201",
38
+ "@scripts/jest-config": "0.0.0-next-20230207110201"
39
39
  },
40
40
  "sideEffects": false,
41
41
  "publishConfig": {