@modern-js/new-action 1.3.6 → 1.3.9
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 +44 -0
- package/dist/js/modern/monorepo.js +2 -2
- package/dist/js/modern/utils/index.js +1 -1
- package/dist/js/node/monorepo.js +2 -2
- package/dist/js/node/utils/index.js +2 -2
- package/package.json +31 -10
- package/.eslintrc.js +0 -8
- package/jest.config.js +0 -7
- package/modern.config.js +0 -2
- package/tsconfig.json +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @modern-js/new-action
|
|
2
2
|
|
|
3
|
+
## 1.3.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d32f35134: chore: add modern/jest/eslint/ts config files to .npmignore
|
|
8
|
+
- Updated dependencies [d32f35134]
|
|
9
|
+
- Updated dependencies [6ae4a34ae]
|
|
10
|
+
- Updated dependencies [b80229c79]
|
|
11
|
+
- Updated dependencies [948cc4436]
|
|
12
|
+
- @modern-js/generator-common@1.4.11
|
|
13
|
+
- @modern-js/generator-utils@1.2.5
|
|
14
|
+
- @modern-js/utils@1.7.3
|
|
15
|
+
|
|
16
|
+
## 1.3.8
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- 6b0bb5e3b: feat: bump codesmith version
|
|
21
|
+
- 69a728375: fix: remove exports.jsnext:source after publish
|
|
22
|
+
- Updated dependencies [cd7346b0d]
|
|
23
|
+
- Updated dependencies [6b0bb5e3b]
|
|
24
|
+
- Updated dependencies [69a728375]
|
|
25
|
+
- @modern-js/utils@1.7.2
|
|
26
|
+
- @modern-js/generator-common@1.4.10
|
|
27
|
+
- @modern-js/generator-utils@1.2.4
|
|
28
|
+
|
|
29
|
+
## 1.3.7
|
|
30
|
+
|
|
31
|
+
### Patch Changes
|
|
32
|
+
|
|
33
|
+
- 592edabc: feat: prebundle url-join,mime-types,json5,fast-glob,globby,ora,inquirer
|
|
34
|
+
- Updated dependencies [2d155c4c]
|
|
35
|
+
- Updated dependencies [123e432d]
|
|
36
|
+
- Updated dependencies [e5a9b26d]
|
|
37
|
+
- Updated dependencies [0b26b93b]
|
|
38
|
+
- Updated dependencies [123e432d]
|
|
39
|
+
- Updated dependencies [f9f66ef9]
|
|
40
|
+
- Updated dependencies [592edabc]
|
|
41
|
+
- Updated dependencies [895fa0ff]
|
|
42
|
+
- Updated dependencies [3578913e]
|
|
43
|
+
- Updated dependencies [1c3beab3]
|
|
44
|
+
- @modern-js/utils@1.6.0
|
|
45
|
+
- @modern-js/generator-utils@1.2.3
|
|
46
|
+
|
|
3
47
|
## 1.3.6
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
|
@@ -3,7 +3,7 @@ import { CodeSmith } from '@modern-js/codesmith';
|
|
|
3
3
|
import { i18n } from '@modern-js/generator-common';
|
|
4
4
|
import { getPackageManager } from '@modern-js/generator-utils';
|
|
5
5
|
import { alreadyRepo } from "./utils";
|
|
6
|
-
const
|
|
6
|
+
const REPO_GENERATOR = '@modern-js/repo-generator';
|
|
7
7
|
export const MonorepoNewAction = async options => {
|
|
8
8
|
const {
|
|
9
9
|
locale = 'zh',
|
|
@@ -41,7 +41,7 @@ export const MonorepoNewAction = async options => {
|
|
|
41
41
|
distTag,
|
|
42
42
|
plugins
|
|
43
43
|
});
|
|
44
|
-
let generator =
|
|
44
|
+
let generator = REPO_GENERATOR;
|
|
45
45
|
|
|
46
46
|
if (process.env.CODESMITH_ENV === 'development') {
|
|
47
47
|
generator = require.resolve(generator);
|
package/dist/js/node/monorepo.js
CHANGED
|
@@ -15,7 +15,7 @@ var _generatorUtils = require("@modern-js/generator-utils");
|
|
|
15
15
|
|
|
16
16
|
var _utils = require("./utils");
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const REPO_GENERATOR = '@modern-js/repo-generator';
|
|
19
19
|
|
|
20
20
|
const MonorepoNewAction = async options => {
|
|
21
21
|
const {
|
|
@@ -55,7 +55,7 @@ const MonorepoNewAction = async options => {
|
|
|
55
55
|
distTag,
|
|
56
56
|
plugins
|
|
57
57
|
});
|
|
58
|
-
let generator =
|
|
58
|
+
let generator = REPO_GENERATOR;
|
|
59
59
|
|
|
60
60
|
if (process.env.CODESMITH_ENV === 'development') {
|
|
61
61
|
generator = require.resolve(generator);
|
|
@@ -9,7 +9,7 @@ exports.readJson = void 0;
|
|
|
9
9
|
|
|
10
10
|
var _path = _interopRequireDefault(require("path"));
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _utils = require("@modern-js/utils");
|
|
13
13
|
|
|
14
14
|
var _generatorUtils = require("@modern-js/generator-utils");
|
|
15
15
|
|
|
@@ -33,7 +33,7 @@ const readJson = jsonPath => {
|
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
try {
|
|
36
|
-
return
|
|
36
|
+
return _utils.json5.parse(jsonStr);
|
|
37
37
|
} catch (error) {
|
|
38
38
|
throw Error(`${jsonPath} is not a valid json, please check and try again.`);
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"modern",
|
|
12
12
|
"modern.js"
|
|
13
13
|
],
|
|
14
|
-
"version": "1.3.
|
|
14
|
+
"version": "1.3.9",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/index.js",
|
|
@@ -29,15 +29,14 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@babel/runtime": "^7",
|
|
32
|
-
"@modern-js/codesmith": "^1.0.
|
|
33
|
-
"@modern-js/codesmith-api-app": "^1.0.
|
|
34
|
-
"@modern-js/generator-common": "^1.4.
|
|
35
|
-
"@modern-js/generator-utils": "^1.2.
|
|
36
|
-
"@modern-js/utils": "^1.
|
|
37
|
-
"json5": "^2.2.0"
|
|
32
|
+
"@modern-js/codesmith": "^1.0.10",
|
|
33
|
+
"@modern-js/codesmith-api-app": "^1.0.10",
|
|
34
|
+
"@modern-js/generator-common": "^1.4.11",
|
|
35
|
+
"@modern-js/generator-utils": "^1.2.5",
|
|
36
|
+
"@modern-js/utils": "^1.7.3"
|
|
38
37
|
},
|
|
39
38
|
"devDependencies": {
|
|
40
|
-
"@types/jest": "^
|
|
39
|
+
"@types/jest": "^27",
|
|
41
40
|
"@types/node": "^14",
|
|
42
41
|
"typescript": "^4",
|
|
43
42
|
"@scripts/build": "0.0.0",
|
|
@@ -54,10 +53,32 @@
|
|
|
54
53
|
"registry": "https://registry.npmjs.org/",
|
|
55
54
|
"access": "public"
|
|
56
55
|
},
|
|
56
|
+
"wireit": {
|
|
57
|
+
"build": {
|
|
58
|
+
"command": "modern build",
|
|
59
|
+
"files": [
|
|
60
|
+
"src/**/*",
|
|
61
|
+
"tsconfig.json",
|
|
62
|
+
"package.json"
|
|
63
|
+
],
|
|
64
|
+
"output": [
|
|
65
|
+
"dist/**/*"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"test": {
|
|
69
|
+
"command": "jest --passWithNoTests",
|
|
70
|
+
"files": [
|
|
71
|
+
"src/**/*",
|
|
72
|
+
"tsconfig.json",
|
|
73
|
+
"package.json"
|
|
74
|
+
],
|
|
75
|
+
"output": []
|
|
76
|
+
}
|
|
77
|
+
},
|
|
57
78
|
"scripts": {
|
|
58
79
|
"new": "modern new",
|
|
59
|
-
"build": "
|
|
60
|
-
"test": "
|
|
80
|
+
"build": "wireit",
|
|
81
|
+
"test": "wireit"
|
|
61
82
|
},
|
|
62
83
|
"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"
|
|
63
84
|
}
|
package/.eslintrc.js
DELETED
package/jest.config.js
DELETED
package/modern.config.js
DELETED
package/tsconfig.json
DELETED