<commit_before>"use strict";

var assemble = require('assemble');
var postcss = require('gulp-postcss');
var extname = require('gulp-extname');
var livereload = require('gulp-livereload');
var errorHandler = require('../assemble/plugins/error');
var taskGenerator = require('../taskGenerator');

module.exports = function(name, config, serverConfig) {
    return taskGenerator(name, config, serverConfig, function(taskName, task) {
        assemble.task(taskName, function() {
            return assemble.src(task.files.src)
                .pipe(extname())
                .pipe(postcss(task.plugins.map(function(plugin) {
                    return require(plugin.name).apply(null, plugin.params);
                }), {
                    map: {
                        inline: task.sourcemap
                    }
                }))
                .on('error', errorHandler)
                .pipe(assemble.dest(task.files.dest))
                .pipe(livereload());
        });
    });
};<commit_msg>fix: convert pcss to css<commit_after>"use strict";

var assemble = require('assemble');
var postcss = require('gulp-postcss');
var extname = require('gulp-extname');
var livereload = require('gulp-livereload');
var errorHandler = require('../assemble/plugins/error');
var taskGenerator = require('../taskGenerator');

module.exports = function(name, config, serverConfig) {
    return taskGenerator(name, config, serverConfig, function(taskName, task) {
        assemble.task(taskName, function() {
            return assemble.src(task.files.src)
                .pipe(extname('css'))
                .pipe(postcss(task.plugins.map(function(plugin) {
                    return require(plugin.name).apply(null, plugin.params);
                }), {
                    map: {
                        inline: task.sourcemap
                    }
                }))
                .on('error', errorHandler)
                .pipe(assemble.dest(task.files.dest))
                .pipe(livereload());
        });
    });
};
{'fraction_non_alphanumeric': 0.14151873767258383, 'fraction_numerical': 0.0, 'mean_word_length': 2.069591527987897, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6051778', 'n_tokens_mistral': 559, 'n_tokens_neox': 524, 'n_words': 96}