mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
i18n now working
This commit is contained in:
@@ -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']);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user