Installation
Guide to installing and setting up the @easy/dev-kit package.
Package Installation
Using pnpm (Recommended)
pnpm add -D @easy/dev-kit
Using npm
npm install --save-dev @easy/dev-kit
Using yarn
yarn add -D @easy/dev-kit
Registry Configuration
The package is hosted on the Easy.M private npm registry. Ensure your .npmrc is configured:
# .npmrc
@easy:registry=https://npm.eacore6.de/
//npm.eacore6.de/:_authToken=YOUR_NPM_TOKEN
Requirements
Node.js
- Minimum Version: 18.0.0
- The CLI uses ES modules and modern Node.js features
Peer Dependencies
| Package | Version | Required |
|---|---|---|
| Vite | >= 5.0.0 | Optional (for frontend development) |
If you're developing a frontend app, Vite is required:
pnpm add -D vite
Package Exports
The package provides multiple entry points:
// CLI (available as 'easy-dev' command after install)
import '@easy/dev-kit'
// Configuration helpers
import { defineDevKitConfig, loadConfig, findConfigFile } from '@easy/dev-kit/config'
// Vite plugin for CSS bundling
import { devCssBundle } from '@easy/dev-kit/vite-plugin'
Verify Installation
After installation, verify the CLI is available:
# Check version
pnpm easy-dev --version
# Or with npx
npx easy-dev --version
# View available commands
pnpm easy-dev --help
Expected output:
Usage: easy-dev [options] [command]
Easy.M App Development Kit
Options:
-V, --version output the version number
-h, --help display help for command
Commands:
start Start development environment
stop Stop all managed processes
status Show status of services
auth Authenticate with Kratos
install Install an app via GraphQL
uninstall Uninstall an app via GraphQL
help [command] display help for command
Project Structure
After setting up dev-kit, your project should have:
your-app/
├── devkit.config.ts # Dev-kit configuration
├── package.json # With @easy/dev-kit in devDependencies
├── web/
│ └── packages/
│ └── your-app/
│ ├── vite.config.ts # With devCssBundle plugin
│ └── src/
└── cmd/ # For Go apps
└── app/
└── main.go
Troubleshooting
Command Not Found
If easy-dev is not found, ensure:
- The package is installed in devDependencies
- Run via package manager:
pnpm easy-devornpx easy-dev
Registry Authentication Failed
If you get 401 errors:
- Check your NPM_TOKEN is valid
- Verify
.npmrcconfiguration - Try re-authenticating with the registry
Peer Dependency Warnings
If you see peer dependency warnings for Vite:
pnpm add -D vite@^5.0.0
Next Steps
- Configuration - Create your
devkit.config.ts - CLI Commands - Learn the available commands