aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gulpfile.js27
1 files changed, 27 insertions, 0 deletions
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 = {
@@ -145,6 +161,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
* all files piped into it.