gant-core 0.1.33 → 0.1.35
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/lib/cli/index.js +7 -4
- package/lib/cli/index.js.map +1 -1
- package/lib/index.js +2 -2
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/cli/index.js
CHANGED
|
@@ -6285,14 +6285,17 @@ const generateGant = (userConfig, cwd, vue) => {
|
|
|
6285
6285
|
//app复制到前置执行
|
|
6286
6286
|
let indexString = fs$6.readFileSync(path$5.resolve(__dirname, "./template/core.txt"), "utf-8");
|
|
6287
6287
|
const packagesPaths = [...values(userConfig.packages), cwd];
|
|
6288
|
+
const appPackages = [...keys$6(userConfig.packages), userConfig.name];
|
|
6288
6289
|
//复制public 并前置项目模块中的app文件
|
|
6289
6290
|
const APP_CONFIG_FILES = ["app.ts", "app.tsx", "app.js"];
|
|
6290
|
-
packagesPaths.map((packagePath) => {
|
|
6291
|
+
packagesPaths.map((packagePath, index) => {
|
|
6291
6292
|
copyFolder(path$5.resolve(packagePath, "public"), path$5.resolve(tempPath, "public"));
|
|
6292
6293
|
for (const fileName of APP_CONFIG_FILES) {
|
|
6293
6294
|
const appPath = path$5.resolve(packagePath, fileName);
|
|
6294
|
-
if (fs$6.existsSync(appPath))
|
|
6295
|
-
|
|
6295
|
+
if (fs$6.existsSync(appPath)) {
|
|
6296
|
+
const appName = appPackages[index];
|
|
6297
|
+
return (AppContent += `import '${appName}/${fileName}';\n`);
|
|
6298
|
+
}
|
|
6296
6299
|
}
|
|
6297
6300
|
return packagePath;
|
|
6298
6301
|
});
|
|
@@ -48734,7 +48737,7 @@ const createCwdConfig = (cwd, name, vue) => {
|
|
|
48734
48737
|
};
|
|
48735
48738
|
|
|
48736
48739
|
var name = "gant-core";
|
|
48737
|
-
var version = "0.1.
|
|
48740
|
+
var version = "0.1.35";
|
|
48738
48741
|
var description = "";
|
|
48739
48742
|
var main = "lib/index.js";
|
|
48740
48743
|
var bin = {
|