-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathgulpfile.js
More file actions
executable file
·39 lines (35 loc) · 797 Bytes
/
gulpfile.js
File metadata and controls
executable file
·39 lines (35 loc) · 797 Bytes
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 uglify = require('gulp-uglify');
var autoprefixer = require('gulp-autoprefixer');
var concat = require('gulp-concat');
var css = require('gulp-concat-css');
gulp.task('scripts', function() {
return gulp.src(
[
'js/directives/carousel.js'
])
.pipe(concat('angular-3d-carousel.js'))
.pipe(gulp.dest('./dist'))
});
gulp.task('styles', function() {
return gulp.src(
[
'css/carousel.css'
])
.pipe(css('angular-3d-carousel.css'))
.pipe(autoprefixer({
browsers: ['last 5 versions'],
cascade: false
}))
.pipe(gulp.dest('./dist'));
});
gulp.task('default', ['styles', 'scripts']);
gulp.watch(
[
'js/*.js',
'js/**/*.js',
'css/*.css',
'css/**/*.css'
],
['styles', 'scripts']
);