| Current Path : /home/emeraadmin/public_html/4d695/ |
| Current File : /home/emeraadmin/public_html/4d695/grunt-cli.tar |
completion/zsh 0000644 00000002305 15170147672 0007456 0 ustar 00 #!/bin/zsh
# grunt-cli
# http://gruntjs.com/
#
# Copyright (c) 2016 Tyler Kellen, contributors
# Licensed under the MIT license.
# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
# Usage:
#
# To enable zsh <tab> completion for grunt, add the following line (minus the
# leading #, which is the zsh comment character) to your ~/.zshrc file:
#
# eval "$(grunt --completion=zsh)"
# Enable zsh autocompletion.
function _grunt_completion() {
local completions
# The currently-being-completed word.
local cur="${words[@]}"
# The current grunt version, available tasks, options, etc.
local gruntinfo="$(grunt --version --verbose 2>/dev/null)"
# Options and tasks.
local opts="$(echo "$gruntinfo" | awk '/Available options: / {$1=$2=""; print $0}')"
local compls="$(echo "$gruntinfo" | awk '/Available tasks: / {$1=$2=""; print $0}')"
# Only add -- or - options if the user has started typing -
[[ "$cur" == -* ]] && compls="$compls $opts"
# Trim whitespace.
compls=$(echo "$compls" | sed -e 's/^ *//g' -e 's/ *$//g')
# Turn compls into an array to of completions.
completions=(${=compls})
# Tell complete what stuff to show.
compadd -- $completions
}
compdef _grunt_completion grunt
completion/bash 0000644 00000003013 15170147672 0007564 0 ustar 00 #!/bin/bash
# grunt-cli
# http://gruntjs.com/
#
# Copyright (c) 2016 Tyler Kellen, contributors
# Licensed under the MIT license.
# https://github.com/gruntjs/grunt/blob/master/LICENSE-MIT
# Usage:
#
# To enable bash <tab> completion for grunt, add the following line (minus the
# leading #, which is the bash comment character) to your ~/.bashrc file:
#
# eval "$(grunt --completion=bash)"
# Search the current directory and all parent directories for a gruntfile.
function _grunt_gruntfile() {
local curpath="$PWD"
while [[ "$curpath" ]]; do
for gruntfile in "$curpath/"{G,g}runtfile.{js,coffee}; do
if [[ -e "$gruntfile" ]]; then
echo "$gruntfile"
return
fi
done
curpath="${curpath%/*}"
done
return 1
}
# Enable bash autocompletion.
function _grunt_completions() {
# The currently-being-completed word.
local cur="${COMP_WORDS[COMP_CWORD]}"
# The current gruntfile, if it exists.
local gruntfile="$(_grunt_gruntfile)"
# The current grunt version, available tasks, options, etc.
local gruntinfo="$(grunt --version --verbose 2>/dev/null)"
# Options and tasks.
local opts="$(echo "$gruntinfo" | awk '/Available options: / {$1=$2=""; print $0}')"
local compls="$(echo "$gruntinfo" | awk '/Available tasks: / {$1=$2=""; print $0}')"
# Only add -- or - options if the user has started typing -
[[ "$cur" == -* ]] && compls="$compls $opts"
# Tell complete what stuff to show.
COMPREPLY=($(compgen -W "$compls" -- "$cur"))
}
complete -o default -F _grunt_completions grunt
package.json 0000644 00000003311 15170147672 0007042 0 ustar 00 {
"_from": "grunt-cli@^1.3.2",
"_id": "grunt-cli@1.4.3",
"_inBundle": false,
"_integrity": "sha512-9Dtx/AhVeB4LYzsViCjUQkd0Kw0McN2gYpdmGYKtE2a5Yt7v1Q+HYZVWhqXc/kGnxlMtqKDxSwotiGeFmkrCoQ==",
"_location": "/grunt-cli",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "grunt-cli@^1.3.2",
"name": "grunt-cli",
"escapedName": "grunt-cli",
"rawSpec": "^1.3.2",
"saveSpec": null,
"fetchSpec": "^1.3.2"
},
"_requiredBy": [
"/jqGrid"
],
"_resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-1.4.3.tgz",
"_shasum": "22c9f1a3d2780bf9b0d206e832e40f8f499175ff",
"_spec": "grunt-cli@^1.3.2",
"_where": "C:\\xampp\\htdocs\\emeraltd\\node_modules\\jqGrid",
"appveyor_id": "prp6g944b05jsq6d",
"author": {
"name": "Grunt Development Team",
"url": "http://gruntjs.com/development-team"
},
"bin": {
"grunt": "bin/grunt"
},
"bugs": {
"url": "https://github.com/gruntjs/grunt-cli/issues"
},
"bundleDependencies": false,
"dependencies": {
"grunt-known-options": "~2.0.0",
"interpret": "~1.1.0",
"liftup": "~3.0.1",
"nopt": "~4.0.1",
"v8flags": "~3.2.0"
},
"deprecated": false,
"description": "The grunt command line interface",
"devDependencies": {
"grunt": "~1.3.0",
"grunt-contrib-jshint": "~3.0.0"
},
"engines": {
"node": ">=10"
},
"files": [
"bin",
"completion",
"lib"
],
"homepage": "https://github.com/gruntjs/grunt-cli#readme",
"license": "MIT",
"name": "grunt-cli",
"repository": {
"type": "git",
"url": "git+https://github.com/gruntjs/grunt-cli.git"
},
"scripts": {
"test": "node bin/grunt test"
},
"version": "1.4.3"
}
lib/info.js 0000644 00000002326 15170147672 0006620 0 ustar 00 /*
* grunt-cli
* http://gruntjs.com/
*
* Copyright (c) 2016 Tyler Kellen, contributors
* Licensed under the MIT license.
* https://github.com/gruntjs/grunt-init/blob/master/LICENSE-MIT
*/
'use strict';
// Project metadata.
var pkg = require('../package.json');
// Display grunt-cli version.
exports.version = function() {
console.log('grunt-cli v' + pkg.version);
};
// Show help, then exit with a message and error code.
exports.fatal = function(msg, code) {
exports.helpHeader();
console.log('Fatal error: ' + msg);
console.log('');
exports.helpFooter();
process.exit(code);
};
// Show help and exit.
exports.help = function() {
exports.helpHeader();
exports.helpFooter();
process.exit();
};
// Help header.
exports.helpHeader = function() {
console.log('grunt-cli: ' + pkg.description + ' (v' + pkg.version + ')');
console.log('');
};
// Help footer.
exports.helpFooter = function() {
[
'If you\'re seeing this message, grunt hasn\'t been installed locally to',
'your project. For more information about installing and configuring grunt,',
'please see the Getting Started guide:',
'',
'https://gruntjs.com/getting-started',
].forEach(function(str) { console.log(str); });
};
lib/completion.js 0000644 00000001402 15170147672 0010030 0 ustar 00 /*
* grunt-cli
* http://gruntjs.com/
*
* Copyright (c) 2016 Tyler Kellen, contributors
* Licensed under the MIT license.
* https://github.com/gruntjs/grunt-init/blob/master/LICENSE-MIT
*/
'use strict';
// Nodejs libs.
var fs = require('fs');
var path = require('path');
exports.print = function(name) {
var code = 0;
var filepath = path.join(__dirname, '../completion', name);
var output;
try {
// Attempt to read shell completion file.
output = String(fs.readFileSync(filepath));
} catch (err) {
code = 5;
output = 'echo "Specified grunt shell auto-completion rules ';
if (name && name !== 'true') {
output += 'for \'' + name + '\' ';
}
output += 'not found."';
}
console.log(output);
process.exit(code);
};
bin/grunt 0000644 00000003572 15170147672 0006417 0 ustar 00 #!/usr/bin/env node
'use strict';
process.title = 'grunt';
var Liftup = require('liftup');
var v8flags = require('v8flags');
var extensions = require('interpret').jsVariants;
var nopt = require('nopt');
var gruntOptions = require('grunt-known-options');
var completion = require('../lib/completion.js');
var info = require('../lib/info.js');
var pkg = require('../package.json');
// Parse `gruntOptions` into a form that nopt can handle.
var aliases = {};
var known = {};
Object.keys(gruntOptions).forEach(function(key) {
var short = gruntOptions[key].short;
if (short) {
aliases[short] = '--' + key;
}
known[key] = gruntOptions[key].type;
});
// Parse them and return an options object.
var options = nopt(known, aliases, process.argv, 2);
if ('completion' in options) {
completion.print(options.completion);
} else if (options.version) {
console.log('grunt-cli v' + pkg.version);
}
v8flags(function (err, v8flags) {
var Grunt = new Liftup({
name: 'grunt',
configName: 'Gruntfile',
// Support a number of languages based on file extension
extensions: extensions,
// Flags that are v8 flags will be loaded into node instead of Gruntfile
v8flags: v8flags
});
Grunt.prepare({
cwd: options.base,
configPath: options.gruntfile,
require: options.require,
preload: options.preload,
verbose: options.verbose
}, function (env) {
Grunt.execute(env, function(env) {
var tasks = options.argv.remain;
delete options.argv;
// No grunt install found!
if (!env.modulePath) {
if (options.version) {
process.exit();
}
if (options.help) {
info.help();
}
info.fatal('Unable to find local grunt.', 99);
} else {
options.gruntfile = env.configPath;
var grunt = require(env.modulePath);
grunt.tasks(tasks, options);
}
});
});
});
README.md 0000644 00000003303 15170147672 0006034 0 ustar 00 # grunt-cli [](https://travis-ci.org/gruntjs/grunt-cli) [](https://ci.appveyor.com/project/gruntjs/grunt-cli/branch/master)
> The Grunt command line interface.
Install this globally and you'll have access to the `grunt` command anywhere on your system.
```shell
npm install -g grunt-cli
```
**Note:** The job of the `grunt` command is to load and run the version of Grunt you have installed locally to your project, irrespective of its version. Starting with Grunt v0.4, you should never install Grunt itself globally. For more information about why, [please read this](http://nodejs.org/en/blog/npm/npm-1-0-global-vs-local-installation).
See the [Getting Started](http://gruntjs.com/getting-started) guide for more information.
## Shell tab auto-completion
To enable tab auto-completion for Grunt, add one of the following lines to your `~/.bashrc` or `~/.zshrc` file.
```bash
# Bash, ~/.bashrc
eval "$(grunt --completion=bash)"
```
```bash
# Zsh, ~/.zshrc
eval "$(grunt --completion=zsh)"
```
## Installing grunt-cli locally
If you prefer the idiomatic Node.js method to get started with a project (`npm install && npm test`) then install grunt-cli locally with `npm install grunt-cli --save-dev`. Then add a script to your `package.json` to run the associated grunt command: `"scripts": { "test": "grunt test" } `. Now `npm test` will use the locally installed `./node_modules/.bin/grunt` executable to run your Grunt commands.
To read more about npm scripts, please visit the npm docs: <https://docs.npmjs.com/misc/scripts>.
CHANGELOG.md 0000644 00000002363 15170147672 0006373 0 ustar 00 - v1.4.1:
- date: 2021-05-24
- changes:
- fix preload option for latest grunt
- v1.4.0:
- date: 2021-03-25
- changes:
- updated dependencies
- Requires node >= 10
- v1.3.2:
- date: 2018-11-04
- changes:
- bump v8 flags dependency
- v1.3.1:
- date: 2018-08-18
- changes:
- cwd option fix
- v1.3.0:
- date: 2018-08-15
- changes:
- Switch to 'liftoff' module for CLI
- Dropped support for node 0.10, 0.12.
- v1.2.0
- date: 2016-04-01
- changes:
- Use shared grunt-known-options module.
- v1.1.0
- date: 2016-03-22
- changes:
- Update to "nopt": "~3.0.6".
- nopt is upgraded to ~3.0.6 which has fixed many issues, including passing multiple arguments and dealing with numbers as options.
Be aware previously --foo bar used to pass the value 'bar' to the option foo. It will now set the option foo to true and run the task bar.
- v1.0.1
- date: 2016-03-22
- changes:
- Revert to "nopt": "~1.0.10" due to issues with the update.
- v1.0.0
- date: 2016-03-21
- changes:
- Update dev deps
- Update error message when Gruntfile is not found
- v1.0.0-rc1
- date: 2016-02-11
- changes:
- Update findup-sync and other deps
- remove prefer global warning