Compare commits

..

No commits in common. "966ca5db0b1525cadf842ed2ce75672658a68a73" and "f25fcc686cdd30f4821559e354473b312c0ca573" have entirely different histories.

10 changed files with 25 additions and 66 deletions

1
.gitignore vendored
View File

@ -61,7 +61,6 @@ _bmad-output
.claude
.codex
.github/chatmodes
.github/agents
.agent
.agentvibes/
.kiro/

View File

@ -1,4 +1,4 @@
![BMad Method](banner-bmad-method.png)
# BMad Method
[![Version](https://img.shields.io/npm/v/bmad-method?color=blue&label=version)](https://www.npmjs.com/package/bmad-method)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 366 KiB

View File

@ -13,15 +13,17 @@ By the end of this 30-minute tutorial, you'll have:
- Passing tests for an existing demo app feature
:::note[Prerequisites]
- Node.js installed (v20 or later)
- Node.js installed (v18 or later)
- 30 minutes of focused time
- We'll use TodoMVC (<https://todomvc.com/examples/react/>) as our demo app
- We'll use TodoMVC (<https://todomvc.com/examples/react/dist/>) as our demo app
:::
:::tip[Quick Path]
Load TEA (`*tea`) → scaffold framework (`*framework`) → create test plan (`*test-design`) → generate tests (`*automate`) → run with `npx playwright test`.
:::
## TEA Approaches Explained
Before we start, understand the three ways to use TEA:

View File

@ -2,7 +2,6 @@ const path = require('node:path');
const fs = require('fs-extra');
const yaml = require('yaml');
const chalk = require('chalk');
const ora = require('ora');
const { XmlHandler } = require('../../../lib/xml-handler');
const { getProjectRoot, getSourcePath, getModulePath } = require('../../../lib/project-root');
const { filterCustomizationData } = require('../../../lib/agent/compiler');
@ -415,48 +414,27 @@ class ModuleManager {
// Create cache directory if it doesn't exist
await fs.ensureDir(cacheDir);
// Track if we need to install dependencies
let needsDependencyInstall = false;
let wasNewClone = false;
// Check if already cloned
if (await fs.pathExists(moduleCacheDir)) {
// Try to update if it's a git repo
const updateSpinner = ora(`Updating ${moduleInfo.name} from remote repository...`).start();
try {
const currentRef = execSync('git rev-parse HEAD', { cwd: moduleCacheDir, stdio: 'pipe' }).toString().trim();
execSync('git fetch --depth 1', { cwd: moduleCacheDir, stdio: 'pipe' });
execSync('git checkout -f', { cwd: moduleCacheDir, stdio: 'pipe' });
execSync('git pull --ff-only', { cwd: moduleCacheDir, stdio: 'pipe' });
const newRef = execSync('git rev-parse HEAD', { cwd: moduleCacheDir, stdio: 'pipe' }).toString().trim();
if (currentRef === newRef) {
updateSpinner.succeed(`${moduleInfo.name} is already up to date`);
} else {
updateSpinner.succeed(`Updated ${moduleInfo.name} to latest version`);
// Force dependency install since we got new code
needsDependencyInstall = true;
}
} catch {
updateSpinner.warn(`Update failed, re-downloading ${moduleInfo.name}`);
// If update fails, remove and re-clone
await fs.remove(moduleCacheDir);
wasNewClone = true;
}
} else {
wasNewClone = true;
}
// Clone if not exists or was removed
if (wasNewClone) {
const cloneSpinner = ora(`Downloading ${moduleInfo.name} from remote repository...`).start();
if (!(await fs.pathExists(moduleCacheDir))) {
console.log(chalk.dim(` Cloning external module: ${moduleInfo.name}`));
try {
execSync(`git clone --depth 1 "${moduleInfo.url}" "${moduleCacheDir}"`, {
stdio: 'pipe',
});
cloneSpinner.succeed(`Downloaded ${moduleInfo.name}`);
} catch (error) {
cloneSpinner.fail(`Failed to download ${moduleInfo.name}`);
throw new Error(`Failed to clone external module '${moduleCode}': ${error.message}`);
}
}
@ -466,25 +444,11 @@ class ModuleManager {
const nodeModulesPath = path.join(moduleCacheDir, 'node_modules');
if (await fs.pathExists(packageJsonPath)) {
// Install if node_modules doesn't exist, or if package.json is newer (dependencies changed)
const nodeModulesMissing = !(await fs.pathExists(nodeModulesPath));
const needsInstall = !(await fs.pathExists(nodeModulesPath));
let packageJsonNewer = false;
// Force install if we updated or cloned new
if (needsDependencyInstall || wasNewClone || nodeModulesMissing) {
const installSpinner = ora(`Installing dependencies for ${moduleInfo.name}...`).start();
try {
execSync('npm install --production --no-audit --no-fund --prefer-offline --no-progress', {
cwd: moduleCacheDir,
stdio: 'pipe',
timeout: 120_000, // 2 minute timeout
});
installSpinner.succeed(`Installed dependencies for ${moduleInfo.name}`);
} catch (error) {
installSpinner.warn(`Failed to install dependencies for ${moduleInfo.name}`);
console.warn(chalk.yellow(` Warning: ${error.message}`));
}
} else {
if (!needsInstall) {
// Check if package.json is newer than node_modules
let packageJsonNewer = false;
try {
const packageStats = await fs.stat(packageJsonPath);
const nodeModulesStats = await fs.stat(nodeModulesPath);
@ -493,20 +457,18 @@ class ModuleManager {
// If stat fails, assume we need to install
packageJsonNewer = true;
}
}
if (packageJsonNewer) {
const installSpinner = ora(`Installing dependencies for ${moduleInfo.name}...`).start();
try {
execSync('npm install --production --no-audit --no-fund --prefer-offline --no-progress', {
cwd: moduleCacheDir,
stdio: 'pipe',
timeout: 120_000, // 2 minute timeout
});
installSpinner.succeed(`Installed dependencies for ${moduleInfo.name}`);
} catch (error) {
installSpinner.warn(`Failed to install dependencies for ${moduleInfo.name}`);
console.warn(chalk.yellow(` Warning: ${error.message}`));
}
if (needsInstall || packageJsonNewer) {
console.log(chalk.dim(` Installing dependencies for ${moduleInfo.name}...`));
try {
execSync('npm install --production --no-audit --no-fund --prefer-offline --no-progress', {
cwd: moduleCacheDir,
stdio: 'inherit',
timeout: 120_000, // 2 minute timeout
});
} catch (error) {
console.warn(chalk.yellow(` Warning: Failed to install dependencies for ${moduleInfo.name}: ${error.message}`));
}
}
}

View File

@ -38,10 +38,8 @@ export default defineConfig({
tagline: 'AI-driven agile development with specialized agents and workflows that scale from bug fixes to enterprise platforms.',
logo: {
light: './public/img/bmad-light.png',
dark: './public/img/bmad-dark.png',
alt: 'BMAD Method',
replacesTitle: true,
src: './public/img/logo.svg',
alt: 'BMAD Logo',
},
favicon: '/favicon.ico',

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

View File

@ -222,8 +222,6 @@ header.header .header.sl-flex {
.site-title {
font-weight: 700;
margin-left: 0;
padding-left: 0;
}
/* Logo sizing - constrain to reasonable size */
@ -472,14 +470,14 @@ footer {
/* Responsive padding on navbar row only - banner stays full-width */
@media (min-width: 50rem) {
header.header .header.sl-flex {
padding-left: 1rem;
padding-left: 2.5rem;
padding-right: 2.5rem;
}
}
@media (min-width: 72rem) {
header.header .header.sl-flex {
padding-left: 1rem;
padding-left: 3rem;
padding-right: 3rem;
}
}