Skip to content

adam-lynch/gulp-sitemap-files

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-sitemap-files

NPM version Build Status Windows 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

Packagegulp-sitemap-files
Description A Gulp plugin to get all files listed in a sitemap.
Node Version >= 0.9

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 :).

About

A Gulp plugin to get all files listed in a sitemap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published