@architectural-discipline/installer
v1.0.0
Published
Installer for adding ADP to any project
Maintainers
Readme
ADP Installer
Universal installer for adding Architectural Discipline Package (ADP) to any project type.
🚀 Quick Start
Online Installation (Recommended)
Using npx (no installation required):
# In your project directory
npx @architectural-discipline/installer installOr using npm create:
npm create adp@latestOffline Installation (Air-Gapped Environments)
- Download the offline bundle (on a connected machine):
npx @architectural-discipline/installer download-offlineCopy the
adp-offlinefolder to your air-gapped systemRun the offline installer:
cd adp-offline
node install-offline.jsOr use the installer:
npx @architectural-discipline/installer install --offline📦 Supported Project Types
The installer automatically detects and supports:
- Node.js / TypeScript - Adds to package.json, creates ESLint config
- Deno - Configures deno.json tasks
- PowerShell - Creates PowerShell module wrappers
- C# - Adds analysis scripts for .NET projects
- Rust - Configures Cargo.toml aliases
- Python - Creates analysis scripts
- Go - Creates analysis scripts
🛠️ Usage
Install Command
npx @architectural-discipline/installer install [options]Options:
--offline- Use offline installation from local cache--project-type <type>- Specify project type (auto-detected if not provided)--package-manager <pm>- Package manager to use (npm, yarn, pnpm)--skip-deps- Skip installing dependencies--minimal- Install minimal configuration only
Initialize (Alias)
npx @architectural-discipline/installer initDownload Offline Bundle
npx @architectural-discipline/installer download-offline [options]Options:
-o, --output <dir>- Output directory (default: ./adp-offline)
📋 What Gets Installed
All Projects
.adp-config.json- Configuration file with language-specific settings- Analysis and recommendation tools
Node.js/TypeScript Projects
@architectural-discipline/cli(dev dependency)@architectural-discipline/core(dev dependency)@architectural-discipline/eslint-plugin(dev dependency)- Updated
package.jsonscripts:adp:analyze- Run architecture analysisadp:recommend- Get refactoring recommendationsadp:check- Analysis in JSON format
eslint.config.js- ESLint configuration (if not present)
Deno Projects
- Tasks in
deno.json:adp:analyze- Run analysisadp:recommend- Get recommendations
PowerShell Projects
.adp/adp.psm1- PowerShell module with:Invoke-ADPAnalysis- Run analysisGet-ADPRecommendations- Get recommendations
C# Projects
adp-analyze.sh- Analysis script
Rust Projects
- Cargo aliases in
Cargo.toml:cargo adp-analyzecargo adp-recommend
🌐 Publishing Support
The ADP packages are published to:
- npm - Main distribution channel
- Can be used with Deno via npm: specifiers
- Compatible with pnpm, yarn, and bun
🔒 Offline/Air-Gapped Installation
For environments without internet access:
On a connected machine, download the offline bundle:
npx @architectural-discipline/installer download-offline -o /path/to/bundleThe bundle includes:
- All required npm packages as tarballs
- Installation script
- Documentation
Transfer the bundle to the air-gapped system
Run the installation:
cd /path/to/bundle node install-offline.js
📖 Next Steps
After installation:
Run Analysis
npm run adp:analyze # or npx architectural-discipline analyzeGet Recommendations
npm run adp:recommend # or npx architectural-discipline recommendCheck Documentation
🤝 Contributing
Contributions are welcome! Please see the main Contributing Guide.
📄 License
MIT License - see LICENSE for details.
