Merge pull request #627 from pdehaan/issue-626

refactor(build): Adds missing copyright header
This commit is contained in:
Nick Chapman 2014-02-26 14:42:08 -08:00
Родитель 6556303aa7 97dd34929f
Коммит d8fb647841
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -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) {
'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) {
var src = file.orig.src[0];
var dest = file.dest;
var schema = createSchema(src);
grunt.file.write(dest, JSON.stringify(schema, null, 2));