PhilJ / gulp-kss

Gulp plugin for KSS (Knyle Style Sheets) documentation generation
50 stars 34 forks source link

Gulp seems not to finish task #19

Open nvioli opened 9 years ago

nvioli commented 9 years ago

The plugin seems to be working correctly; i.e. the styleguide is generated, but gulp does not seem to report that the task has completed. Here's my taskdef:

gulp.task('styleguide-main',function(){
    return gulp.src([paths.metaRoot + 'www/css2015/**/*.less'])
        .pipe(plugins.kss({
            overview:           paths.metaRoot + 'www/css2015/styleguide.md',
            templateDirectory:  paths.metaRoot + 'www/css2015/styleguide-template/'
        }))
        .pipe(gulp.dest(paths.staticOut + 'styleguide/'));
});

and when I run it on the commandline I only get:

nvioli-4:node nvioli$ gulp styleguide-main
[16:46:32] Using gulpfile ~/git/node/gulpfile.js
[16:46:32] Starting 'styleguide-main'...
nvioli-4:node nvioli$

All other tasks report "Finished".

Please let me know if I can provide any more information.

nvioli commented 9 years ago

Verified it's the same without the overview or templateDirectory defined, i.e.

.pipe(plugins.kss())

has the same result.

jamie-pate commented 9 years ago

index.js endStream() function needs

            self.emit('end')

at the end

jamie-pate commented 9 years ago

Looks to be fixed by https://github.com/PhilJ/gulp-kss/commit/4af6b82a3192ba66b353fce6f591bd2b6d24abc5 ??

nvioli commented 9 years ago

Yes I just pulled the latest version of index.js direct from github and this issue is solved.

However this means that the version installed via npm install is out of date. Do you need to push a new version over there?

demersdesigns commented 9 years ago

@PhilJ Manually pasting in the contents of index.js into the version pulled from NPM works as expected. Would it be possible to get the latest version pushed to NPM?