@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 +32 -0
- package/dist/js/modern/index.js +1 -1
- package/dist/js/modern/locale/en.js +1 -1
- package/dist/js/modern/locale/zh.js +1 -1
- package/dist/js/node/index.js +1 -1
- package/dist/js/node/locale/en.js +1 -1
- package/dist/js/node/locale/zh.js +1 -1
- package/dist/types/locale/en.d.ts +1 -1
- package/dist/types/locale/index.d.ts +2 -2
- package/dist/types/locale/zh.d.ts +1 -1
- package/package.json +31 -8
- package/.eslintrc.js +0 -8
- package/jest.config.js +0 -11
- package/modern.config.js +0 -2
- package/tsconfig.json +0 -10
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
|
package/dist/js/modern/index.js
CHANGED
|
@@ -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.
|
|
102
|
+
error: i18n.t(localeKeys.packagePath.exit, {
|
|
103
103
|
value
|
|
104
104
|
})
|
|
105
105
|
};
|
package/dist/js/node/index.js
CHANGED
|
@@ -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.
|
|
200
|
+
error: _locale.i18n.t(_locale.localeKeys.packagePath.exit, {
|
|
201
201
|
value
|
|
202
202
|
})
|
|
203
203
|
};
|
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,13 +28,13 @@
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@babel/runtime": "^7",
|
|
32
|
-
"@modern-js/plugin-i18n": "^1.2.
|
|
33
|
-
"@modern-js/utils": "^1.
|
|
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.
|
|
37
|
-
"@types/jest": "^
|
|
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": "
|
|
57
|
-
"test": "
|
|
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
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