exozet/grunt-bundle

在symfony2中,运行npm、bower和grunt进行缓存预热。

安装: 240

依赖者: 0

建议者: 0

安全: 0

星标: 2

关注者: 29

分支: 0

公开问题: 0

类型:symfony-bundle

0.2.3 2014-11-07 17:10 UTC

This package is auto-updated.

Last update: 2024-09-18 08:50:02 UTC


README

SensioLabsInsight

Build Status Code Climate Test Coverage StyleCI

此小型包旨在执行以下步骤,如果缓存被清理并预热(可选)

  • npm install
  • bower install
  • grunt dev

用法

$bundles[] = new Exozet\GruntBundle\ExozetGruntBundle()添加到您的AppKernel.php(在dev-if-block中)。

如果您在项目中已有package.jsonbower.jsonGruntfile.js,将此包添加到您的项目中。

一旦您调用

$ app/console c:c

grunt将执行这些步骤。

配置

# Default configuration for extension with alias: "exozet_grunt"
exozet_grunt:

    # The environments where the bundle should be executed
    environments:         # Required

        # Default:
        - dev

    # Use binaries with the following environment vars (key/value pairs)
    binary_env_vars:      # Example: LANG:    en_US.UTF-8 for LANG="en_US.UTF-8"

        LANG:                 en_US.UTF-8

    # The binary path where npm is located
    npm_binary_path:      npm # Example: /usr/bin/npm

    # The binary path where bower is located
    bower_binary_path:    bower # Example: /usr/bin/bower

    # The binary path where grunt is located
    grunt_binary_path:    grunt # Example: /usr/bin/grunt

    # The grunt task which should be executed
    grunt_task:           dev # Example: dev

此默认配置将仅在dev环境中运行dev任务。例如,LANG环境变量对于compass是必需的。

许可证

版权所有2014 Exozet,许可协议为MIT。