2.0.4 • Published 8 years ago

gulp-robots v2.0.4

Weekly downloads
47
License
ISC
Repository
github
Last release
8 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

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.1.2

9 years ago

1.1.1

9 years ago

1.1.0

9 years ago

1.0.9

9 years ago

1.0.8

9 years ago

1.0.7

9 years ago

1.0.6

9 years ago

1.0.4

9 years ago

1.0.2

9 years ago

1.0.0

9 years ago