exozet/grunt-bundle
最新稳定版本:0.2.3
Composer 安装命令:
composer require exozet/grunt-bundle
包简介
Run npm, bower and grunt on cache warmup in symfony2.
README 文档
README
This small bundle is meant to run the following steps, if the cache is cleaned and warmed up (optional):
- npm install
- bower install
- grunt dev
Usage
Add $bundles[] = new Exozet\GruntBundle\ExozetGruntBundle() to your AppKernel.php (in the dev-if-block).
If you have a package.json, bower.json and Gruntfile.js in your project, add the bundle to your project.
As soon a you call
$ app/console c:c
and the steps by grunt will be executed.
Configuration
# 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
This default configuration will run the dev task ONLY in dev environment.
The LANG environment variable is e.g. required for compass.
License
Copyright 2014 by Exozet and licensed under MIT License.
统计信息
- 总下载量: 242
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-31