Bryk CLI
Command-line tool for creating and managing Bryk Framework projects.
Installation
npm i -g bryk
Usage
Create a new project
bryk init my-project
bryk init
Available Commands
bryk init [project-name] - Initialize a new Bryk project
--force - Overwrite existing directory if it exists
What it creates
The CLI creates a complete Bryk project with:
- Core Framework:
bryk-core - The main framework
- Bundle Components:
bryk-bundle - UI components and services
- Development Setup: Webpack configuration for development and production
- Example Application: Complete working example with screens and components
- Build System: Production-ready build configuration
Project Structure
my-project/
├── src/
│ ├── app.js # Main application
│ ├── screens/ # Application screens
│ ├── components/ # Reusable components
│ └── services/ # API services
├── translations/ # Translation files
├── index.html # Main HTML file
├── package.json # Dependencies
├── webpack.config.js # Build configuration
└── serve.json # Production server config
Development
npm run dev
npm run build
npm run serve:prod
Dependencies
The CLI creates projects that use:
bryk-core - Core framework functionality
bryk-bundle - UI components and services
- Webpack - Build system
- Babel - JavaScript transpilation
License
ISC