@modern-js/generator-cases 2.3.1 → 2.3.4-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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @modern-js/generator-cases
2
2
 
3
+ ## 2.3.4-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @modern-js/generator-common@2.3.4-alpha.0
8
+
9
+ ## 2.3.3
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies [4f77eb4]
14
+ - @modern-js/generator-common@2.3.3
15
+
3
16
  ## 2.3.1
4
17
 
5
18
  ### Patch Changes
@@ -18,17 +18,11 @@ export const MWAValueMap = {
18
18
  packageManager: PackageManagerValues,
19
19
  runWay: RunWayValues,
20
20
  needModifyMWAConfig: BooleanConfigValues,
21
- clientRoute: ClientRouteValues,
22
- disableStateManagement: BooleanConfigValues,
23
- enableLess: BooleanConfigValues,
24
- enableSass: BooleanConfigValues
21
+ clientRoute: ClientRouteValues
25
22
  };
26
23
  export const ModuleValueMap = {
27
24
  language: LanguageValues,
28
- packageManager: PackageManagerValues,
29
- needModifyModuleConfig: BooleanConfigValues,
30
- enableLess: BooleanConfigValues,
31
- enableSass: BooleanConfigValues
25
+ packageManager: PackageManagerValues
32
26
  };
33
27
  export const MonorepoValueMap = {
34
28
  packageManager: PackageManagerValues.filter(packageManager => packageManager !== 'npm')
@@ -37,7 +31,7 @@ export const getMWACases = length => {
37
31
  const cases = make(MWAValueMap, {
38
32
  length: length || Object.keys(MWAValueMap).length,
39
33
  postFilter: row => {
40
- if (row.needModifyMWAConfig === BooleanConfig.NO && (row.disableStateManagement !== BooleanConfig.NO || row.clientRoute !== ClientRoute.SelfControlRoute || row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
34
+ if (row.needModifyMWAConfig === BooleanConfig.NO && row.clientRoute !== ClientRoute.SelfControlRoute) {
41
35
  return false;
42
36
  }
43
37
 
@@ -50,14 +44,7 @@ export const getMWACases = length => {
50
44
  };
51
45
  export const getModuleCases = length => {
52
46
  const cases = make(ModuleValueMap, {
53
- length: length || Object.keys(ModuleValueMap).length,
54
- postFilter: row => {
55
- if (row.needModifyModuleConfig === BooleanConfig.NO && (row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
56
- return false;
57
- }
58
-
59
- return true;
60
- }
47
+ length: length || Object.keys(ModuleValueMap).length
61
48
  });
62
49
  return cases.map(item => _objectSpread(_objectSpread({}, item), {}, {
63
50
  solution: Solution.Module
@@ -73,8 +60,7 @@ export const getMonorepoCases = () => {
73
60
  };
74
61
  export const MWAEntryValueMap = {
75
62
  needModifyMWAConfig: BooleanConfigValues,
76
- clientRoute: ClientRouteValues,
77
- disableStateManagement: BooleanConfigValues
63
+ clientRoute: ClientRouteValues
78
64
  };
79
65
 
80
66
  const getMWAEntryCases = length => {
@@ -156,23 +142,17 @@ export const MWASubProjectValueMap = {
156
142
  language: LanguageValues,
157
143
  needModifyMWAConfig: BooleanConfigValues,
158
144
  runWay: RunWayValues,
159
- clientRoute: ClientRouteValues,
160
- disableStateManagement: BooleanConfigValues,
161
- enableLess: BooleanConfigValues,
162
- enableSass: BooleanConfigValues
145
+ clientRoute: ClientRouteValues
163
146
  };
164
147
  export const ModuleSubProjectValueMap = {
165
- language: LanguageValues,
166
- needModifyModuleConfig: BooleanConfigValues,
167
- enableLess: BooleanConfigValues,
168
- enableSass: BooleanConfigValues
148
+ language: LanguageValues
169
149
  };
170
150
 
171
151
  const getMWASubProjectCases = (isTest, length) => {
172
152
  const cases = make(MWASubProjectValueMap, {
173
153
  length: length || Object.keys(MWASubProjectValueMap).length,
174
154
  postFilter: row => {
175
- if (row.needModifyMWAConfig === BooleanConfig.NO && (row.disableStateManagement !== BooleanConfig.NO || row.clientRoute !== ClientRoute.SelfControlRoute || row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
155
+ if (row.needModifyMWAConfig === BooleanConfig.NO && row.clientRoute !== ClientRoute.SelfControlRoute) {
176
156
  return false;
177
157
  }
178
158
 
@@ -188,14 +168,7 @@ const getMWASubProjectCases = (isTest, length) => {
188
168
 
189
169
  const getModuleSubProjectCases = (isInner, length) => {
190
170
  const cases = make(ModuleSubProjectValueMap, {
191
- length: length || Object.keys(ModuleSubProjectValueMap).length,
192
- postFilter: row => {
193
- if (row.needModifyModuleConfig === BooleanConfig.NO && (row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
194
- return false;
195
- }
196
-
197
- return true;
198
- }
171
+ length: length || Object.keys(ModuleSubProjectValueMap).length
199
172
  });
200
173
  return cases.map(item => _objectSpread(_objectSpread({}, item), {}, {
201
174
  packageName: Object.values(item).join('-'),
@@ -36,18 +36,12 @@ const MWAValueMap = {
36
36
  packageManager: PackageManagerValues,
37
37
  runWay: RunWayValues,
38
38
  needModifyMWAConfig: BooleanConfigValues,
39
- clientRoute: ClientRouteValues,
40
- disableStateManagement: BooleanConfigValues,
41
- enableLess: BooleanConfigValues,
42
- enableSass: BooleanConfigValues
39
+ clientRoute: ClientRouteValues
43
40
  };
44
41
  exports.MWAValueMap = MWAValueMap;
45
42
  const ModuleValueMap = {
46
43
  language: LanguageValues,
47
- packageManager: PackageManagerValues,
48
- needModifyModuleConfig: BooleanConfigValues,
49
- enableLess: BooleanConfigValues,
50
- enableSass: BooleanConfigValues
44
+ packageManager: PackageManagerValues
51
45
  };
52
46
  exports.ModuleValueMap = ModuleValueMap;
53
47
  const MonorepoValueMap = {
@@ -59,7 +53,7 @@ const getMWACases = length => {
59
53
  const cases = (0, _covertable.default)(MWAValueMap, {
60
54
  length: length || Object.keys(MWAValueMap).length,
61
55
  postFilter: row => {
62
- if (row.needModifyMWAConfig === _generatorCommon.BooleanConfig.NO && (row.disableStateManagement !== _generatorCommon.BooleanConfig.NO || row.clientRoute !== _generatorCommon.ClientRoute.SelfControlRoute || row.enableLess !== _generatorCommon.BooleanConfig.NO || row.enableSass !== _generatorCommon.BooleanConfig.NO)) {
56
+ if (row.needModifyMWAConfig === _generatorCommon.BooleanConfig.NO && row.clientRoute !== _generatorCommon.ClientRoute.SelfControlRoute) {
63
57
  return false;
64
58
  }
65
59
 
@@ -75,14 +69,7 @@ exports.getMWACases = getMWACases;
75
69
 
76
70
  const getModuleCases = length => {
77
71
  const cases = (0, _covertable.default)(ModuleValueMap, {
78
- length: length || Object.keys(ModuleValueMap).length,
79
- postFilter: row => {
80
- if (row.needModifyModuleConfig === _generatorCommon.BooleanConfig.NO && (row.enableLess !== _generatorCommon.BooleanConfig.NO || row.enableSass !== _generatorCommon.BooleanConfig.NO)) {
81
- return false;
82
- }
83
-
84
- return true;
85
- }
72
+ length: length || Object.keys(ModuleValueMap).length
86
73
  });
87
74
  return cases.map(item => _objectSpread(_objectSpread({}, item), {}, {
88
75
  solution: _generatorCommon.Solution.Module
@@ -103,8 +90,7 @@ const getMonorepoCases = () => {
103
90
  exports.getMonorepoCases = getMonorepoCases;
104
91
  const MWAEntryValueMap = {
105
92
  needModifyMWAConfig: BooleanConfigValues,
106
- clientRoute: ClientRouteValues,
107
- disableStateManagement: BooleanConfigValues
93
+ clientRoute: ClientRouteValues
108
94
  };
109
95
  exports.MWAEntryValueMap = MWAEntryValueMap;
110
96
 
@@ -200,17 +186,11 @@ const MWASubProjectValueMap = {
200
186
  language: LanguageValues,
201
187
  needModifyMWAConfig: BooleanConfigValues,
202
188
  runWay: RunWayValues,
203
- clientRoute: ClientRouteValues,
204
- disableStateManagement: BooleanConfigValues,
205
- enableLess: BooleanConfigValues,
206
- enableSass: BooleanConfigValues
189
+ clientRoute: ClientRouteValues
207
190
  };
208
191
  exports.MWASubProjectValueMap = MWASubProjectValueMap;
209
192
  const ModuleSubProjectValueMap = {
210
- language: LanguageValues,
211
- needModifyModuleConfig: BooleanConfigValues,
212
- enableLess: BooleanConfigValues,
213
- enableSass: BooleanConfigValues
193
+ language: LanguageValues
214
194
  };
215
195
  exports.ModuleSubProjectValueMap = ModuleSubProjectValueMap;
216
196
 
@@ -218,7 +198,7 @@ const getMWASubProjectCases = (isTest, length) => {
218
198
  const cases = (0, _covertable.default)(MWASubProjectValueMap, {
219
199
  length: length || Object.keys(MWASubProjectValueMap).length,
220
200
  postFilter: row => {
221
- if (row.needModifyMWAConfig === _generatorCommon.BooleanConfig.NO && (row.disableStateManagement !== _generatorCommon.BooleanConfig.NO || row.clientRoute !== _generatorCommon.ClientRoute.SelfControlRoute || row.enableLess !== _generatorCommon.BooleanConfig.NO || row.enableSass !== _generatorCommon.BooleanConfig.NO)) {
201
+ if (row.needModifyMWAConfig === _generatorCommon.BooleanConfig.NO && row.clientRoute !== _generatorCommon.ClientRoute.SelfControlRoute) {
222
202
  return false;
223
203
  }
224
204
 
@@ -234,14 +214,7 @@ const getMWASubProjectCases = (isTest, length) => {
234
214
 
235
215
  const getModuleSubProjectCases = (isInner, length) => {
236
216
  const cases = (0, _covertable.default)(ModuleSubProjectValueMap, {
237
- length: length || Object.keys(ModuleSubProjectValueMap).length,
238
- postFilter: row => {
239
- if (row.needModifyModuleConfig === _generatorCommon.BooleanConfig.NO && (row.enableLess !== _generatorCommon.BooleanConfig.NO || row.enableSass !== _generatorCommon.BooleanConfig.NO)) {
240
- return false;
241
- }
242
-
243
- return true;
244
- }
217
+ length: length || Object.keys(ModuleSubProjectValueMap).length
245
218
  });
246
219
  return cases.map(item => _objectSpread(_objectSpread({}, item), {}, {
247
220
  packageName: Object.values(item).join('-'),
@@ -15,17 +15,11 @@ export var MWAValueMap = {
15
15
  packageManager: PackageManagerValues,
16
16
  runWay: RunWayValues,
17
17
  needModifyMWAConfig: BooleanConfigValues,
18
- clientRoute: ClientRouteValues,
19
- disableStateManagement: BooleanConfigValues,
20
- enableLess: BooleanConfigValues,
21
- enableSass: BooleanConfigValues
18
+ clientRoute: ClientRouteValues
22
19
  };
23
20
  export var ModuleValueMap = {
24
21
  language: LanguageValues,
25
- packageManager: PackageManagerValues,
26
- needModifyModuleConfig: BooleanConfigValues,
27
- enableLess: BooleanConfigValues,
28
- enableSass: BooleanConfigValues
22
+ packageManager: PackageManagerValues
29
23
  };
30
24
  export var MonorepoValueMap = {
31
25
  packageManager: PackageManagerValues.filter(function (packageManager) {
@@ -36,7 +30,7 @@ export var getMWACases = function getMWACases(length) {
36
30
  var cases = make(MWAValueMap, {
37
31
  length: length || Object.keys(MWAValueMap).length,
38
32
  postFilter: function postFilter(row) {
39
- if (row.needModifyMWAConfig === BooleanConfig.NO && (row.disableStateManagement !== BooleanConfig.NO || row.clientRoute !== ClientRoute.SelfControlRoute || row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
33
+ if (row.needModifyMWAConfig === BooleanConfig.NO && row.clientRoute !== ClientRoute.SelfControlRoute) {
40
34
  return false;
41
35
  }
42
36
 
@@ -51,14 +45,7 @@ export var getMWACases = function getMWACases(length) {
51
45
  };
52
46
  export var getModuleCases = function getModuleCases(length) {
53
47
  var cases = make(ModuleValueMap, {
54
- length: length || Object.keys(ModuleValueMap).length,
55
- postFilter: function postFilter(row) {
56
- if (row.needModifyModuleConfig === BooleanConfig.NO && (row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
57
- return false;
58
- }
59
-
60
- return true;
61
- }
48
+ length: length || Object.keys(ModuleValueMap).length
62
49
  });
63
50
  return cases.map(function (item) {
64
51
  return _objectSpread(_objectSpread({}, item), {}, {
@@ -78,8 +65,7 @@ export var getMonorepoCases = function getMonorepoCases() {
78
65
  };
79
66
  export var MWAEntryValueMap = {
80
67
  needModifyMWAConfig: BooleanConfigValues,
81
- clientRoute: ClientRouteValues,
82
- disableStateManagement: BooleanConfigValues
68
+ clientRoute: ClientRouteValues
83
69
  };
84
70
 
85
71
  var getMWAEntryCases = function getMWAEntryCases(length) {
@@ -163,23 +149,17 @@ export var MWASubProjectValueMap = {
163
149
  language: LanguageValues,
164
150
  needModifyMWAConfig: BooleanConfigValues,
165
151
  runWay: RunWayValues,
166
- clientRoute: ClientRouteValues,
167
- disableStateManagement: BooleanConfigValues,
168
- enableLess: BooleanConfigValues,
169
- enableSass: BooleanConfigValues
152
+ clientRoute: ClientRouteValues
170
153
  };
171
154
  export var ModuleSubProjectValueMap = {
172
- language: LanguageValues,
173
- needModifyModuleConfig: BooleanConfigValues,
174
- enableLess: BooleanConfigValues,
175
- enableSass: BooleanConfigValues
155
+ language: LanguageValues
176
156
  };
177
157
 
178
158
  var getMWASubProjectCases = function getMWASubProjectCases(isTest, length) {
179
159
  var cases = make(MWASubProjectValueMap, {
180
160
  length: length || Object.keys(MWASubProjectValueMap).length,
181
161
  postFilter: function postFilter(row) {
182
- if (row.needModifyMWAConfig === BooleanConfig.NO && (row.disableStateManagement !== BooleanConfig.NO || row.clientRoute !== ClientRoute.SelfControlRoute || row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
162
+ if (row.needModifyMWAConfig === BooleanConfig.NO && row.clientRoute !== ClientRoute.SelfControlRoute) {
183
163
  return false;
184
164
  }
185
165
 
@@ -197,14 +177,7 @@ var getMWASubProjectCases = function getMWASubProjectCases(isTest, length) {
197
177
 
198
178
  var getModuleSubProjectCases = function getModuleSubProjectCases(isInner, length) {
199
179
  var cases = make(ModuleSubProjectValueMap, {
200
- length: length || Object.keys(ModuleSubProjectValueMap).length,
201
- postFilter: function postFilter(row) {
202
- if (row.needModifyModuleConfig === BooleanConfig.NO && (row.enableLess !== BooleanConfig.NO || row.enableSass !== BooleanConfig.NO)) {
203
- return false;
204
- }
205
-
206
- return true;
207
- }
180
+ length: length || Object.keys(ModuleSubProjectValueMap).length
208
181
  });
209
182
  return cases.map(function (item) {
210
183
  return _objectSpread(_objectSpread({}, item), {}, {
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "2.3.1",
14
+ "version": "2.3.4-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",
@@ -30,15 +30,15 @@
30
30
  "dependencies": {
31
31
  "@babel/runtime": "^7.18.0",
32
32
  "covertable": "^2.2.2",
33
- "@modern-js/generator-common": "2.3.1"
33
+ "@modern-js/generator-common": "2.3.4-alpha.0"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/jest": "^27",
37
37
  "@types/node": "^14",
38
38
  "typescript": "^4",
39
- "@scripts/build": "1.17.0",
39
+ "@scripts/build": "1.18.1-alpha.0",
40
40
  "jest": "^27",
41
- "@scripts/jest-config": "1.17.0"
41
+ "@scripts/jest-config": "1.18.1-alpha.0"
42
42
  },
43
43
  "sideEffects": false,
44
44
  "publishConfig": {