@modern-js/generator-cases 1.1.3 → 1.2.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
@@ -1,5 +1,35 @@
1
1
  # @modern-js/generator-cases
2
2
 
3
+ ## 1.2.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 6668a1bf: feat: package manager options support npm
8
+ - Updated dependencies [6668a1bf]
9
+ - Updated dependencies [6668a1bf]
10
+ - @modern-js/generator-common@1.4.3
11
+
12
+ ## 1.2.1
13
+
14
+ ### Patch Changes
15
+
16
+ - 83166714: change .npmignore
17
+ - Updated dependencies [83166714]
18
+ - @modern-js/generator-common@1.3.1
19
+
20
+ ## 1.2.0
21
+
22
+ ### Minor Changes
23
+
24
+ - cfe11628: Make Modern.js self bootstraping
25
+
26
+ ### Patch Changes
27
+
28
+ - 2c049918: feat: polyfill function support enable using new command
29
+ - Updated dependencies [2c049918]
30
+ - Updated dependencies [cfe11628]
31
+ - @modern-js/generator-common@1.3.0
32
+
3
33
  ## 1.1.3
4
34
 
5
35
  ### Patch Changes
@@ -33,7 +33,7 @@ export const ModuleValueMap = {
33
33
  enableSass: BooleanConfigValues
34
34
  };
35
35
  export const MonorepoValueMap = {
36
- packageManager: PackageManagerValues
36
+ packageManager: PackageManagerValues.filter(packageManager => packageManager !== 'npm')
37
37
  };
38
38
  export const getMWACases = length => {
39
39
  const cases = make(MWAValueMap, {
@@ -55,7 +55,7 @@ const ModuleValueMap = {
55
55
  };
56
56
  exports.ModuleValueMap = ModuleValueMap;
57
57
  const MonorepoValueMap = {
58
- packageManager: PackageManagerValues
58
+ packageManager: PackageManagerValues.filter(packageManager => packageManager !== 'npm')
59
59
  };
60
60
  exports.MonorepoValueMap = MonorepoValueMap;
61
61
 
@@ -45,7 +45,9 @@ export var ModuleValueMap = {
45
45
  enableSass: BooleanConfigValues
46
46
  };
47
47
  export var MonorepoValueMap = {
48
- packageManager: PackageManagerValues
48
+ packageManager: PackageManagerValues.filter(function (packageManager) {
49
+ return packageManager !== 'npm';
50
+ })
49
51
  };
50
52
  export var getMWACases = function getMWACases(length) {
51
53
  var cases = make(MWAValueMap, {
package/jest.config.js ADDED
@@ -0,0 +1,8 @@
1
+ const sharedConfig = require('@scripts/jest-config');
2
+
3
+ /** @type {import('@jest/types').Config.InitialOptions} */
4
+ module.exports = {
5
+ // eslint-disable-next-line node/no-unsupported-features/es-syntax
6
+ ...sharedConfig,
7
+ rootDir: __dirname,
8
+ };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.1.3",
14
+ "version": "1.2.2",
15
15
  "jsnext:source": "./src/index.ts",
16
16
  "types": "./dist/types/index.d.ts",
17
17
  "main": "./dist/js/node/index.js",
@@ -20,6 +20,7 @@
20
20
  "exports": {
21
21
  ".": {
22
22
  "node": {
23
+ "jsnext:source": "./src/index.ts",
23
24
  "import": "./dist/js/modern/index.js",
24
25
  "require": "./dist/js/node/index.js"
25
26
  },
@@ -30,14 +31,15 @@
30
31
  "@babel/runtime": "^7",
31
32
  "execa": "^5.1.1",
32
33
  "covertable": "^2.2.2",
33
- "@modern-js/generator-common": "^1.2.3"
34
+ "@modern-js/generator-common": "^1.4.3"
34
35
  },
35
36
  "devDependencies": {
36
37
  "@types/jest": "^26",
37
38
  "@types/node": "^14",
38
39
  "typescript": "^4",
39
- "@modern-js/module-tools": "^1.1.4",
40
- "@modern-js/plugin-testing": "^1.2.2"
40
+ "@scripts/build": "0.0.0",
41
+ "jest": "^27",
42
+ "@scripts/jest-config": "0.0.0"
41
43
  },
42
44
  "sideEffects": false,
43
45
  "publishConfig": {
@@ -47,7 +49,7 @@
47
49
  "scripts": {
48
50
  "new": "modern new",
49
51
  "build": "modern build",
50
- "test": "modern test --passWithNoTests"
52
+ "test": "jest --passWithNoTests"
51
53
  },
52
54
  "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"
53
55
  }