@modern-js/generator-utils 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 CHANGED
@@ -1,5 +1,37 @@
1
1
  # @modern-js/generator-utils
2
2
 
3
+ ## 1.2.6
4
+
5
+ ### Patch Changes
6
+
7
+ - a1198d509: feat: bump babel 7.18.0
8
+ - c7e38b4e6: feat: upgrade codesmith pkg version
9
+ - Updated dependencies [a1198d509]
10
+ - @modern-js/plugin-i18n@1.2.7
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
+ - Updated dependencies [6ae4a34ae]
19
+ - Updated dependencies [b80229c79]
20
+ - Updated dependencies [948cc4436]
21
+ - @modern-js/plugin-i18n@1.2.6
22
+ - @modern-js/utils@1.7.3
23
+
24
+ ## 1.2.4
25
+
26
+ ### Patch Changes
27
+
28
+ - 6b0bb5e3b: feat: bump codesmith version
29
+ - 69a728375: fix: remove exports.jsnext:source after publish
30
+ - Updated dependencies [cd7346b0d]
31
+ - Updated dependencies [69a728375]
32
+ - @modern-js/utils@1.7.2
33
+ - @modern-js/plugin-i18n@1.2.5
34
+
3
35
  ## 1.2.3
4
36
 
5
37
  ### Patch Changes
@@ -99,7 +99,7 @@ export function validatePackagePath(value, projectDir, options) {
99
99
  if (fs.existsSync(packageDir)) {
100
100
  return {
101
101
  success: false,
102
- error: i18n.t(localeKeys.pacakgePath.exit, {
102
+ error: i18n.t(localeKeys.packagePath.exit, {
103
103
  value
104
104
  })
105
105
  };
@@ -2,7 +2,7 @@ export const EN_LOCALE = {
2
2
  packageName: {
3
3
  exit: 'package name `{value}` is already exists'
4
4
  },
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: 'package path {value} is already exists'
7
7
  }
8
8
  };
@@ -2,7 +2,7 @@ export const ZH_LOCALE = {
2
2
  packageName: {
3
3
  exit: '项目名称 {value} 已存在'
4
4
  },
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: '目录 {value} 已存在'
7
7
  }
8
8
  };
@@ -197,7 +197,7 @@ function validatePackagePath(value, projectDir, options) {
197
197
  if (_utils.fs.existsSync(packageDir)) {
198
198
  return {
199
199
  success: false,
200
- error: _locale.i18n.t(_locale.localeKeys.pacakgePath.exit, {
200
+ error: _locale.i18n.t(_locale.localeKeys.packagePath.exit, {
201
201
  value
202
202
  })
203
203
  };
@@ -8,7 +8,7 @@ const EN_LOCALE = {
8
8
  packageName: {
9
9
  exit: 'package name `{value}` is already exists'
10
10
  },
11
- pacakgePath: {
11
+ packagePath: {
12
12
  exit: 'package path {value} is already exists'
13
13
  }
14
14
  };
@@ -8,7 +8,7 @@ const ZH_LOCALE = {
8
8
  packageName: {
9
9
  exit: '项目名称 {value} 已存在'
10
10
  },
11
- pacakgePath: {
11
+ packagePath: {
12
12
  exit: '目录 {value} 已存在'
13
13
  }
14
14
  };
@@ -2,7 +2,7 @@ export declare const EN_LOCALE: {
2
2
  packageName: {
3
3
  exit: string;
4
4
  };
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: string;
7
7
  };
8
8
  };
@@ -4,14 +4,14 @@ declare const localeKeys: {
4
4
  packageName: {
5
5
  exit: string;
6
6
  };
7
- pacakgePath: {
7
+ packagePath: {
8
8
  exit: string;
9
9
  };
10
10
  } | {
11
11
  packageName: {
12
12
  exit: string;
13
13
  };
14
- pacakgePath: {
14
+ packagePath: {
15
15
  exit: string;
16
16
  };
17
17
  };
@@ -2,7 +2,7 @@ export declare const ZH_LOCALE: {
2
2
  packageName: {
3
3
  exit: string;
4
4
  };
5
- pacakgePath: {
5
+ packagePath: {
6
6
  exit: string;
7
7
  };
8
8
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "modern",
12
12
  "modern.js"
13
13
  ],
14
- "version": "1.2.3",
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,13 +28,13 @@
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
- "@babel/runtime": "^7",
32
- "@modern-js/plugin-i18n": "^1.2.4",
33
- "@modern-js/utils": "^1.6.0"
31
+ "@babel/runtime": "^7.18.0",
32
+ "@modern-js/plugin-i18n": "^1.2.7",
33
+ "@modern-js/utils": "^1.7.3"
34
34
  },
35
35
  "devDependencies": {
36
- "@modern-js/codesmith": "^1.0.8",
37
- "@types/jest": "^26",
36
+ "@modern-js/codesmith": "^1.2.2",
37
+ "@types/jest": "^27",
38
38
  "@types/node": "^14",
39
39
  "typescript": "^4",
40
40
  "@scripts/build": "0.0.0",
@@ -51,10 +51,33 @@
51
51
  "registry": "https://registry.npmjs.org/",
52
52
  "access": "public"
53
53
  },
54
+ "wireit": {
55
+ "build": {
56
+ "command": "modern build",
57
+ "files": [
58
+ "src/**/*",
59
+ "tsconfig.json",
60
+ "package.json"
61
+ ],
62
+ "output": [
63
+ "dist/**/*"
64
+ ]
65
+ },
66
+ "test": {
67
+ "command": "jest --passWithNoTests",
68
+ "files": [
69
+ "src/**/*",
70
+ "tsconfig.json",
71
+ "package.json",
72
+ "tests/**/*"
73
+ ],
74
+ "output": []
75
+ }
76
+ },
54
77
  "scripts": {
55
78
  "new": "modern new",
56
- "build": "modern build",
57
- "test": "jest --passWithNoTests"
79
+ "build": "wireit",
80
+ "test": "wireit"
58
81
  },
59
82
  "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"
60
83
  }
package/.eslintrc.js DELETED
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- extends: ['@modern-js'],
4
- parserOptions: {
5
- tsconfigRootDir: __dirname,
6
- project: ['./tsconfig.json'],
7
- },
8
- };
package/jest.config.js DELETED
@@ -1,11 +0,0 @@
1
- const sharedConfig = require('@scripts/jest-config');
2
-
3
- /** @type {import('@jest/types').Config.InitialOptions} */
4
- module.exports = {
5
- ...sharedConfig,
6
- rootDir: __dirname,
7
- modulePathIgnorePatterns: [
8
- // TODO: 很容易超时导致失败,暂时先绕过
9
- 'tests/index.test.ts',
10
- ],
11
- };
package/modern.config.js DELETED
@@ -1,2 +0,0 @@
1
- /** @type {import('@modern-js/module-tools').UserConfig} */
2
- module.exports = {};
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "declaration": false,
5
- "jsx": "preserve",
6
- "baseUrl": "./",
7
- "paths": {}
8
- },
9
- "include": ["src"]
10
- }