Nearly Perpendicular Macaroons
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

grunt-header

1.1.0 • Public • Published

grunt-header Build Status

Add a header to files

Install

$ npm install --save-dev grunt-header

Usage

require('load-grunt-tasks')(grunt); // npm install --save-dev load-grunt-tasks
 
grunt.initConfig({
    info: 'header text',
    header: {
        dist: {
            options: {
                text: '<%= info %>'
            },
            files: {
                'dist/main.js': 'src/main.js'
            }
        }
    }
});
 
grunt.registerTask('default', ['header']);

Options

text

Type: string

Text to be prepended to files.

License

MIT © Sindre Sorhus

install

npm i grunt-header

Downloadsweekly downloads

55

version

1.1.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar