JSPM

gulp-subtree

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 37
  • Score
    100M100P100Q72568F
  • License MIT

Gulp module to push a folder to a subtree

Package Exports

  • gulp-subtree

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-subtree) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Gulp Subtree

A little gulp module to let you push a folder to a git subtree without keeping that folder in your git history. Highly recommend to use with gulp-clean.

Usage

var subtree = require('gulp-subtree');
var clean = require('gulp-clean');

gulp.task('subtree', function () {
    return gulp.src('dist')
        .pipe(subtree())
        .pipe(clean());
});

Options

Options can be passed into subtree to choose the remote, branch, and message to push with. By default, it's origin, gh-pages, and 'Distribution Commit'.

var subtree = require('gulp-subtree');
var clean = require('gulp-clean');

gulp.task('subtree', function () {
    return gulp.src('dist')
        .pipe(subtree({
            remote: 'upstream',
            branch: 'master',
            message: 'Here We Go!'
        }));
});