fix: readme updated to indicate move of web-bundles
This commit is contained in:
@@ -6,8 +6,7 @@ class WebBuilder {
|
||||
constructor(options = {}) {
|
||||
this.rootDir = options.rootDir || process.cwd();
|
||||
this.outputDirs = options.outputDirs || [
|
||||
path.join(this.rootDir, 'dist'),
|
||||
path.join(this.rootDir, 'bmad-core', 'web-bundles')
|
||||
path.join(this.rootDir, 'dist')
|
||||
];
|
||||
this.resolver = new DependencyResolver(this.rootDir);
|
||||
this.templatePath = path.join(this.rootDir, 'bmad-core', 'templates', 'web-agent-startup-instructions-template.md');
|
||||
@@ -152,7 +151,6 @@ class WebBuilder {
|
||||
async buildExpansionPack(packName, options = {}) {
|
||||
const packDir = path.join(this.rootDir, 'expansion-packs', packName);
|
||||
const outputDirs = [
|
||||
path.join(packDir, 'web-bundles'),
|
||||
path.join(this.rootDir, 'dist', 'expansion-packs', packName)
|
||||
];
|
||||
|
||||
|
||||
@@ -583,10 +583,10 @@ class Installer {
|
||||
|
||||
// Information about web bundles
|
||||
console.log(chalk.bold("\n📦 Web Bundles Available:"));
|
||||
console.log("Self-contained web bundles have been included in your installation:");
|
||||
console.log(chalk.cyan(` ${installDir}/.bmad-core/web-bundles/`));
|
||||
console.log("These bundles work independently without this installation and can be");
|
||||
console.log("shared, moved, or used in other projects as standalone files.");
|
||||
console.log("Pre-built web bundles are available in the project distribution:");
|
||||
console.log(chalk.cyan(` ${path.join(path.dirname(installDir), 'dist')}/`));
|
||||
console.log("These bundles work independently and can be shared, moved, or used");
|
||||
console.log("in other projects as standalone files.");
|
||||
|
||||
if (config.installType === "single-agent") {
|
||||
console.log(
|
||||
@@ -786,23 +786,7 @@ class Installer {
|
||||
}
|
||||
}
|
||||
|
||||
// Also copy web-bundles if they exist (to a different location)
|
||||
const webBundlesSource = path.join(expansionPackDir, 'web-bundles');
|
||||
if (await fileManager.pathExists(webBundlesSource)) {
|
||||
const files = glob.sync('**/*', {
|
||||
cwd: webBundlesSource,
|
||||
nodir: true
|
||||
});
|
||||
|
||||
for (const file of files) {
|
||||
const sourcePath = path.join(webBundlesSource, file);
|
||||
const destPath = path.join(installDir, '.bmad-core', 'web-bundles', 'expansion-packs', packId, file);
|
||||
|
||||
if (await fileManager.copyFile(sourcePath, destPath)) {
|
||||
installedFiles.push(path.join('.bmad-core', 'web-bundles', 'expansion-packs', packId, file));
|
||||
}
|
||||
}
|
||||
}
|
||||
// Web bundles are now available in the dist/ directory and don't need to be copied
|
||||
|
||||
console.log(chalk.green(`✓ Installed expansion pack: ${pack.name}`));
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user