@modern-js/generator-cases 1.2.4 → 1.2.7-alpha.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 +23 -0
- package/dist/js/treeshaking/index.js +3 -18
- package/dist/types/index.d.ts +4 -4
- package/package.json +29 -6
- package/.eslintrc.js +0 -8
- package/jest.config.js +0 -7
- package/modern.config.js +0 -2
- package/tsconfig.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @modern-js/generator-cases
|
|
2
2
|
|
|
3
|
+
## 1.2.7-alpha.0
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- @modern-js/generator-common@1.4.13-alpha.0
|
|
8
|
+
|
|
9
|
+
## 1.2.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- a1198d509: feat: bump babel 7.18.0
|
|
14
|
+
- Updated dependencies [a1198d509]
|
|
15
|
+
- Updated dependencies [c7e38b4e6]
|
|
16
|
+
- @modern-js/generator-common@1.4.12
|
|
17
|
+
|
|
18
|
+
## 1.2.5
|
|
19
|
+
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
|
|
23
|
+
- Updated dependencies [d32f35134]
|
|
24
|
+
- @modern-js/generator-common@1.4.11
|
|
25
|
+
|
|
3
26
|
## 1.2.4
|
|
4
27
|
|
|
5
28
|
### Patch Changes
|
|
@@ -1,21 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
6
|
-
|
|
7
|
-
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
8
|
-
|
|
9
|
-
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
10
|
-
|
|
11
|
-
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
12
|
-
|
|
13
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
-
|
|
15
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
16
|
-
|
|
17
|
-
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; }
|
|
18
|
-
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
19
4
|
import make from 'covertable';
|
|
20
5
|
import { Solution, PackageManager, Language, RunWay, BooleanConfig, ClientRoute, MWAActionTypes, MWAActionTypesMap, Framework, BFFType, ActionElement, ActionFunction, ModuleActionTypes, ModuleActionTypesMap, SubSolution, CDNType, LambdaType } from '@modern-js/generator-common';
|
|
21
6
|
export var LanguageValues = Object.values(Language);
|
package/dist/types/index.d.ts
CHANGED
|
@@ -11,10 +11,10 @@ export declare const LambdaTypeValues: LambdaType[];
|
|
|
11
11
|
export declare const MWAValueMap: Record<string, string[]>;
|
|
12
12
|
export declare const ModuleValueMap: Record<string, string[]>;
|
|
13
13
|
export declare const MonorepoValueMap: Record<string, string[]>;
|
|
14
|
-
export declare const getMWACases: (length?: number
|
|
14
|
+
export declare const getMWACases: (length?: number) => {
|
|
15
15
|
solution: Solution;
|
|
16
16
|
}[];
|
|
17
|
-
export declare const getModuleCases: (length?: number
|
|
17
|
+
export declare const getModuleCases: (length?: number) => {
|
|
18
18
|
solution: Solution;
|
|
19
19
|
}[];
|
|
20
20
|
export declare const getMonorepoCases: () => {
|
|
@@ -24,8 +24,8 @@ export declare const MWAEntryValueMap: Record<string, string[]>;
|
|
|
24
24
|
export declare const MWAServerValueMap: Record<string, string[]>;
|
|
25
25
|
export declare const MWABFFValueMap: Record<string, string[]>;
|
|
26
26
|
export declare const MWADeployValueMap: Record<string, string[]>;
|
|
27
|
-
export declare const getMWANewCases: (length?: number
|
|
27
|
+
export declare const getMWANewCases: (length?: number) => Record<string, string>[];
|
|
28
28
|
export declare const getModuleNewCases: () => Record<string, string>[];
|
|
29
29
|
export declare const MWASubProjectValueMap: Record<string, string[]>;
|
|
30
30
|
export declare const ModuleSubProjectValueMap: Record<string, string[]>;
|
|
31
|
-
export declare const getMonorepoNewCases: (length?: number
|
|
31
|
+
export declare const getMonorepoNewCases: (length?: number) => Record<string, string>[];
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.2.
|
|
14
|
+
"version": "1.2.7-alpha.0",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -28,12 +28,12 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/runtime": "^7",
|
|
31
|
+
"@babel/runtime": "^7.18.0",
|
|
32
32
|
"covertable": "^2.2.2",
|
|
33
|
-
"@modern-js/generator-common": "^1.4.
|
|
33
|
+
"@modern-js/generator-common": "^1.4.13-alpha.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@types/jest": "^
|
|
36
|
+
"@types/jest": "^27",
|
|
37
37
|
"@types/node": "^14",
|
|
38
38
|
"typescript": "^4",
|
|
39
39
|
"@scripts/build": "0.0.0",
|
|
@@ -45,10 +45,33 @@
|
|
|
45
45
|
"registry": "https://registry.npmjs.org/",
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
+
"wireit": {
|
|
49
|
+
"build": {
|
|
50
|
+
"command": "modern build",
|
|
51
|
+
"files": [
|
|
52
|
+
"src/**/*",
|
|
53
|
+
"tsconfig.json",
|
|
54
|
+
"package.json"
|
|
55
|
+
],
|
|
56
|
+
"output": [
|
|
57
|
+
"dist/**/*"
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
"test": {
|
|
61
|
+
"command": "jest --passWithNoTests",
|
|
62
|
+
"files": [
|
|
63
|
+
"src/**/*",
|
|
64
|
+
"tsconfig.json",
|
|
65
|
+
"package.json",
|
|
66
|
+
"tests/**/*"
|
|
67
|
+
],
|
|
68
|
+
"output": []
|
|
69
|
+
}
|
|
70
|
+
},
|
|
48
71
|
"scripts": {
|
|
49
72
|
"new": "modern new",
|
|
50
|
-
"build": "
|
|
51
|
-
"test": "
|
|
73
|
+
"build": "wireit",
|
|
74
|
+
"test": "wireit"
|
|
52
75
|
},
|
|
53
76
|
"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"
|
|
54
77
|
}
|
package/.eslintrc.js
DELETED
package/jest.config.js
DELETED
package/modern.config.js
DELETED