Skip to content
This repository was archived by the owner on Dec 19, 2025. It is now read-only.

Commit 6846405

Browse files
author
Axel Rindle
committed
Addition to commit 1127122
1 parent a294d59 commit 6846405

4 files changed

Lines changed: 12 additions & 4 deletions

File tree

gulp/index.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ tasks = [
44
]
55

66
# load tasks
7-
gulp = require('./tasker')(tasks)
7+
gulp = require('./tasker') tasks
88

99
# execute tasks
1010
gulp.task 'default', gulp.series tasks

gulp/tasker.coffee

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
gulp = require('gulp')
22

33
module.exports = (tasks) ->
4+
5+
# loop through the task array
46
tasks.forEach (name) ->
7+
8+
# define a gulp task with the task's name and function
59
gulp.task name, require('./tasks/' + name)
10+
11+
# then return the gulp object with the created tasks
612
return gulp

gulp/tasks/coffeelint.coffee

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ conf = require '../coffeelint.json'
66
# path to source files
77
path = 'lib/**/*.coffee'
88

9+
# define the task function
910
task = () ->
1011
gulp.src path
1112
.pipe coffeelint conf

gulpfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
// Note the new way of requesting CoffeeScript since 1.7.x
2-
require('coffee-script/register');
1+
// Enable requiring coffeescript
2+
require('coffeescript/register')
3+
34
// This bootstraps your Gulp's main file
4-
require('./gulp');
5+
require('./gulp')

0 commit comments

Comments
 (0)