-
Notifications
You must be signed in to change notification settings - Fork 9
/
gulpfile.js
39 lines (33 loc) · 1.03 KB
/
gulpfile.js
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
var gulp = require('gulp');
var stylus = require('gulp-stylus');
var concat = require('gulp-concat');
var concatCss = require('gulp-concat-css');
var nib = require('nib');
gulp.task('default',['watch']);
gulp.task('watch',['styles','scripts'],function(){
gulp.watch('./source/stylesheets/*.styl',['styles']);
gulp.watch('./source/javascript/*.js',['scripts']);
});
gulp.task('styles',['copy-sprites','copy-fonts'], function() {
return gulp.src([
'./source/stylesheets/*.styl'
])
.pipe(stylus({use:nib()}))
.pipe(concatCss('angular.circular.timepicker.css'))
.pipe(gulp.dest('./dist/stylesheets'));
});
gulp.task('copy-sprites', function() {
gulp.src('./source/images/*.{png,jpg}')
.pipe(gulp.dest('./dist/images'));
});
gulp.task('copy-fonts', function() {
gulp.src('./source/fonts/*')
.pipe(gulp.dest('./dist/fonts'));
});
gulp.task('scripts',function(){
return gulp.src([
'./source/javascript/*.js',
])
.pipe(concat('angular.circular.timepicker.js'))
.pipe(gulp.dest('./dist/javascript'))
})