-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
37 lines (28 loc) · 823 Bytes
/
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
var gulp = require( 'gulp' ),
watch = require('gulp-watch'),
postcss = require('gulp-postcss'),
autoprefixer = require('autoprefixer'),
cssvars = require('postcss-simple-vars'),
nested = require('postcss-nested'),
cssImport = require('postcss-import');
gulp.task('php', function() {
console.log("imagine php things happening.");
});
gulp.task('styles', function() {
return gulp.src('./styles/styles.css')
.pipe(postcss([cssImport, nested, cssvars, autoprefixer]))
.pipe(gulp.dest('./temp/styles'));
});
gulp.task('import', function() {
});
gulp.task('watch', function () {
watch('./index.php', function() {
gulp.start('php');
});
watch('./styles/**/*.css', function() {
gulp.start('styles');
});
});
gulp.task('default', function() {
gulp.start('watch');
});