function minifyjs_drush_command in Minify JS 8
Same name and namespace in other branches
- 7 minifyjs.drush.inc \minifyjs_drush_command()
Implements hook_drush_command().
File
- ./
minifyjs.drush.inc, line 8
Code
function minifyjs_drush_command() {
$commands = array();
$commands['minify-js'] = array(
'description' => 'Drush command to minify all JS files.',
'aliases' => array(
'minifyjs',
),
'examples' => array(
'drush minify-js' => 'Minify all JS files.',
),
);
$commands['minify-js-skip'] = [
'description' => 'Drush command to minify all JS files that are not currently minified.',
'aliases' => [
'minifyjslite',
],
'examples' => [
'drush minify-js-skip' => 'Minify all JS files that are not currently minified.',
],
];
$commands['scan-js'] = array(
'description' => 'Drush command to find all JS files.',
'aliases' => array(
'scanjs',
),
'examples' => array(
'drush scan-js' => 'Find all JS files.',
),
);
return $commands;
}