diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-03-17 13:25:52 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-03-17 13:25:52 +0100 |
commit | 907ec320137ff2eb9e75e2530a12cc62cf0a9152 (patch) | |
tree | d0fb718f0f898879c0d530d05a8c920ba9d0bb41 | |
parent | a33ea7f53230919c69bf7fb91bc1b6a4663d929e (diff) |
add srcdist target
-rw-r--r-- | gulpfile.js | 27 |
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. |