Merge pull request #627 from pdehaan/issue-626
refactor(build): Adds missing copyright header
This commit is contained in:
Коммит
d8fb647841
|
@ -1,3 +1,7 @@
|
||||||
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||||
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
module.exports = function (grunt) {
|
module.exports = function (grunt) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
|
@ -12,11 +16,10 @@ module.exports = function (grunt) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerMultiTask('localeschema', 'Create a schema', function () {
|
grunt.registerMultiTask('localeschema', 'Create a JSON schema file from the template .pot file.', function () {
|
||||||
this.files.forEach(function (file) {
|
this.files.forEach(function (file) {
|
||||||
var src = file.orig.src[0];
|
var src = file.orig.src[0];
|
||||||
var dest = file.dest;
|
var dest = file.dest;
|
||||||
|
|
||||||
var schema = createSchema(src);
|
var schema = createSchema(src);
|
||||||
|
|
||||||
grunt.file.write(dest, JSON.stringify(schema, null, 2));
|
grunt.file.write(dest, JSON.stringify(schema, null, 2));
|
||||||
|
|
Загрузка…
Ссылка в новой задаче