Members
-
<constant> config :Object
-
Config options
Type:
- Object
- Source:
Properties:
Name Type Description distDirString Base path to distributive (must be fully) outDirString Base path to output dir (must be fully) serverObject Server config Properties
Name Type Description pathString Path to server portNumber Server port openInBrowserBoolean Open default Browser after start7 liveReloadOptionsObject Live reload options. Options list see on gulp-livereload API cssObject | Array CSS Options. If you want usage several processor, define as array object, options are (for everyone): Properties
Name Type Description pathObject | Array | String Config path. See For detail ignoresArray Ignores pattern which will be adding to all gulp.srcfunctions for css buildprocessorString Package name for build sourceExtString Source filename extension outputExtString Output filename extension processorString Package name for build liveReloadOptionsObject Livereload options for css building additionalMinifyWatchCallbackfunction | undefined Additional minify watch callback. Called on Css class additionalBuildCallbackfunction | undefined Additional build callback. Called on Css class additionalWatchCallbackfunction | undefined Additional watch callback. Called on Css class additionalMinifyWatchCallbackfunction | undefined Additional minify watch callback. Called on Css class minifyOptionsfunction | undefined Options for gulp-clean-css package minifySuffixString | undefined Minify suffix for min file versions. By default is .minwatchTasksString | Array Task which will be run on build files watcher. Be default is build-csswatchMinifyTasksString | Array Task which will be run on minify files watcher. Be default is minify-cssadditionalMinifyPathArray | Object Additional minify files pattern which will be adding to all gulp.srcfunctions for minify css. See Path config options for detailenableMinBoolean Enable or disable run minify task & watcher. By default is true processorOptionsObject Options for gulp package which will be build css. Testing on gulp-stylus, gulp-sass and gulp-less imagesObject Images optimize config Properties
Name Type Description processorNameString NPM package name for image optimizer (by default is gulp-imagemin liveReloadOptionsObject Options for Livereload pathsObject Config path. See For detail templatesObject | Array CSS Options. If you want usage several processor, define as array object, options are (for everyone): Properties
Name Type Description pathObject | Array | String Config path. See For detail ignoresArray Ignores pattern which will be adding to all gulp.srcfunctions for templates buildprocessorString Package name for build sourceExtString Source filename extension outputExtString Output filename extension liveReloadOptionsObject Livereload options for templates building additionalMinifyWatchCallbackfunction | undefined Additional minify watch callback. Called on Templates class additionalBuildCallbackfunction | undefined Additional build callback. Called on Templates class additionalWatchCallbackfunction | undefined Additional watch callback. Called on Templates class additionalMinifyWatchCallbackfunction | undefined Additional minify watch callback. Called on Templates class minifyOptionsfunction | undefined Options for gulp-minhtml package minifySuffixString | undefined Minify suffix for min file versions. By default is .minwatchTasksString | Array Task which will be run on build files watcher. Be default is minify-htmlwatchMinifyTasksString | Array Task which will be run on minify files watcher. Be default is minify-htmladditionalMinifyPathArray | Object Additional minify files pattern which will be adding to all gulp.srcfunctions for minify templates. See Path config options for detailenableMinBoolean Enable or disable run minify task & watcher. By default is true processorOptionsObject Options for gulp package which will be build templates. Testing on gulp-pug jsObject | Array JS build Options. If you want usage several processor, or several distributive dir define as array object, options are (for everyone): Properties
Name Type Description pathsObject | Array | String Config path. See For detail ignoresArray Ignores pattern which will be adding to all gulp.srcfunctions for js buildprocessorString Package name for build sourceExtString Source filename extension outputExtString Output filename extension liveReloadOptionsObject Livereload options for js building additionalMinifyWatchCallbackfunction | undefined Additional minify watch callback. Called on JS class additionalBuildCallbackfunction | undefined Additional build callback. Called on JS class additionalWatchCallbackfunction | undefined Additional watch callback. Called on JS class additionalMinifyWatchCallbackfunction | undefined Additional minify watch callback. Called on JS class minifyOptionsfunction | undefined Options for gulp-uglify/a> package minifySuffixString | undefined Minify suffix for min file versions. By default is .minwatchTasksString | Array Task which will be run on build files watcher. Be default is build-jswatchMinifyTasksString | Array Task which will be run on minify files watcher. Be default is minify-jsadditionalMinifyPathArray | Object Additional minify files pattern which will be adding to all gulp.srcfunctions for minify js. See Path config options for detailenableMinBoolean Enable or disable run minify task & watcher. By default is true processorOptionsObject Options for gulp package which will be build js. Testing on gulp-stylus, gulp-sass and gulp-less originalConfigObject Config which giving in constructor pathsObject | Array Paths processorOptionsObject | Array Processor options additionalMinifyPathArray | Object | undefined Additional minify paths additionalMinifyWatchCallbackArray | Object | undefined Additional minify watch paths additionalBuildCallbackArray | Object | undefined Additional build paths config additionalBuildCallbackArray | Object | undefined Additional build paths config minifyOptionsArray | Object | undefined Options for gulp-uglify package additionalMinifyWatchCallbackfunction | undefined Additional minify watch callback additionalMinifyCallbackfunction | undefined Additional minify callback minifySuffixString Suffix for minified files defaultProcessorString Default processor defTasksString | Array Default run tasks watchTasksString | Array Watch tasks for build paths watchMinifyTasksString | Array Watch tasks for minify paths configPathsObject Default path from config ignoresObject | Array Ignore files pattern babelOptionsObject Options for gulp-babel package copyFilesObject | Array Copy files config Properties
Name Type Description pathsObject | Array Copy files config path. See For detail tasksObject | Array Tasks list for watch. Default is copyrsyncOptionsfunction Additional rsync callback for adding wrapper options moveFilesObject | Array Move files config Properties
Name Type Description pathsObject | Array Copy files config path. See For detail tasksObject | Array Tasks list for watch. Default is moversyncOptionsfunction Additional rsync callback for adding wrapper options additionalTasksObject Additional tasks list in format "taskName": () => {... task body ...} additionalSeriesObject Additional tasks series list in format "seriesName": [... tasks list ...] requireJSConcatObject AMD build app config Properties
Name Type Description configFileString Path to require.js config file minOptionsObject Options for gulp-uglify building amd file sourcePathObject Path to output build file minPathString Path to minified builded file requireJSConfigObject Additional options for gulp-requirejs Properties
Name Type Description baseUrlString Base path to source dir outFileString Output filename configFileString Relative path to bootstrap require.js file concatObject Concatenate files config Properties
Name Type Description pathsObject Paths in format 'outfileName': [... files list ...] concatOptionsObject Options for gulp-concat minifyOptionsObject Minify options for gulp-uglify -
<constant> pathConfig :Object
-
Config paths definitions. It's a virtual constants (for documentation) and tell you about path generate. You can definition as strings array path, destination folder will be put from config.outDir and src will be everyone string
You can use relative path or full. If you used relative path, you must define config.outDir and config.distDir in your config file
In the obligatory case, that was not transferred after processing, this config will consist of an array of objects with two properties:Type:
- Object
- Source:
- See:
Properties:
Name Type Description srcString Source folder destString Destination folder -
<constant> WATCH_ALL :number
-
Watch all source
Type:
- number
- Source:
-
<constant> WATCH_BUILD :number
-
Build watcher flag
Type:
- number
- Source:
-
<constant> WATCH_MINIFY :number
-
Watch only for minify
Type:
- number
- Source:
Methods
-
buildConfigPath(config)
-
Build destination and output dir from config
Parameters:
Name Type Description configObject Config - Source:
Returns:
- Type
- Object
-
copyTask(confName, move, onlyWatch)
-
Runner for move/copy task or watch
Parameters:
Name Type Description confNameString Config name moveBoolean If true, run move copy task and copy otherwise onlyWatchBoolean If true run watcher - Source:
-
nextBuildTask(configName, construct, minify, watchType)
-
Parameters:
Name Type Description configNameString Option config name constructfunction Function runner minifyBoolean If minify flag, run minify task watchTypeString | Boolean | undefined Watch type. One of false/undefined (disable watch), - Source: