forked from primefaces/primevue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
34 lines (28 loc) · 1.23 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
'use strict';
var gulp = require('gulp'),
concat = require('gulp-concat'),
uglifycss = require('gulp-uglifycss'),
rename = require('gulp-rename'),
flatten = require('gulp-flatten');
/** @deprecated */
gulp.task('build-css', function () {
return gulp
.src(['./components/lib/common/Common.css', './components/**/*.css'])
.pipe(concat('primevue.css'))
.pipe(gulp.dest('dist/resources'))
.pipe(uglifycss({ uglyComments: true }))
.pipe(rename('primevue.min.css'))
.pipe(gulp.dest('dist/resources'));
});
gulp.task('build-primevuecss', function () {
return gulp.src(['./assets/styles/primevue.css']).pipe(concat('primevue.css')).pipe(gulp.dest('dist/resources')).pipe(rename('primevue.min.css')).pipe(gulp.dest('dist/resources'));
});
gulp.task('build-themes', function () {
return gulp.src(['public/themes/**/*']).pipe(gulp.dest('dist/resources/themes'));
});
/** @deprecated */
gulp.task('images', function () {
return gulp.src(['./components/lib/**/images/*.png', './components/lib/**/images/*.gif']).pipe(flatten()).pipe(gulp.dest('dist/resources/images'));
});
//Building project with run sequence
gulp.task('build-styles', gulp.series('build-themes', 'build-primevuecss'));