-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
45 lines (38 loc) · 1003 Bytes
/
index.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
40
41
42
43
44
45
'use strict'
var _ = require('lodash')
var es = require('event-stream')
var autoprefixer = require('gulp-autoprefixer')
var concat = require('gulp-concat')
var rework = require('gulp-rework')
// rework tasks
var calc = require('rework-calc')
var color = require('rework-color-function')
var media = require('rework-custom-media')
var ielimits = require('rework-ie-limits')
var inherit = require('rework-inherit')
var macro = require('rework-macro')
var npm = require('rework-npm')
var vars = require('rework-vars')
var convert = require('./lib/rework-convert-units')
exports.autoprefixer = autoprefixer
exports.rework = function(options) {
options = _.defaults(options || {}, {
fontSize: '14px',
});
return rework(
npm({path: options.path}),
vars(),
macro,
calc,
color,
media(),
inherit(),
convert(options.fontSize),
ielimits
)
}
exports.rename =
exports.concat = concat
exports.merge = function(streams) {
return es.merge.apply(null, streams)
}