Final automatizer
Now we have to gather all our previously created tasks into one file. The core of the gulp
project is two files: package.json
, which gathers all project dependencies, and gulpfile
, in which you can store all tasks. Here are the tasks:
File name is: package.json
{ "name": "automatizer", "version": "1.0.0", "description": "CSS automatizer", "main": "gulpfile.js", "author": "Piotr Sikora", "license": "ISC", "dependencies": { "gulp": "latest", "gulp-clean-css": "latest", "gulp-jade": "latest", "gulp-rimraf": "latest", "gulp-sass": "latest", "gulp-uncss": "latest", "gulp-util": "latest", "rimraf": "latest" } }
File name is: gulpfile.json
var gulp = require('gulp'), sass = require('gulp-sass'), jade = require('gulp-jade'), gutil = require('gulp-util'), uncss = require('gulp-uncss'), rimraf = require('gulp-rimraf'), cleanCSS = require('gulp-clean-css'); gulp.task('clean-css-dist', function () { return gulp.src('dist/css/main.css...