commit 907ec320137ff2eb9e75e2530a12cc62cf0a9152
parent a33ea7f53230919c69bf7fb91bc1b6a4663d929e
Author: Florian Dold <florian.dold@gmail.com>
Date: Thu, 17 Mar 2016 13:25:52 +0100
add srcdist target
Diffstat:
1 file changed, 27 insertions(+), 0 deletions(-)
diff --git 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.