@modern-js/create 1.2.0 → 1.2.1
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/dist/js/node/main.js +15 -11
- package/package.json +18 -18
package/dist/js/node/main.js
CHANGED
|
@@ -218045,8 +218045,8 @@ var _utils = __webpack_require__(70302);
|
|
|
218045
218045
|
|
|
218046
218046
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
218047
218047
|
|
|
218048
|
-
const REPO_GENERAROE = '@modern-js/repo-generator';
|
|
218049
|
-
|
|
218048
|
+
const REPO_GENERAROE = '@modern-js/repo-generator'; // const GENERATOR_PLUGIN = '@modern-js/generator-plugin-plugin';
|
|
218049
|
+
// eslint-disable-next-line max-statements
|
|
218050
218050
|
|
|
218051
218051
|
function getDefaultConfing(projectDir = _path.default.basename(process.cwd()), options, logger) {
|
|
218052
218052
|
const {
|
|
@@ -218103,17 +218103,21 @@ function getDefaultConfing(projectDir = _path.default.basename(process.cwd()), o
|
|
|
218103
218103
|
|
|
218104
218104
|
if (plugin) {
|
|
218105
218105
|
initialConfig.plugins = plugin;
|
|
218106
|
-
}
|
|
218107
|
-
|
|
218108
|
-
|
|
218106
|
+
} // let generatorPlugin = GENERATOR_PLUGIN;
|
|
218107
|
+
// if (process.env.CODESMITH_ENV === 'development') {
|
|
218108
|
+
// generatorPlugin = path.join(
|
|
218109
|
+
// require.resolve(GENERATOR_PLUGIN),
|
|
218110
|
+
// '../../../../',
|
|
218111
|
+
// );
|
|
218112
|
+
// } else if (distTag) {
|
|
218113
|
+
// generatorPlugin = `${GENERATOR_PLUGIN}@${distTag}`;
|
|
218114
|
+
// }
|
|
218115
|
+
// initialConfig.plugins = [
|
|
218116
|
+
// ...((initialConfig.plugins as string[]) || []),
|
|
218117
|
+
// generatorPlugin,
|
|
218118
|
+
// ];
|
|
218109
218119
|
|
|
218110
|
-
if (process.env.CODESMITH_ENV === 'development') {
|
|
218111
|
-
generatorPlugin = _path.default.join(/*require.resolve*/(__webpack_require__(10063).resolve(GENERATOR_PLUGIN)), '../../../../');
|
|
218112
|
-
} else if (distTag) {
|
|
218113
|
-
generatorPlugin = `${GENERATOR_PLUGIN}@${distTag}`;
|
|
218114
|
-
}
|
|
218115
218120
|
|
|
218116
|
-
initialConfig.plugins = [...(initialConfig.plugins || []), generatorPlugin];
|
|
218117
218121
|
return initialConfig;
|
|
218118
218122
|
}
|
|
218119
218123
|
|
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.1",
|
|
15
15
|
"jsnext:source": "./src/index.ts",
|
|
16
16
|
"types": "./dist/types/index.d.ts",
|
|
17
17
|
"main": "./dist/js/node/main.js",
|
|
@@ -33,17 +33,24 @@
|
|
|
33
33
|
"default": "./dist/js/treeshaking/index.js"
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
+
"scripts": {
|
|
37
|
+
"prepare": "pnpm build && pnpm build:csmith",
|
|
38
|
+
"new": "modern new",
|
|
39
|
+
"build": "modern build",
|
|
40
|
+
"build:csmith": "csmith-tools build",
|
|
41
|
+
"test": "modern test --passWithNoTests"
|
|
42
|
+
},
|
|
36
43
|
"devDependencies": {
|
|
37
44
|
"@babel/runtime": "^7",
|
|
38
45
|
"@modern-js/codesmith": "^1.0.7",
|
|
39
|
-
"@modern-js/codesmith-tools": "^1.0.
|
|
40
|
-
"@modern-js/module-tools": "^1.1.
|
|
41
|
-
"@modern-js/plugin-testing": "^1.
|
|
42
|
-
"@modern-js/i18n-cli-language-detector": "
|
|
43
|
-
"@modern-js/generator-plugin-plugin": "
|
|
44
|
-
"@modern-js/plugin-i18n": "
|
|
45
|
-
"@modern-js/repo-generator": "
|
|
46
|
-
"@modern-js/utils": "
|
|
46
|
+
"@modern-js/codesmith-tools": "^1.0.8",
|
|
47
|
+
"@modern-js/module-tools": "^1.1.3",
|
|
48
|
+
"@modern-js/plugin-testing": "^1.2.0",
|
|
49
|
+
"@modern-js/i18n-cli-language-detector": "workspace:^1.1.1",
|
|
50
|
+
"@modern-js/generator-plugin-plugin": "workspace:^1.0.0",
|
|
51
|
+
"@modern-js/plugin-i18n": "workspace:^1.1.1",
|
|
52
|
+
"@modern-js/repo-generator": "workspace:^1.2.0",
|
|
53
|
+
"@modern-js/utils": "workspace:^1.1.5",
|
|
47
54
|
"@types/jest": "^26",
|
|
48
55
|
"@types/node": "^14",
|
|
49
56
|
"@types/react": "^17",
|
|
@@ -62,12 +69,5 @@
|
|
|
62
69
|
"publishConfig": {
|
|
63
70
|
"registry": "https://registry.npmjs.org/",
|
|
64
71
|
"access": "public"
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
"new": "modern new",
|
|
68
|
-
"build": "modern build",
|
|
69
|
-
"build:csmith": "csmith-tools build",
|
|
70
|
-
"test": "modern test --passWithNoTests"
|
|
71
|
-
},
|
|
72
|
-
"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"
|
|
73
|
-
}
|
|
72
|
+
}
|
|
73
|
+
}
|