From 907ec320137ff2eb9e75e2530a12cc62cf0a9152 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 17 Mar 2016 13:25:52 +0100 Subject: [PATCH] add srcdist target --- gulpfile.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/gulpfile.js b/gulpfile.js index 6c8801862..862aeba19 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -64,8 +64,24 @@ const paths = { "popup/**/*.{html,css}", "pages/**/*.{html,css}", ], + extra: [ + "AUTHORS", + "README", + "COPYING", + "gulpfile.js", + "tsconfig.json", + "package.json", + "pogen/pogen.ts", + "pogen/tsconfig.json", + "pogen/example/test.ts", + ], }; +paths.srcdist = [].concat(paths.ts.release, + paths.ts.dev, + paths.dist, + paths.extra); + const tsBaseArgs = { @@ -144,6 +160,17 @@ gulp.task("package-unstable", ["compile-prod", "dist-prod", "manifest-unstable"] }); +/** + * Create source distribution. + */ +gulp.task("srcdist", [], function () { + let zipname = String.prototype.concat("taler-wallet-", manifest.version, "-src.zip"); + return gulp.src(paths.srcdist, {buffer: false, stripBOM: false, base: "."}) + .pipe(zip(zipname)) + .pipe(gulp.dest(".")); +}); + + /** * Generate a tsconfig.json with the * given compiler options that compiles