|
|
@@ -1,6 +1,7 @@
|
|
|
/* jshint node: true, esnext: true, varstmt: true */
|
|
|
|
|
|
'use strict';
|
|
|
+const tools = require( './dev/tasks/utils/tools' );
|
|
|
|
|
|
module.exports = ( grunt ) => {
|
|
|
// First register the "default" task, so it can be analyzed by other tasks.
|
|
|
@@ -27,9 +28,23 @@ module.exports = ( grunt ) => {
|
|
|
options: {
|
|
|
excludeFiles: ignoreFiles
|
|
|
}
|
|
|
+ },
|
|
|
+
|
|
|
+ replace: {
|
|
|
+ copyright: {
|
|
|
+ src: [ '**/*.*', '**/*.frag' ].concat( tools.getGitIgnore( grunt ).map( i => '!' + i ) ) ,
|
|
|
+ overwrite: true,
|
|
|
+ replacements: [
|
|
|
+ {
|
|
|
+ from: /\@license Copyright \(c\) 2003-\d{4}, CKSource - Frederico Knabben\./,
|
|
|
+ to: '@license Copyright (c) 2003-<%= grunt.template.today("yyyy") %>, CKSource - Frederico Knabben.'
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
}
|
|
|
} );
|
|
|
|
|
|
// Finally load the tasks.
|
|
|
grunt.loadTasks( 'dev/tasks' );
|
|
|
+ grunt.loadNpmTasks( 'grunt-text-replace' );
|
|
|
};
|