{"_id":"@architectural-discipline/installer","name":"@architectural-discipline/installer","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@architectural-discipline/installer","version":"1.0.0","description":"Installer for adding ADP to any project","type":"module","main":"dist/index.js","types":"dist/index.d.ts","bin":{"adp-install":"dist/install.js","create-adp":"dist/install.js"},"scripts":{"build":"tsc","dev":"tsc --watch","test":"vitest","prepublishOnly":"npm run build"},"dependencies":{"commander":"^11.1.0","chalk":"^5.3.0","fs-extra":"^11.2.0","node-fetch":"^3.3.2","tar":"^6.2.0","ora":"^7.0.1","prompts":"^2.4.2"},"devDependencies":{"@types/node":"^20.10.0","@types/fs-extra":"^11.0.4","@types/prompts":"^2.4.9","@types/tar":"^6.1.11","typescript":"^5.3.0","vitest":"^1.0.0"},"keywords":["installer","architecture","discipline","setup","cli","adp"],"author":{"name":"Architectural Discipline Team"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/architectural-discipline/monorepo.git","directory":"packages/installer"},"bugs":{"url":"https://github.com/architectural-discipline/monorepo/issues"},"homepage":"https://github.com/architectural-discipline/monorepo#readme","publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"_id":"@architectural-discipline/installer@1.0.0","gitHead":"a072727a6f8b550583104f59fdde44bdaa6bf0e3","_nodeVersion":"20.19.5","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Cq6MeffXqIMtn9R21nzspTPMdQ29tGValTJN+73yI34OT6V0KxrruwR26WxKOf2gOCE2p93Ds8TEJsht8smROQ==","shasum":"f8d41e7dccbe0764748925f597a9f72fe22b00e9","tarball":"https://registry.npmjs.org/@architectural-discipline/installer/-/installer-1.0.0.tgz","fileCount":26,"unpackedSize":56469,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHJaxReGZbYtxg9CuraHN4dTXGmAprEKxGHP5rBVz4PDAiEArzFYSp8qVfQMm6CrlyKhg1sZ9A/waBQ408i+LxcwauE="}]},"_npmUser":{"name":"kayodebristol","email":"kayode.bristol@gmail.com"},"directories":{},"maintainers":[{"name":"kayodebristol","email":"kayode.bristol@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/installer_1.0.0_1763142699113_0.7146513948595921"},"_hasShrinkwrap":false}},"time":{"created":"2025-11-14T17:51:39.012Z","1.0.0":"2025-11-14T17:51:39.327Z","modified":"2025-11-14T17:51:39.650Z"},"maintainers":[{"name":"kayodebristol","email":"kayode.bristol@gmail.com"}],"description":"Installer for adding ADP to any project","homepage":"https://github.com/architectural-discipline/monorepo#readme","keywords":["installer","architecture","discipline","setup","cli","adp"],"repository":{"type":"git","url":"git+https://github.com/architectural-discipline/monorepo.git","directory":"packages/installer"},"author":{"name":"Architectural Discipline Team"},"bugs":{"url":"https://github.com/architectural-discipline/monorepo/issues"},"license":"MIT","readme":"# ADP Installer\n\nUniversal installer for adding Architectural Discipline Package (ADP) to any project type.\n\n## 🚀 Quick Start\n\n### Online Installation (Recommended)\n\nUsing npx (no installation required):\n\n```bash\n# In your project directory\nnpx @architectural-discipline/installer install\n```\n\nOr using npm create:\n\n```bash\nnpm create adp@latest\n```\n\n### Offline Installation (Air-Gapped Environments)\n\n1. Download the offline bundle (on a connected machine):\n\n```bash\nnpx @architectural-discipline/installer download-offline\n```\n\n2. Copy the `adp-offline` folder to your air-gapped system\n\n3. Run the offline installer:\n\n```bash\ncd adp-offline\nnode install-offline.js\n```\n\nOr use the installer:\n\n```bash\nnpx @architectural-discipline/installer install --offline\n```\n\n## 📦 Supported Project Types\n\nThe installer automatically detects and supports:\n\n- **Node.js / TypeScript** - Adds to package.json, creates ESLint config\n- **Deno** - Configures deno.json tasks\n- **PowerShell** - Creates PowerShell module wrappers\n- **C#** - Adds analysis scripts for .NET projects\n- **Rust** - Configures Cargo.toml aliases\n- **Python** - Creates analysis scripts\n- **Go** - Creates analysis scripts\n\n## 🛠️ Usage\n\n### Install Command\n\n```bash\nnpx @architectural-discipline/installer install [options]\n```\n\nOptions:\n- `--offline` - Use offline installation from local cache\n- `--project-type <type>` - Specify project type (auto-detected if not provided)\n- `--package-manager <pm>` - Package manager to use (npm, yarn, pnpm)\n- `--skip-deps` - Skip installing dependencies\n- `--minimal` - Install minimal configuration only\n\n### Initialize (Alias)\n\n```bash\nnpx @architectural-discipline/installer init\n```\n\n### Download Offline Bundle\n\n```bash\nnpx @architectural-discipline/installer download-offline [options]\n```\n\nOptions:\n- `-o, --output <dir>` - Output directory (default: ./adp-offline)\n\n## 📋 What Gets Installed\n\n### All Projects\n\n- `.adp-config.json` - Configuration file with language-specific settings\n- Analysis and recommendation tools\n\n### Node.js/TypeScript Projects\n\n- `@architectural-discipline/cli` (dev dependency)\n- `@architectural-discipline/core` (dev dependency)\n- `@architectural-discipline/eslint-plugin` (dev dependency)\n- Updated `package.json` scripts:\n  - `adp:analyze` - Run architecture analysis\n  - `adp:recommend` - Get refactoring recommendations\n  - `adp:check` - Analysis in JSON format\n- `eslint.config.js` - ESLint configuration (if not present)\n\n### Deno Projects\n\n- Tasks in `deno.json`:\n  - `adp:analyze` - Run analysis\n  - `adp:recommend` - Get recommendations\n\n### PowerShell Projects\n\n- `.adp/adp.psm1` - PowerShell module with:\n  - `Invoke-ADPAnalysis` - Run analysis\n  - `Get-ADPRecommendations` - Get recommendations\n\n### C# Projects\n\n- `adp-analyze.sh` - Analysis script\n\n### Rust Projects\n\n- Cargo aliases in `Cargo.toml`:\n  - `cargo adp-analyze`\n  - `cargo adp-recommend`\n\n## 🌐 Publishing Support\n\nThe ADP packages are published to:\n\n- **npm** - Main distribution channel\n- Can be used with **Deno** via npm: specifiers\n- Compatible with **pnpm**, **yarn**, and **bun**\n\n## 🔒 Offline/Air-Gapped Installation\n\nFor environments without internet access:\n\n1. On a connected machine, download the offline bundle:\n   ```bash\n   npx @architectural-discipline/installer download-offline -o /path/to/bundle\n   ```\n\n2. The bundle includes:\n   - All required npm packages as tarballs\n   - Installation script\n   - Documentation\n\n3. Transfer the bundle to the air-gapped system\n\n4. Run the installation:\n   ```bash\n   cd /path/to/bundle\n   node install-offline.js\n   ```\n\n## 📖 Next Steps\n\nAfter installation:\n\n1. **Run Analysis**\n   ```bash\n   npm run adp:analyze\n   # or\n   npx architectural-discipline analyze\n   ```\n\n2. **Get Recommendations**\n   ```bash\n   npm run adp:recommend\n   # or\n   npx architectural-discipline recommend\n   ```\n\n3. **Check Documentation**\n   - [Core Concepts](../../docs/core-concepts.md)\n   - [CLI Reference](../../docs/cli-reference.md)\n   - [Multi-Language Usage](../../docs/multi-language-usage.md)\n\n## 🤝 Contributing\n\nContributions are welcome! Please see the main [Contributing Guide](../../CONTRIBUTING.md).\n\n## 📄 License\n\nMIT License - see [LICENSE](../../LICENSE) for details.\n\n## 🔗 Links\n\n- [GitHub Repository](https://github.com/architectural-discipline/monorepo)\n- [Documentation](https://github.com/architectural-discipline/monorepo#readme)\n- [Issues](https://github.com/architectural-discipline/monorepo/issues)\n","readmeFilename":"README.md","_rev":"1-c96bf443386811a89fdf275b5bc0bd0d"}