forked from webrtc/samples
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request webrtc#1095 from webrtc/fix/migrate-to-gulp
Migrate to gulp
- Loading branch information
Showing
7 changed files
with
8,224 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"presets": ["es2015"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import gulp from 'gulp'; | ||
import eslint from 'gulp-eslint'; | ||
import htmlhint from 'gulp-htmlhint'; | ||
import zip from 'gulp-zip'; | ||
|
||
gulp.task('zip', function() { | ||
return gulp.src('src/content/extensions/desktopcapture/extension/**') | ||
.pipe(zip('desktopCaptureExtension.zip')) | ||
.pipe(gulp.dest('release')); | ||
}); | ||
|
||
gulp.task('eslint', function() { | ||
return gulp.src(['src/content/**/*.js', 'test/*.js', '!**/third_party/*.js']) | ||
.pipe(eslint()) | ||
.pipe(eslint.format()) | ||
.pipe(eslint.failAfterError()); | ||
}); | ||
|
||
gulp.task('htmlhint', function() { | ||
return gulp.src(['src/content/**/*.html', '!**/third_party/*.html']) | ||
.pipe(htmlhint()) | ||
.pipe(htmlhint.reporter()) | ||
.pipe(htmlhint.failOnError()); | ||
}); | ||
|
||
gulp.task('default', ['eslint', 'htmlhint']); |
Oops, something went wrong.