1.0.2 • Published 10 years ago

gulp-sitemap-files v1.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
10 years ago

gulp-sitemap-files NPM version Build Status Dependency Status

A Gulp plugin to get all files listed in a sitemap. See sitemaps.org/protocol.html and pgilad/gulp-sitemap.

Information

Installation

npm install gulp-sitemap-files

Usage

var gulp = require('gulp');
var sitemapFiles = require('gulp-sitemap-files');
var clean = require('gulp-clean');

gulp.task('clean', function() {
    gulp.src('./sitemap.xml')
        .pipe(sitemapFiles('http://www.example.com/'))
        .pipe(clean());
});

gulp.task('default', ['clean']);

Arguments

sitemapFiles(siteUrl)

  • siteUrl - string.

Notes

  • It it assumed the sitemap is at the root.
  • As far as default files go, only HTML files are supported right now (i.e. http://www.example.com/ -> http://www.example.com/index.html). If you need anything more, create an issue explaining how you'd like it to work :).
1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago