@modern-js/generator-cases 1.2.3 → 1.2.6
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 +30 -0
- package/dist/js/treeshaking/index.js +3 -18
- package/package.json +29 -6
- package/jest.config.js +0 -8
- package/modern.config.js +0 -2
- package/tests/.eslintrc.js +0 -6
- package/tests/__snapshots__/index.test.ts.snap +0 -6174
- package/tests/index.test.ts +0 -35
- package/tests/tsconfig.json +0 -9
- package/tsconfig.json +0 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# @modern-js/generator-cases
|
|
2
2
|
|
|
3
|
+
## 1.2.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a1198d509: feat: bump babel 7.18.0
|
|
8
|
+
- Updated dependencies [a1198d509]
|
|
9
|
+
- Updated dependencies [c7e38b4e6]
|
|
10
|
+
- @modern-js/generator-common@1.4.12
|
|
11
|
+
|
|
12
|
+
## 1.2.5
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
|
|
17
|
+
- Updated dependencies [d32f35134]
|
|
18
|
+
- @modern-js/generator-common@1.4.11
|
|
19
|
+
|
|
20
|
+
## 1.2.4
|
|
21
|
+
|
|
22
|
+
### Patch Changes
|
|
23
|
+
|
|
24
|
+
- 6cffe99d: chore:
|
|
25
|
+
remove react eslint rules for `modern-js` rule set.
|
|
26
|
+
add .eslintrc for each package to speed up linting
|
|
27
|
+
- 60f7d8bf: feat: add tests dir to npmignore
|
|
28
|
+
- Updated dependencies [6cffe99d]
|
|
29
|
+
- Updated dependencies [04ae5262]
|
|
30
|
+
- Updated dependencies [60f7d8bf]
|
|
31
|
+
- @modern-js/generator-common@1.4.9
|
|
32
|
+
|
|
3
33
|
## 1.2.3
|
|
4
34
|
|
|
5
35
|
### 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/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.2.
|
|
14
|
+
"version": "1.2.6",
|
|
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.12"
|
|
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/jest.config.js
DELETED
package/modern.config.js
DELETED