Skip to content

Commit

Permalink
Fixed browser-based SFTP client generation gulp script
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaaash committed Aug 27, 2015
1 parent ca25ce4 commit 9128657
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ gulp.task('web.ts', () => {
.pipe(concat('sftp.ts'))
.pipe(replace(/class Client /g, 'export class Client '))
.pipe(replace(/^/g, 'module SFTP {'))
.pipe(replace(/\n/g, '\n '))
.pipe(replace(/$/g, '\n}'))
.pipe(replace(/\r?\n/g, '\r\n'))
.pipe(gulp.dest(out.lib_web));
Expand Down Expand Up @@ -109,7 +108,7 @@ gulp.task('web', ['web.js'],() => {
};

return gulp.src(out.lib_web + '/sftp.js')
.pipe(rename(path => path.basename = "sftp.min.js"))
.pipe(rename(path => path.basename = "sftp.min"))
.pipe(uglify(uglifyOptions))
.pipe(gulp.dest(out.lib_web));
});
Expand Down

0 comments on commit 9128657

Please sign in to comment.