<commit_before>'use strict';

var path = require('path');

var autoprefixer = require('autoprefixer'),
    csswring = require('csswring'),
    mqpacker = require('css-mqpacker');

module.exports = [

    'build stylesheets',

    function() {
        return this.gulp

            .src(path.join(this.paths.css, '*.styl'))

            .pipe(this.plugins.stylus({
                paths: [
                    path.join(this.paths.css, 'imports'),
                    path.join(this.paths.assets, 'img'),
                    path.join(this.paths.cwd, 'node_modules'),
                    path.join(this.paths.cwd, 'node_modules/collection.stylus/src/stylus/imports/')
                ],
                'include css': true,
                url: {
                    name: 'inline-url',
                    limit: false
                },
                sourcemap: {
                    inline: true,
                    sourceRoot: '.',
                    basePath: path.relative(this.paths.cwd, this.paths.cssDest)
                }
            }))

            .pipe(this.plugins.sourcemaps.init({
                loadMaps: true
            }))<commit_msg>fix sourcemaps generation for stylus/css task<commit_after>'use strict';

var path = require('path');

var autoprefixer = require('autoprefixer'),
    csswring = require('csswring'),
    mqpacker = require('css-mqpacker');

module.exports = [

    'build stylesheets',

    function() {
        return this.gulp

            .src(path.join(this.paths.css, '*.styl'))

            .pipe(this.plugins.sourcemaps.init())

            .pipe(this.plugins.stylus({
                paths: [
                    path.join(this.paths.css, 'imports'),
                    path.join(this.paths.assets, 'img'),
                    path.join(this.paths.cwd, 'node_modules'),
                    path.join(this.paths.cwd, 'node_modules/collection.stylus/src/stylus/imports/')
                ],
                'include css': true,
                url: {
                    name: 'inline-url',
                    limit: false
                }
            }))
{'fraction_non_alphanumeric': 0.13383958234456572, 'fraction_numerical': 0.0, 'mean_word_length': 1.4118993135011442, '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': '5414189', 'n_tokens_mistral': 627, 'n_tokens_neox': 584, 'n_words': 92}