-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (29 loc) · 939 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
'use strict';
const gulp = require('gulp');
const typograf = require('gulp-typograf');
gulp.task('typography', function() {
return gulp.src('./src/typography.txt')
.pipe(typograf({
enableRule: ['ru/optalign/*'],
locale: ['ru', 'en-US'],
}))
.pipe(gulp.dest('./dest'));
});
gulp.task('notypography', function() {
return gulp.src('./src/no-typography.txt')
.pipe(typograf({
disableRules: [
'common/space/afterPunctuation',
'common/html/escape',
'common/punctuation/quote',
'ru/money/currency',
'ru/other/phone-number'
],
locale: ['ru', 'en-US'],
safeTags: [
['<no-typography>','<\/no-typography>']
]
}))
.pipe(gulp.dest('./dest'));
});
gulp.task('default', gulp.series('typography', 'notypography'));