Skip to content

gulp-license-check is a Gulp extension to check the presence of a specific header in your files.

License

Notifications You must be signed in to change notification settings

magemello/gulp-license-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-license-check

travis Status Coverage Status npm downloads license unicorn my blog my portfolio

gulp-license-check is a Gulp extension to check the presence of a specific header in all the files of a project, and give to you a log of all the files where the header is missing. Never miss again a license header in a file.

If you want to run this plugin from npm without using gulp you can use license-check.

Install

$ npm install --save-dev gulp-license-check

Usage

const license = require('gulp-license-check');

gulp.task('license', function () {
    return gulp.src('./app/**/*.ts')
        .pipe(license({
            path: 'app/license_header.txt',
            blocking: false,
            logInfo: false,
            logError: true
        }));
});

Options

path: {string} . Path of your header file, this is the header that has to match in all the files of the project.
blocking: {boolean} default true. If it's true, in case of missing header will block the build.
logInfo: {boolean} default true. If it's false the plugin doesn't show the info log.
logError: {boolean} default true. If it's false the plugin doesn't show the error log.

License

MIT © Mario Romano

About

gulp-license-check is a Gulp extension to check the presence of a specific header in your files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •