diff --git a/gulp/tasks/translations.js b/gulp/tasks/translations.js index d90e309c09..b678ff0d1b 100755 --- a/gulp/tasks/translations.js +++ b/gulp/tasks/translations.js @@ -72,7 +72,7 @@ gulp.task(taskName, function () { .pipe(transform(function(data, file) { return lokalise_transform(data, data); })) - .pipe(rename('translation-master.json')) + .pipe(rename('translationMaster.json')) .pipe(gulp.dest(outDir)); }); tasks.push(taskName); @@ -90,7 +90,7 @@ gulp.task(taskName, ['build-master-translation'], function () { // than a base translation + region. const tr = path.basename(file.history[0], '.json'); const subtags = tr.split('-'); - const src = [outDir + '/translation-master.json']; + const src = [outDir + '/translationMaster.json']; for (let i = 1; i <= subtags.length; i++) { const lang = subtags.slice(0, i).join('-'); src.push(inDir + '/' + lang + '.json'); @@ -119,7 +119,7 @@ tasks.push(taskName); taskName = 'build-translation-fingerprints'; gulp.task(taskName, ['build-merged-translations'], function () { - return gulp.src(outDir + '/!(translationFingerprints).json') + return gulp.src(outDir + '/!(translationFingerprints|translationMaster).json') .pipe(rename({ extname: '', })) diff --git a/script/build_frontend b/script/build_frontend index e17e630387..dee1698f12 100755 --- a/script/build_frontend +++ b/script/build_frontend @@ -79,5 +79,5 @@ echo "CREATED_AT = `date +%s`" >> $OUTPUT_DIR_ES5/__init__.py # Generate the MD5 hash of the new frontend script/fingerprint_frontend.py --base_dir $OUTPUT_DIR script/fingerprint_frontend.py --base_dir $OUTPUT_DIR_ES5 -gulp gen-index-html -gulp gen-index-html-es5 +./node_modules/.bin/gulp gen-index-html +./node_modules/.bin/gulp gen-index-html-es5