gulp-banner
A gulp plugin to insert a comment (or other string) at the top of the file
Last updated 5 years ago by superraytin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install gulp-banner 
SYNC missed versions from official npm registry.

gulp-banner

A gulp plugin to insert a comment (or other string) at the top of the file.

Build Status NPM version Downloads

gulp-banner

Installation

npm install gulp gulp-banner --save-dev

Quick Start

var gulp = require('gulp');
var banner = require('gulp-banner');
var pkg = require('./package.json');

var comment = '/*\n' +
    ' * <%= pkg.name %> <%= pkg.version %>\n' +
    ' * <%= pkg.description %>\n' +
    ' * <%= pkg.homepage %>\n' +
    ' *\n' +
    ' * Copyright 2015, <%= pkg.author %>\n' +
    ' * Released under the <%= pkg.license %> license.\n' +
    '*/\n\n';

gulp.task('taskName', function() {
    gulp.src('path/to/example.js')
        .pipe(banner(comment, {
            pkg: pkg
        }))
        .pipe(gulp.dest('dist'));
});

Testing

npm test

License

MIT, see the LICENSE file for detail.

Current Tags

  • 0.1.3                                ...           latest (5 years ago)

4 Versions

  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 9
This Week 18
This Month 121
Last Day 2
Last Week 33
Last Month 207
Dependencies (3)
Dev Dependencies (4)

Copyright 2014 - 2017 © taobao.org |