Skip to content
This repository has been archived by the owner on Mar 14, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (27 loc) · 781 Bytes

README.md

File metadata and controls

34 lines (27 loc) · 781 Bytes

🎨 redeploy npm

redeploy deploys subreddit stylesheets to reddit.com as part of a gulp pipeline.

Usage

# yarn
$ yarn add redeploy

# npm
$ npm install --save redeploy
var redeploy = require('redeploy')({
  clientID: 'reddit api client id',
  clientSecret: 'reddit api client secret',
  username: 'reddit username',
  password: 'reddit password',
  subreddit: 'subreddit to deploy to (without /r/ prefix)'
})

gulp.task('deploy-css', function() {
  return gulp.src('*.css')
    // you may want to minify your css here
    .pipe(redeploy.css())
});

gulp.task('deploy-images', function() {
  return gulp.src('img/*')
    .pipe(redeploy.images())
});