定制 jandc/grumphp-yarn-task 二次开发

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

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

jandc/grumphp-yarn-task

Composer 安装命令:

composer require jandc/grumphp-yarn-task

包简介

Simple grumphp task akin to the 'npm_script' task, but runs yarn instead.

README 文档

README

Simple grumphp task akin to the 'npm_script' task, but runs yarn instead

Usage

Dependencies

yarn (obviously), has to be installed and available in $PATH.
Refer to https://yarnpkg.com/en/docs/install for the installation procedures.

Installation

To install the yarn task simply run
composer require jandc/grumphp-yarn-task
or
composer global require jandc/grumphp-yarn-task

depending on your grumphp location

You can register the task by adding it's extension:

# grumphp.yml
parameters:
    extensions:
        - YarnTask\Extension\Loader

Configuration

Usage is almost identical to npm_script:
(https://github.com/phpro/grumphp/blob/v0.15.0/doc/tasks/npm_script.md)

# grumphp.yml
parameters:
    tasks:
        yarn:
            script: lint
            options:
                - '--no-fix'
                - '--max-warnings=0'
            triggered_by: [js, jsx, coffee, ts, less, sass, scss]
            working_directory: ./
            is_run_task: false

Note the extra 'options' array which can be used to append extra parameters to your scripts

统计信息

  • 总下载量: 626
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: ISC
  • 更新时间: 2019-05-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固