Fix build attempting to include translationMaster (#628)

* Fix build attempting to include translationMaster

* Use full gulp path to run with no extra setup
pull/631/head
Adam Mills 2017-11-14 23:36:46 -05:00 committed by Paulus Schoutsen
parent 675a7a3b86
commit 8cf0c0e94d
2 changed files with 5 additions and 5 deletions

View File

@ -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: '',
}))

View File

@ -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