Skip to content

Commit 3daba50

Browse files
authored
added headers to the minimized files in the gulpfile
1 parent 8748d61 commit 3daba50

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

gulpfile.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,25 @@ gulp.task('default', ['clean'], function() {
218218
});
219219

220220

221+
/****************************************************/
222+
/* ADD HEADER TO MINIMIZED FILES */
223+
/****************************************************/
224+
225+
var header = require('gulp-header');
226+
var fs = require('fs');
227+
var pkg = JSON.parse(fs.readFileSync('package.json'));
228+
var opts = {
229+
banner: [
230+
'/**',
231+
' * <%= description %> - <%= homepage %>',
232+
' * Version - <%= version %>',
233+
' *',
234+
' * Copyright (c) <%= new Date().getFullYear() %> <%= author.company %>',
235+
' */\n\n'
236+
].join('\n')
237+
};
238+
239+
221240
/****************************************************/
222241
/* CLOUD PRODUCTION ENVIRONMENT TASKS */
223242
/****************************************************/

0 commit comments

Comments
 (0)