heiseonline / shariff

👮 Shariff enables website users to share their favorite content without compromising their privacy.
http://ct.de/-2467514
MIT License
1.4k stars 177 forks source link

dist folder and minifined assets are missing #307

Closed b3wii closed 6 years ago

b3wii commented 6 years ago

Please add them thanks.

This is how i used gulp to generate them:

gulp.task('makeShariffCss', function () {
    gulp.src('./bower_components/shariff/src/style/shariff.less')
        .pipe(less({
            paths: [ path.join(__dirname, 'less', 'includes') ]
        }))
        .pipe(cssnano())
        .pipe(rename({ suffix: '.min' }))
        .pipe(gulp.dest('./app/assets/components/shariff/'))
});

gulp.task('makeShariffJs', ['transpileShariff'], function () {
    return gulp.src([
        traceur.RUNTIME_PATH,
        'app/assets/components/shariff/shariff.min.js'
    ]).pipe(concat('shariff.min.js')).pipe(uglify()).pipe(gulp.dest('app/assets/components/shariff/'))
});

gulp.task('transpileShariff', function () {
    return gulp.src(['bower_components/shariff/src/js/shariff.js'])
        .pipe(through2.obj(function (file, enc, next){
            browserify(file.path)
                //.add(es6ify.runtime)
                .transform(['es6ify'])
                .bundle(function(err, res){
                    file.contents = res;
                    next(null, file);
                });
        }))
        .pipe(rename({ suffix: '.min' }))
        .pipe(gulp.dest('./app/assets/components/shariff/'))
});
compeak commented 6 years ago

See #285.