Skip to content

Commit

Permalink
Added a gulp task per target (#1011)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun authored Aug 21, 2017
1 parent eb3ee59 commit 174355d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions erizo_controller/erizoClient/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,19 @@ taskFunctions.erizofc = require('./gulp/erizoFcTasks.js')(gulp, plugins, config)

targets.forEach(
(target) => {
const targetTasks = ['lint'];
tasks.forEach(
(task) => {
const taskName = `${task}_${target}`;
allTasks.push(taskName);
targetTasks.push(taskName);
gulp.task(taskName, () => {
return taskFunctions[target][task]()
});
});
gulp.task(target, () => {
plugins.runSequence(...targetTasks);
})
});

gulp.task('lint', () => {
Expand Down
2 changes: 1 addition & 1 deletion erizo_controller/installErizo_controller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ echo [erizo_controller] Done, node_modules installed

cd ./erizoClient/

gulp
gulp erizo

echo [erizo_controller] Done, erizo.js compiled
2 changes: 1 addition & 1 deletion spine/installSpine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ echo [spine] Done, node_modules installed

cd ../erizo_controller/erizoClient/

gulp
gulp erizofc

echo [spine] Done, erizofc.js compiled

0 comments on commit 174355d

Please sign in to comment.