use directories for structure

This commit is contained in:
s2
2020-05-26 10:37:57 +02:00
parent 66580d4847
commit ae4aaf2668
1287 changed files with 92093 additions and 13113 deletions

21
node_modules/i18next-scanner/tasks/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
'use strict';
var i18next = require('../lib');
var vfs = require('vinyl-fs');
module.exports = function(grunt) {
grunt.registerMultiTask('i18next', 'A grunt task for i18next-scanner', function() {
var done = this.async();
var options = this.options() || {};
var targets = (this.file) ? [this.file] : this.files;
targets.forEach(function(target) {
vfs.src(target.files || target.src, {base: target.base || '.'})
.pipe(i18next(options, target.customTransform, target.customFlush))
.pipe(vfs.dest(target.dest || '.'))
.on('end', function() {
done();
});
});
});
};