vNext Core Domain - Runtime Package for engine deployment
npm install @burgan-tech/vnext-core-runtimeA structured template package for vNext workflow components with domain-based architecture. This package provides a foundation for building scalable workflow systems with schemas, tasks, views, functions, and extensions.
- Domain-Driven Architecture: Organized by business domains with clear separation of concerns
- Component-Based Structure: Modular design with schemas, workflows, tasks, views, functions, and extensions
- Template System: Ready-to-use template structure for new vNext projects
- Type Safety: Structured exports with clear APIs for accessing components
bash
npm install @burgan-tech/vnext-core
`$3
`bash
npm install --save-dev @burgan-tech/vnext-core
`šļø Project Structure
`
vnext-core/
āāā core/ # Domain-specific components
ā āāā Extensions/ # Extension definitions
ā āāā Functions/ # Function definitions
ā āāā Schemas/ # JSON schema definitions
ā āāā Tasks/ # Task definitions
ā āāā Views/ # View components
ā āāā Workflows/ # Workflow definitions
āāā index.js # Main entry point
āāā vnext.config.json # Domain configuration
āāā package.json # Package metadata
`šļø Architecture Principles
$3
1. Schemas: JSON Schema definitions for data validation
2. Workflows: Business process definitions and state machines
3. Tasks: Individual task definitions and configurations
4. Views: User interface and presentation components
5. Functions: Reusable business logic functions
6. Extensions: Plugin and extension definitions
š ļø Development
$3
`bash
npm test
`āļø Configuration
The
vnext.config.json file allows you to customize paths and exports:`json
{
"domain": "my-domain",
"paths": {
"componentsRoot": "my-domain",
"schemas": "Schemas",
"workflows": "Workflows",
"tasks": "Tasks",
"views": "Views",
"functions": "Functions",
"extensions": "Extensions"
},
"exports": {
"schemas": ["schema1.json", "schema2.json"],
"workflows": ["workflow1.json"],
"tasks": [],
"views": [],
"functions": [],
"extensions": []
}
}
`$3
You can customize component directory names:
`json
{
"paths": {
"componentsRoot": "src",
"workflows": "Flows",
"schemas": "Models"
}
}
`ā
Validation
Validate your project structure and schemas:
`bash
npm run validate
`This will check:
- Package.json structure and content
- Main entry point functionality
- vnext.config.json validation
- Domain directory structure
- JSON file syntax validation
- Schema validation using @burgan-tech/vnext-schema
- Module functionality
- Semantic versioning compliance
$3
The validation provides detailed output with:
- ā
Passed validations
- ā Failed validations with file paths and line numbers
- š Summary statistics
- š Failed files summary for easy navigation
šļø Build
Build your domain package for deployment or cross-domain usage:
`bash
Runtime build (default) - Complete domain structure
npm run buildReference build - Only exported components
npm run build:referenceRuntime build explicitly
npm run build:runtime
`$3
`bash
npm run build -- [options]Options:
-o, --output
Output directory (default: dist)
-t, --type Build type: reference or runtime (default: runtime)
--skip-validation Skip validation during build
-h, --help Show help message
`$3
| Type | Description | Use Case |
|------|-------------|----------|
|
runtime | Complete domain structure with all files | Engine deployment |
| reference | Only exported components from vnext.config.json | Cross-domain usage |$3
`bash
Build to custom directory
npm run build -- -o my-buildReference build to custom directory
npm run build -- -t reference -o packages/refSkip validation for faster builds
npm run build -- --skip-validation
`$3
Runtime Build:
`
dist/
āāā /
ā āāā Extensions/
ā āāā Functions/
ā āāā Schemas/
ā āāā Tasks/
ā āāā Views/
ā āāā Workflows/
āāā vnext.config.json
āāā package.json
āāā README.md
āāā LICENSE
`Reference Build:
`
dist/
āāā /
ā āāā Extensions/ # Only exported files
ā āāā Functions/ # Only exported files
ā āāā Schemas/ # Only exported files
ā āāā Tasks/ # Only exported files
ā āāā Views/ # Only exported files
ā āāā Workflows/ # Only exported files
āāā vnext.config.json
āāā package.json
āāā README.md
āāā LICENSE
`š Available Scripts
| Script | Description |
|--------|-------------|
|
npm run validate | Validate project structure and schemas |
| npm run build | Build runtime package to dist/ |
| npm run build:runtime | Build runtime package explicitly |
| npm run build:reference | Build reference package with exports only |
| npm run setup | Setup domain with given name |
| npm run sync-schema | Sync schema version from dependencies |
| npm test | Run tests |
š¤ Contributing
1. Fork the repository
2. Create your feature branch (
git checkout -b feature/amazing-feature)
3. Commit your changes (git commit -m 'Add some amazing feature')
4. Push to the branch (git push origin feature/amazing-feature`)This project is licensed under the MIT License - see the LICENSE file for details.
This package is maintained by the Burgan Tech team as part of our commitment to building scalable, domain-driven workflow solutions.
- NPM Package
- GitHub Repository
- Issues
- Documentation
For support and questions:
- Create an issue on GitHub
- Contact the development team at dev@burgan-tech.com
---
Made with ā¤ļø by the Burgan Tech team