-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
54 lines (49 loc) · 1.7 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/**
* ██╗ ██╗ ██████╗ ██████╗ ███╗ ██╗██╗████████╗
* ╚██╗ ██╔╝██╔═══██╗██╔═══██╗████╗ ██║██║╚══██╔══╝
* ╚████╔╝ ██║ ██║██║ ██║██╔██╗ ██║██║ ██║
* ╚██╔╝ ██║ ██║██║ ██║██║╚██╗██║██║ ██║
* ██║ ╚██████╔╝╚██████╔╝██║ ╚████║██║ ██║
* ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═══╝╚═╝ ╚═╝
*
* https://yoonit.dev - about@yoonit.dev
*
* Sass Yoonit Style
* The SASS Atomic Design System that powers Web & Native Yoonit Components
*
* Luigui Delyer, Vitória Costa, Sabrina Sampaio, Gabriel Moraes, Tiago Brito, Fernando Junior, Ronalson Filho, Gabriel Moraes, Gabriel Mule & Gabriel Rizzo @ 2020-2021
*/
const {
src,
dest,
series
} = require('gulp')
const rimraf = require('rimraf')
const rename = require('gulp-rename')
const sass = require('gulp-sass')(require('sass'));
const entryPoint = './src/index.sass'
sass.compiler = require('node-sass')
const remove = f =>
rimraf('./dist', f)
const builder = _ =>
src(entryPoint)
.pipe(
sass
.sync({
outputStyle: 'compressed'
})
.on(
'error',
sass.logError
)
)
.pipe(
rename({
basename: "yoonit",
extname: ".min.css"
})
)
.pipe(
dest('./dist')
)
exports.default = series(remove, builder)