gulp-i18n-add-locales
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -71,5 +71,5 @@ /* | ||
var targetDir = path.join(path.dirname(file.path), localesFolder); | ||
for (j in basenames) { | ||
var basename = basenames[j]; | ||
var targetDir = path.join(path.dirname(file.path), localesFolder); | ||
try { | ||
@@ -95,3 +95,3 @@ fs.mkdirSync(targetDir); | ||
file.path = target; | ||
file.contents = new Buffer(''); | ||
file.contents = new Buffer('{}'); | ||
} | ||
@@ -103,3 +103,3 @@ else { | ||
path: target, | ||
contents: new Buffer('') | ||
contents: new Buffer('{}') | ||
})); | ||
@@ -106,0 +106,0 @@ } |
{ | ||
"name": "gulp-i18n-add-locales", | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"description": "Add placeholder JSON files in target locales for i18n-behavior", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -23,2 +23,5 @@ # gulp-i18n-add-locales | ||
var gutil = require('gulp-util'); | ||
var grepContents = require('gulp-grep-contents'); | ||
var size = require('gulp-size'); | ||
var i18nAddLocales = require('gulp-i18n-add-locales'); | ||
@@ -34,4 +37,4 @@ | ||
var elements = gulp.src([ 'app/elements/**/*.html' ], { base: 'app' }) | ||
.pipe($.grepContents(/i18n-behavior.html/)) | ||
.pipe($.grepContents(/<dom-module /)); | ||
.pipe(grepContents(/i18n-behavior.html/)) | ||
.pipe(grepContents(/<dom-module /)); | ||
@@ -42,3 +45,3 @@ var pages = gulp.src([ | ||
], { base: 'app' }) | ||
.pipe($.grepContents(/is=['"]i18n-dom-bind['"]/)); | ||
.pipe(grepContents(/is=['"]i18n-dom-bind['"]/)); | ||
@@ -48,3 +51,3 @@ return merge(elements, pages) | ||
.pipe(gulp.dest('app')) | ||
.pipe($.size({ | ||
.pipe(size({ | ||
title: 'locales' | ||
@@ -51,0 +54,0 @@ })); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7557
63