Download the PHP package thedava/gruntfile-generator without Composer
On this page you can find all versions of the php package thedava/gruntfile-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download thedava/gruntfile-generator
More information about thedava/gruntfile-generator
Files in thedava/gruntfile-generator
Package gruntfile-generator
Short Description A PHP based Gruntfile.js generator
License LGPL
Homepage https://github.com/thedava/gruntfile-generator
Informations about the package gruntfile-generator
gruntfile-generator
A PHP based Gruntfile.js generator
Installation
php composer.phar require thedava/gruntfile-generator
Console command
php bin/gruntfile --config=your_grunt_config.php --gruntfile=Gruntfile.js
A basic configuration file
Gruntfile generation
Add the gruntfile-generator as target to your grunt configuration for maximum efficiency. All you need is grunt-exec as import.
Run your exec target once manually on the cli and your Gruntfile will be generated. Now you can use to update your gruntfile from config
Extended config files
You can seperate your config into multiple files and build a valid gruntfile generator config using the Gruntfile class.
Let's assume that your structure looks like this:
root
|-- bin
| |-- gruntfile
|
|-- config
| |-- grunt.config.php
| |-- tasks
| | |-- task1.config.php
| | |-- task2.config.php
| | |-- ...
Your grunt.config.php could look like this:
Now you can add a new file for every task/target/thing you need to do. This keeps your config simple and clean. The gruntfile generator will build one single Gruntfile at the end.