-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
43 lines (37 loc) · 1.02 KB
/
gulpfile.js
File metadata and controls
43 lines (37 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
var gulp = require('gulp'),
gutil = require('gulp-util'),
semanticWatch = require('./semantic/tasks/watch'),
semanticBuild = require('./semantic/tasks/build'),
babel = require('gulp-babel'),
concat = require('gulp-concat'),
newer = require('gulp-newer'),
eslint = require('gulp-eslint'),
beep = require('beepbeep');
function ignore(s) {
s.on('error', function() {
beep()
gutil.log.apply(this, arguments)
s.end()
})
return s
}
gulp.task('default', [ 'process-resources' ] );
gulp.task('semantic-build', 'Build Semantic UI', semanticBuild);
gulp.task('process-resources', [
'process-html',
'copy-music',
]);
// Copy HTML to target root
gulp.task('process-html', function() {
return gulp.src([
"public/index.html"
])
.pipe(gulp.dest('target/webapp'));
});
gulp.task('copy-music', function() {
return gulp.src([
'music/*.ogg',
'music/*.mp3'
])
.pipe(gulp.dest('target/webapp/music'))
});