2.0.4 • Published 10 years ago

gulp-robots v2.0.4

Weekly downloads
47
License
ISC
Repository
github
Last release
10 years ago

gulp-robots Build Status

Robots.txt generator for Gulp. Simple wrapper around robots-generator. Requires Node 4+. Installed through NPM with:

npm install gulp-robots --save-dev

Check out robots-generator for example options. This module scans your HTML for <link rel="sitemap" />. Example usage:

var robots = require('gulp-robots');

gulp.task('default', function () {
    gulp.src('index.html')
        .pipe(robots({
            useragent: '*',
            allow: ['folder1/', 'folder2/'],
            disallow: ['cgi-bin/']
        }))
        .pipe(gulp.dest('robots.txt'));
});

If you need an ES5 build for legacy purposes, just require the ES5 file:

var robots = require('gulp-robots/es5');

To build the ES5 version, run the following and remember to require the ES5 version.

npm install -g babel-cli
babel --presets es2015 index.js --out-file es5.js
2.0.4

10 years ago

2.0.3

10 years ago

2.0.2

10 years ago

2.0.1

10 years ago

2.0.0

10 years ago

1.1.2

10 years ago

1.1.1

10 years ago

1.1.0

11 years ago

1.0.9

11 years ago

1.0.8

11 years ago

1.0.7

11 years ago

1.0.6

11 years ago

1.0.4

11 years ago

1.0.2

11 years ago

1.0.0

11 years ago