Closed b3wii closed 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/')) });
See #285.
Please add them thanks.
This is how i used gulp to generate them: