forked from public/fvtt-cthulhu-eternal
		
	Initial import with skill sheet working
This commit is contained in:
		
							
								
								
									
										94
									
								
								node_modules/gulp-cli/lib/shared/options/cli-options.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										94
									
								
								node_modules/gulp-cli/lib/shared/options/cli-options.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,94 @@ | ||||
| 'use strict'; | ||||
|  | ||||
| var messages = require('@gulpjs/messages'); | ||||
|  | ||||
| var options = { | ||||
|   help: { | ||||
|     alias: 'h', | ||||
|     type: 'boolean', | ||||
|     tag: messages.FLAG_HELP, | ||||
|   }, | ||||
|   version: { | ||||
|     alias: 'v', | ||||
|     type: 'boolean', | ||||
|     tag: messages.FLAG_VERSION, | ||||
|   }, | ||||
|   preload: { | ||||
|     type: 'string', | ||||
|     requiresArg: true, | ||||
|     tag: messages.FLAG_PRELOAD, | ||||
|   }, | ||||
|   gulpfile: { | ||||
|     alias: 'f', | ||||
|     type: 'string', | ||||
|     requiresArg: true, | ||||
|     tag: messages.FLAG_GULPFILE, | ||||
|   }, | ||||
|   cwd: { | ||||
|     type: 'string', | ||||
|     requiresArg: true, | ||||
|     tag: messages.FLAG_CWD, | ||||
|   }, | ||||
|   tasks: { | ||||
|     alias: 'T', | ||||
|     type: 'boolean', | ||||
|     tag: messages.FLAG_TASKS, | ||||
|   }, | ||||
|   'tasks-simple': { | ||||
|     type: 'boolean', | ||||
|     tag: messages.FLAG_TASKS_SIMPLE, | ||||
|   }, | ||||
|   'tasks-json': { | ||||
|     tag: messages.FLAG_TASKS_JSON, | ||||
|   }, | ||||
|   'tasks-depth': { | ||||
|     alias: 'depth', | ||||
|     type: 'number', | ||||
|     requiresArg: true, | ||||
|     default: undefined,  // To detect if this cli option is specified. | ||||
|     tag: messages.FLAG_TASKS_DEPTH, | ||||
|   }, | ||||
|   'compact-tasks': { | ||||
|     type: 'boolean', | ||||
|     default: undefined,  // To detect if this cli option is specified. | ||||
|     tag: messages.FLAG_COMPACT_TASKS, | ||||
|   }, | ||||
|   'sort-tasks': { | ||||
|     type: 'boolean', | ||||
|     default: undefined,  // To detect if this cli option is specified. | ||||
|     tag: messages.FLAG_SORT_TASKS, | ||||
|   }, | ||||
|   color: { | ||||
|     type: 'boolean', | ||||
|     tag: messages.FLAG_COLOR, | ||||
|   }, | ||||
|   'no-color': { | ||||
|     type: 'boolean', | ||||
|     tag: messages.FLAG_NO_COLOR, | ||||
|   }, | ||||
|   silent: { | ||||
|     alias: 'S', | ||||
|     type: 'boolean', | ||||
|     default: undefined,  // To detect if this cli option is specified. | ||||
|     tag: messages.FLAG_SILENT, | ||||
|   }, | ||||
|   continue: { | ||||
|     type: 'boolean', | ||||
|     default: undefined,  // To detect if this cli option is specified. | ||||
|     tag: messages.FLAG_CONTINUE, | ||||
|   }, | ||||
|   series: { | ||||
|     type: 'boolean', | ||||
|     default: undefined,  // To detect if this cli option is specified. | ||||
|     tag: messages.FLAG_SERIES, | ||||
|   }, | ||||
|   'log-level': { | ||||
|     alias: 'L', | ||||
|     // Type isn't needed because count acts as a boolean | ||||
|     count: true, | ||||
|     default: undefined,  // To detect if this cli option is specified. | ||||
|     tag: messages.FLAG_LOG_LEVEL, | ||||
|   } | ||||
| }; | ||||
|  | ||||
| module.exports = options; | ||||
							
								
								
									
										24
									
								
								node_modules/gulp-cli/lib/shared/options/make-help.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								node_modules/gulp-cli/lib/shared/options/make-help.js
									
									
									
										generated
									
									
										vendored
									
									
										Normal file
									
								
							| @@ -0,0 +1,24 @@ | ||||
| 'use strict'; | ||||
|  | ||||
| var cliOptions = require('./cli-options'); | ||||
|  | ||||
| var messages = require('@gulpjs/messages'); | ||||
|  | ||||
| function makeHelp(parser, translate) { | ||||
|   var usage = translate.message({ tag: messages.USAGE }); | ||||
|   if (usage) { | ||||
|     parser.usage(usage); | ||||
|   } | ||||
|  | ||||
|   Object.keys(cliOptions).forEach(function (flag) { | ||||
|     var opt = cliOptions[flag]; | ||||
|     var description = translate.message({ tag: opt.tag }); | ||||
|     if (description) { | ||||
|       parser.describe(flag, description); | ||||
|     } | ||||
|   }); | ||||
|  | ||||
|   return parser; | ||||
| } | ||||
|  | ||||
| module.exports = makeHelp; | ||||
		Reference in New Issue
	
	Block a user