{"id":22308796,"url":"https://github.com/ratson/better-gulp-cli","last_synced_at":"2025-03-26T01:29:00.510Z","repository":{"id":57189537,"uuid":"92198256","full_name":"ratson/better-gulp-cli","owner":"ratson","description":"Better Command Line Utility for Gulp","archived":false,"fork":false,"pushed_at":"2017-09-02T13:40:24.000Z","size":198,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-01T10:48:07.178Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ratson.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-23T16:59:42.000Z","updated_at":"2017-06-03T08:20:44.000Z","dependencies_parsed_at":"2022-09-15T06:22:10.568Z","dependency_job_id":null,"html_url":"https://github.com/ratson/better-gulp-cli","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fbetter-gulp-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fbetter-gulp-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fbetter-gulp-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ratson%2Fbetter-gulp-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ratson","download_url":"https://codeload.github.com/ratson/better-gulp-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245571282,"owners_count":20637316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-03T20:15:22.328Z","updated_at":"2025-03-26T01:29:00.491Z","avatar_url":"https://github.com/ratson.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003ca href=\"http://gulpjs.com\"\u003e\n    \u003cimg height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\"\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# bettter-gulp-cli\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nCommand Line Utility for Gulp\n\n# This is a fork\n\nFork from https://github.com/gulpjs/gulp-cli to add ability to\nload user-defined `gulp-cli` package.\n\nDesigned for https://www.npmjs.com/package/gulp-v4, but should work for any\ncustomized versions of `gulp`.\n\n## Installation\n\n```bash\nnpm install -g better-gulp-cli\n```\n\n## Usage\n\n```bash\n\u003e gulp [flags] \u003ctask\u003e \u003ctask\u003e...\n```\n\nUse customized version of `gulp`, e.g. `gulp-v4`,\nadd the following config to `package.json`,\n\n```json\n{\n  \"gulp-cli\": {\n    \"package\": \"gulp-v4\"\n  }\n}\n```\n\n## Custom Metadata\n\nWhen listing tasks with the `gulp -T` command, gulp-cli displays some custom metadata as defined upon task functions. Currently supported properties:\n\n* `task.description` - String of the description to display.\n\n```js\nfunction clean() { ... }\nclean.description = 'Cleans up generated files.';\n```\n\n* `task.flags` - Object with key/value pairs being flag/description to display.\n\n```js\nfunction build() { ... }\nbuild.flags = {\n  '--prod': 'Builds in production mode.'\n};\n```\n\nExample Usage:\n\n```js\nfunction build() { ... }\nbuild.description = 'Build entire project.';\nbuild.flags = {\n  '--prod': 'Builds in production mode (minification, etc).'\n};\n// gulp 3.x\ngulp.task('build', build);\n// gulp 4.x\ngulp.task(build);\n```\n\n## Tasks\n\nThe task(s) listed on the command line will be executed.\nIf more than one task is listed, Gulp will execute all of them\nconcurrently, that is, as if they had all been listed as dependencies of\na single task.\n\nGulp does not serialize tasks listed on the command line. From using\nother comparable tools users may expect to execute something like\n`gulp clean build`, with tasks named `clean` and `build`. This will not\nproduce the intended result, as the two tasks will be executed\nconcurrently.\n\nJust running `gulp` will execute the task `default`. If there is no\n`default` task, gulp will error.\n\n## Completion\n\u003e Thanks to the grunt team, specifically Tyler Kellen\n\nTo enable tasks auto-completion in shell you should add `eval \"$(gulp --completion=shell)\"` in your `.shellrc` file.\n\n###### Bash:\n\nAdd `eval \"$(gulp --completion=bash)\"` to `~/.bashrc`.\n\n###### Zsh:\n\nAdd `eval \"$(gulp --completion=zsh)\"` to `~/.zshrc`.\n\n###### Powershell:\n\nAdd `Invoke-Expression ((gulp --completion=powershell) -join [System.Environment]::NewLine)` to `$PROFILE`.\n\n###### Fish:\n\nAdd `gulp --completion=fish | source` to `~/.config/fish/config.fish`.\n\n## Compilers\n\nYou can find a list of supported languages at https://github.com/js-cli/js-interpret. If you would like to add support for a new language, send pull requests/open issues on that project.\n\n## Environment\n\nThe CLI adds process.env.INIT_CWD which is the original cwd it was launched from.\n\n## Configuration\n\nConfiguration is supported through the use of a `.gulp.*` file (e.g. `.gulp.json`, `.gulp.yml`). You can find a list of supported languages at https://github.com/js-cli/js-interpret.\n\nConfiguration from the home directory (`~`) and current working directory (`cwd`) are merged with `cwd` taking precedence.\n\nSupported configurations properties:\n\n| Property           | Description |\n|--------------------|-------------|\n| description        | Top-level description of the project/gulpfile (Replaces \"Tasks for ~/path/of/gulpfile.js\") |\n| flags.continue     | Continue execution of tasks upon failure by default. |\n| flags.compactTasks | Reduce the output of task dependency tree by default. |\n| flags.tasksDepth   | Set default depth of task dependency tree. |\n| flags.gulpfile     | Set a default gulpfile |\n| flags.silent       | Silence logging by default |\n\n## Flags\n\ngulp has very few flags to know about. All other flags are for tasks to use if needed.\n\n__Some flags only work with gulp 4 and will be ignored when invoked against gulp 3.__\n\n\u003ctable\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth width=\"25%\"\u003eFlag\u003c/th\u003e\n      \u003cth width=\"15%\"\u003eShort Flag\u003c/th\u003e\n      \u003cth\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--help\u003c/td\u003e\n      \u003ctd\u003e-h\u003c/td\u003e\n      \u003ctd\u003eShow this help.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--version\u003c/td\u003e\n      \u003ctd\u003e-v\u003c/td\u003e\n      \u003ctd\u003ePrint the global and local gulp versions.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--require [path]\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eWill require a module before running the gulpfile. This is useful for transpilers but also has other applications.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--gulpfile [path]\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eManually set path of gulpfile. Useful if you have multiple gulpfiles. This will set the CWD to the gulpfile directory as well.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--cwd [path]\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eManually set the CWD. The search for the gulpfile, as well as the relativity of all requires will be from here.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--verify [path (optional)]\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eWill verify plugins referenced in project's package.json against the plugins blacklist.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--tasks\u003c/td\u003e\n      \u003ctd\u003e-T\u003c/td\u003e\n      \u003ctd\u003ePrint the task dependency tree for the loaded gulpfile.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--tasks-simple\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003ePrint a plaintext list of tasks for the loaded gulpfile.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--tasks-json [path]\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003ePrint the task dependency tree, in JSON format, for the loaded gulpfile. The [path] argument is optional, and if given writes the JSON to the path.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--tasks-depth [number]\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eSpecify the depth of the task dependency tree to print. This flag can be used with --tasks or --tasks-json. (This flag was named --depth before but is deprecated.)\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--compact-tasks\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eReduce the output of task dependency tree by printing only top tasks and their child tasks. This flag can be used with --tasks or --tasks-json.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--sort-tasks\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eWill sort top tasks of task dependency tree. This flag can be used with --tasks.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--color\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eWill force gulp and gulp plugins to display colors, even when no color support is detected.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--no-color\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eWill force gulp and gulp plugins to not display colors, even when color support is detected.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--silent\u003c/td\u003e\n      \u003ctd\u003e-S\u003c/td\u003e\n      \u003ctd\u003eSuppress all gulp logging.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--continue\u003c/td\u003e\n      \u003ctd\u003e\u003c/td\u003e\n      \u003ctd\u003eContinue execution of tasks upon failure.\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd\u003e--log-level\u003c/td\u003e\n      \u003ctd\u003e-L\u003c/td\u003e\n      \u003ctd\u003eSet the loglevel. -L for least verbose and -LLLL for most verbose. -LLL is default.\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n## License\n\nMIT\n\n[gittip-url]: https://www.gittip.com/WeAreFractal/\n[gittip-image]: http://img.shields.io/gittip/WeAreFractal.svg\n\n[downloads-image]: http://img.shields.io/npm/dm/gulp-cli.svg\n[npm-url]: https://npmjs.org/package/gulp-cli\n[npm-image]: http://img.shields.io/npm/v/gulp-cli.svg\n\n[travis-url]: https://travis-ci.org/gulpjs/gulp-cli\n[travis-image]: http://img.shields.io/travis/gulpjs/gulp-cli.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/gulp-cli\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/gulp-cli.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/gulp-cli\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/gulp-cli/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fbetter-gulp-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fratson%2Fbetter-gulp-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fratson%2Fbetter-gulp-cli/lists"}