adam-lynch / gulp-sitemap-files

A Gulp plugin to get all files listed in a sitemap

Home Page:http://www.adamlynch.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://www.adamlynch.com

License:MIT License


Languages

Language:JavaScript 100.0%