Loading...
Loading...
Coding for 8 years.
Chào mừng đến với tài liệu Jankx Framework! Đây là nơi chứa tất cả các hướng dẫn, API reference, và best practices cho việc phát triển với Jankx Framework.
# Clone repository
git clone https://github.com/your-org/jankx-framework.git
# Install dependencies
composer install
npm install
// config/app.php
return [
'name' => 'Your Theme',
'version' => '1.0.0',
// ... other config
];
// includes/app/Providers/YourServiceProvider.php
<?php
namespace App\Providers;
use Jankx\Foundation\Application;
use Jankx\Support\Providers\ServiceProvider;
class YourServiceProvider extends ServiceProvider
{
public function register(Application $app)
{
// Register services
}
public function boot(Application $app)
{
// Bootstrap services
}
}
// config/providers.php
'frontend' => [
App\Providers\YourServiceProvider::class,
],
includes/
├── app/ # Application code
│ ├── Providers/ # Service providers
│ ├── Services/ # Business logic
│ ├── Http/ # HTTP kernels
│ └── Console/ # Console commands
├── framework/ # Core framework
│ ├── Foundation/ # Application foundation
│ ├── Support/ # Support classes
│ ├── Gutenberg/ # Gutenberg integration
│ └── Services/ # Core services
└── config/ # Configuration files
├── app.php
├── providers.php
└── ...
# Install dependencies
composer install
# Update dependencies
composer update
# Run tests
composer test
# Code style check
composer cs-check
# Code style fix
composer cs-fix
# Install dependencies
npm install
# Build assets
npm run build
# Watch for changes
npm run watch
# Development build
npm run dev
# .env
WP_DEBUG=true
JANKX_TEMPLATE_ENGINE=jankx
JANKX_TEMPLATE_CACHE=false
// config/app.php
return [
'name' => env('APP_NAME', 'Jankx Theme'),
'version' => env('APP_VERSION', '1.0.0'),
'debug' => env('WP_DEBUG', false),
'template_engine' => env('JANKX_TEMPLATE_ENGINE', 'jankx'),
];
# Run unit tests
composer test:unit
# Run with coverage
composer test:coverage
# Run integration tests
composer test:integration
# Run end-to-end tests
npm run test:e2e
# Build for production
npm run build:prod
composer install --no-dev --optimize-autoloader
# Dockerfile
FROM wordpress:latest
COPY . /var/www/html/wp-content/themes/jankx/
This project is licensed under the GPL v3 or later License - see the LICENSE file for details.
Cập nhật lần cuối: 2024-01-01 Phiên bản: 2.0.0 Tác giả: Jankx Team