Content deleted Content added
Visaldatta (talk | contribs) Content in this edit is translated from the existing German Wikipedia article at de:Gulp.js; see its history for attribution. |
Visaldatta (talk | contribs) No edit summary |
||
Line 3:
| Logo =
| Manufacturer = Fractal and contributors of the GitHub community
| Current version = <!
4.0.0 & nbsp; <ref> {{Internet source | url = https:
| Current version release date = <! - Please insert date after the version ->
Line 10:
| Language = [[JavaScript]]
| Category = [[Toolkit]]
| Royalty = [[MIT license]] <ref> {{Internet source | url = https:
| Website = [http://gulpjs.com/ www.gulpjs.com/]
}}
'' 'Gulp.js' '' is a [[process (computer science) | Task]] - Runner, based on [[Node.js]] to several [[Workflow | Workflow]] - to automate tasks in Webentwicklungsprozess. <ref> {{cite | author = Joshua Barnett | title = Building a Cross-Platform Mobile game with HTML5 | ed = University of East Anglia | compilation = | band = | number = | edition = | publisher = | ___location = | year = 2014 | pages = | ISBN = | online = http:
== Installation ==
Line 34:
In the next step, the tasks can then be created. A gulp task is defined by '' gulp.task '' and gets a name for the task as the first parameter and the second parameter is a function.
The following example shows the creation of a gulp tasks. The first parameter '' taskName '' is mandatory and specifies the name by which the task in the shell can be executed <ref> {{Internet source | url = https:
gulp.task ( 'taskName', function () {
// do something
Line 69:
</ Syntax highlight>
The subsequent image Task performs optimizing images. <Code> gulp.src () </ code> retrieves all the images with the extension .png, .gif or .jpg in the directory '' <nowiki /> 'images-orig /' <nowiki /> ''. <Code> .pipe (imagemin ()) </ code> schleußt the images found by the optimization process through and with <code> .pipe (gulp.dest ()) </ code> are the optimized images afterwards to folder '' < nowiki /> 'images /' <nowiki /> '' saved. Without <code> gulp.dest () </ code> the images would indeed optimized, but are not stored <ref> {{Internet source | url = http:
// Images task
gulp.task ( 'images', function () {
|