定制 specbee/robo-tooling 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

specbee/robo-tooling

最新稳定版本:3.0.3

Composer 安装命令:

composer require specbee/robo-tooling

包简介

Robo commands for use to setup, build, test and deploy Drupal projects.

README 文档

README

The composer package intends to provide an automation layer using Robo commands to setup, build, test & deploy Drupal applications.

Installation requisites

  • Lando
  • Docker
  • PHP >= 7.4
  • Composer v2

Creating a new project

The package comes pre-installed with Specbee's Drupal starterkit https://github.com/SpecbeeLabs/drupal-starterkit

composer create-project specbee/drupal-starterkit:9.x-dev projname --no-interaction

Adding to existing project

To add the package to an existing project

composer require specbee/robo-tooling:1.x-dev

Configuration

  • Copy the example.robo.yml and rename it robo.yml to the root directory if not added already
  • Update the robo.yml to change the configurations based on your requirements.

Once, done run vendor/bin/robo init-repo which will:

  • Setup Drush aliases
  • Configure the Landofile
  • Configure Grumphp for checking commits

Usage

Run lando start to spin up the containers used to run the application.

Once the lando containers are running, run the lando command

lando robo setup -n

This will install a fresh Drupal site using the installation profile drupal.profile mentioned in the robo.yml. After which if existing configurations are present those will be imported and theme will be build if present.

Tooling

The package provides the following tooling commands to automate development tasks.

All the commands can be accessed under lando namespace. lando robo <command>

Task Command
Setup the site from scratch setup
Running database updates and importing configurations drupal:update
Sync database and files from remote environment defines under remote in robo.yml sync:all
Sync database from remote environment defines under remote in robo.yml sync:db
Sync files from remote environment defines under remote in robo.yml sync:files
Validate files - Check composer validation, run PHPCS against modules and themes code path set in robo.yml under phpcs.code_paths and run SASS Lint in the theme validate
Validate files - Check composer validation validate:composer
Validate files - Run PHPCS against modules and themes code path set in robo.yml under phpcs.code_paths validate:phpcs
Validate files - Run SASS Lint in the theme validate:theme
Initialize and setup Redis caching init:service:cache
Running all tests test
Running Behat test test:behat
Running PHPUnit test test:phpunit
Run remote deployment procedures test:deploy

统计信息

  • 总下载量: 13.65k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 3
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固