Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 527 Bytes

README.md

File metadata and controls

30 lines (22 loc) · 527 Bytes

gulp-licenser

Update licenses plugin for gulp.

Installation

Install this package with npm and add it to your development dependencies:

npm install --save-dev gulp-licenser

Usage

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

var LICENSE_TEMPLATE =
  '/**\n\
  * Package v1.0.0\n\
  *\
  * Copyright 2015, Company.\n\
  * All rights reserved.\n\
  *\
  */';

gulp.task('updateLicense', function() {
  gulp.src('./src/*.js')
    .pipe(licenser(LICENSE_TEMPLATE))
    .pipe(gulp.dest('./src/'))
});