Skip to content

Commit a9aba45

Browse files
committed
Updated task with predentation
1 parent a0653d9 commit a9aba45

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

src/main/js/index.js

+16-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
11
//==================================================
22
// Task
33
// test:css
4-
// For the description see [SupeflyCSS Test Task](https://github.com/superfly-css/superfly-css-task-test/)
4+
// For the description see
5+
// [SupeflyCSS Test Task](https://github.com/superfly-css/superfly-css-task-test/)
6+
// IMPLEMENTATION
7+
// 1: Cheerio copies content from `Test-markup`
8+
// and appends it to the markup to the `Test-render`
9+
//
510
//==================================================
611

712
var gulp = require('gulp');
13+
14+
// -1-
815
var cheerio = require('gulp-cheerio');
916
var highlight = require('gulp-highlight');
10-
var path = require('path');
17+
18+
var transform = require('vinyl-transform');
19+
var predentation = require('predentation');
20+
21+
var pre = transform(function(options) {
22+
return predentation(options);
23+
});
1124

1225
var PLI = require('superfly-css-pli');
1326

@@ -26,5 +39,6 @@ gulp.task('test:css', function() {
2639
});
2740
}))
2841
.pipe(highlight())
42+
.pipe(pre)
2943
.pipe(gulp.dest(PLI.target.test.html));
3044
});

0 commit comments

Comments
 (0)