mirror of
https://github.com/zen-browser/pdf.js.git
synced 2025-07-10 02:05:37 +02:00
Makes importl10n and server async gulp functions.
This commit is contained in:
parent
3d49879211
commit
76aa687548
2 changed files with 7 additions and 4 deletions
|
@ -51,7 +51,7 @@ gulp.task('default', function() {
|
|||
});
|
||||
});
|
||||
|
||||
gulp.task('server', function () {
|
||||
gulp.task('server', function (done) {
|
||||
console.log();
|
||||
console.log('### Starting local server');
|
||||
|
||||
|
@ -80,7 +80,7 @@ gulp.task('makefile', function () {
|
|||
.pipe(gulp.dest('.'));
|
||||
});
|
||||
|
||||
gulp.task('importl10n', function() {
|
||||
gulp.task('importl10n', function(done) {
|
||||
var locales = require('./external/importL10n/locales.js');
|
||||
|
||||
console.log();
|
||||
|
@ -89,7 +89,7 @@ gulp.task('importl10n', function() {
|
|||
if (!fs.existsSync(L10N_DIR)) {
|
||||
fs.mkdirSync(L10N_DIR);
|
||||
}
|
||||
locales.downloadL10n(L10N_DIR);
|
||||
locales.downloadL10n(L10N_DIR, done);
|
||||
});
|
||||
|
||||
// Getting all shelljs registered tasks and register them with gulp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue