exozet / grunt-bundle
在symfony2中,运行npm、bower和grunt进行缓存预热。
0.2.3
2014-11-07 17:10 UTC
Requires
- php: >=5.3.0
Requires (Dev)
- codeclimate/php-test-reporter: ~0.1
- phpunit/phpunit: ~4.3
README
此小型包旨在执行以下步骤,如果缓存被清理并预热(可选)
- npm install
- bower install
- grunt dev
用法
将$bundles[] = new Exozet\GruntBundle\ExozetGruntBundle()
添加到您的AppKernel.php
(在dev
-if-block中)。
如果您在项目中已有package.json
、bower.json
和Gruntfile.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。