i18n now working

This commit is contained in:
Athou
2014-08-10 15:20:04 +02:00
parent f9e7958e8b
commit 39be4fec4e
53 changed files with 5310 additions and 210 deletions

View File

@@ -23,6 +23,10 @@ gulp.task('images', function() {
return gulp.src(SRC_DIR + 'images/**/*').pipe(gulp.dest(BUILD_DIR + 'images'));
});
gulp.task('i18n', function() {
return gulp.src(SRC_DIR + 'i18n/**/*.js').pipe(gulp.dest(BUILD_DIR + 'i18n'));
});
gulp.task('favicons', function() {
var favicons_png = SRC_DIR + '*.png';
var favicons_ico = SRC_DIR + '*.ico';
@@ -49,7 +53,7 @@ gulp.task('template-cache', function() {
return gulp.src(SRC_DIR + 'templates/**/*.html').pipe(templateCache(options)).pipe(gulp.dest(TEMP_DIR + 'js'));
});
gulp.task('build-dev', ['images', 'favicons', 'sass', 'fonts', 'template-cache', 'bower'], function() {
gulp.task('build-dev', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'template-cache', 'bower'], function() {
var assets = useref.assets({
searchPath : [SRC_DIR, TEMP_DIR]
});
@@ -59,7 +63,7 @@ gulp.task('build-dev', ['images', 'favicons', 'sass', 'fonts', 'template-cache',
revReplace()).pipe(gulp.dest(BUILD_DIR));
});
gulp.task('build', ['images', 'favicons', 'sass', 'fonts', 'template-cache', 'bower'], function() {
gulp.task('build', ['images', 'i18n', 'favicons', 'sass', 'fonts', 'template-cache', 'bower'], function() {
var assets = useref.assets({
searchPath : [SRC_DIR, TEMP_DIR]
});
@@ -77,6 +81,7 @@ gulp.task('build', ['images', 'favicons', 'sass', 'fonts', 'template-cache', 'bo
gulp.task('watch', function() {
gulp.watch(SRC_DIR + 'sass/**/*.scss', ['build-dev']);
gulp.watch(SRC_DIR + 'js/**/*.js', ['build-dev']);
gulp.watch(SRC_DIR + 'i18n/**/*.js', ['build-dev']);
gulp.watch(SRC_DIR + 'templates/**/*.html', ['build-dev']);
});